好公式网用指标公式为投资注入科技力量!
您的位置:好公式网通达信公式封神系列优化升级版射箭封神_众神下海_股海风帆指标详解 通达信射箭升级版

封神系列优化升级版射箭封神_众神下海_股海风帆指标详解 通达信射箭升级版

  • 指标公式类型:通达信公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-05-25 21:43:53
  • 指标公式标签:封神 射箭 升级版
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:封神系列优化升级版射箭封神_众神下海_股海风帆指标详解 通达信射箭升级版

【封神系列优化升级版】
【封神系列优化升级版】

指数不同於扳块。本想把指数换成扳块,应用时好在扳块中找个股。
编了一下。能编,但无法使用。制新数据就使得你之不了!
一,升级扳只用了"相对指数"和"rn(10)均值"。同样以"rn(10)均值"为"零"对比当天涨跌情况。洋红色空心柱顶为:"相对指数"对"rn(10)均值"的相对位值。肯后的灰色实芯柱为当日"相对指数" 涨跌值。它们的高度位值可对比指数的强弱和当天的领涨领跌。

二,《射箭封神》因加有射线macd,可作常用副图用。
《众仙过海》多用在盘后分晰用。"当前指数"为你看指数k线图所看的相对指数线。看个股时为上证相对指数线。

三,《股市风帆》应是常用的副图。不占多少面积,点宽就看。

《股市风帆》基本上没有变化。保留了昨日相对指数的窄洋红实芯柱。
虽有当日涨跌,用昨日相对指数与当日相对指数中的差值空间,视觉上增加了强弱校果。


{射箭封神 参数 p:1,100,6参数 n:1,100,3 参数 rn:1,100,10}
drawband(100,rgb(00,50,100),-30,rgb(00,00,00));
vvar1:=(ma(close,80)-ma(close,13)/3);
vvar2:=( ma((close-vvar1)/vvar1,1));
vvar3:=(close-llv(low,28))/(hhv(high,28)-llv(low,28))*100;
vvar4:=sma(vvar3,4,1);
mma:=ema(vvar2,12)*0.7;
mmb:=ema(vvar2,3);
快到底:=if(llv(mmb-mma,12)>0,0,-20),linethick2,colorgreen;
底初选股:=if( cross(0, llv(mmb-mma,12)),10,0),linethick0;
k:=ceiling(c/10);
diff:=( ema(close,12) - ema(close,26))/k*100+50;
dea:=ema(diff,9);
macd:=2*(diff-dea)+50;
lc:=ref(close,1);
ra1:=ref(rsi,n)=hhv(rsi,n*2+1); ra2:=ref(rsi,n)=llv(rsi,n*2+1);
rb1:=filter(ra1,n); rb2:=filter(ra2,n);
rc1:=backset(rb1,n+1); rc2:=backset(rb2,n+1);
rd1:=filter(rc1,n); rd2:=filter(rc2,n);
gd1:=barslast(rd1); dd1:=barslast(rd2);
gdts:=if(rd1,currbarscount,0);
ddts:=if(rd2,currbarscount,0);
gdt1:=if(gd1,ref(gdts,gd1),gdts);
ddt1:=if(dd1,ref(ddts,dd1),ddts);
gdcs1:=const(gdt1); ddcs1:=const(ddt1);
gingbuts1:=ref(gdt1,gd1+1); dingbuts1:=ref(ddt1,dd1+1);
gdcs2:=const(gingbuts1); ddcs2:=const(dingbuts1);
gdcs13:=const(ref(rsi,gdcs1-1));ddcs13:=const(ref(rsi,ddcs1-1));
gdcs23:=const(ref(rsi,gingbuts1-1));ddcs23:=const(ref(rsi,dingbuts1-1));
xg1:=backset(islastbar,gdcs1);xd1:=backset(islastbar,ddcs1);
xg2:=backset(islastbar,gdcs2);xd2:=backset(islastbar,ddcs2);
m:=2*n;
ra11:=ref(rsi,m)=hhv(rsi,m*2+1); ra22:=ref(rsi,m)=llv(rsi,m*2+1);
rb11:=filter(ra11,m); rb22:=filter(ra22,m);
rc11:=backset(rb11,m+1); rc22:=backset(rb22,m+1);
rd11:=filter(rc11,m); rd22:=filter(rc22,m),nodraw;
gd11:=barslast(rd11); dd11:=barslast(rd22);
gdtss:=if(rd11,currbarscount,0);
ddtss:=if(rd22,currbarscount,0);
gdt11:=if(gd11,ref(gdtss,gd11),gdtss);
ddt11:=if(dd11,ref(ddtss,dd11),ddtss);
gdcs11:=const(gdt11); ddcs11:=const(ddt11);
gingbuts11:=ref(gdt11,gd11+1); dingbuts11:=ref(ddt11,dd11+1);
gdcs22:=const(gingbuts11); ddcs22:=const(dingbuts11);
{↓方案一,射箭封神的显示部份↓}
stickline(macd>=50,50,macd,3,0),color000055;
stickline(macd<50,50,macd,3,0),color555555;
drawband(diff,rgb(100,00,00),dea,rgb(00,200,00));
rsi:((sma(max((close - lc),0),p,1) / sma(abs((close - lc)),p,1))
* 100),colormagenta,linethick2;
80,colorcyan,linethick1;
抄底:if(快到底<0 and cross(macd,50) and vvar4<18,80,20),colorcyan;
高点压力1:drawline(currbarscount=gdcs2,rsi
,currbarscount=gdcs1,rsi,1) ,colorred,linethick2;
低点支撑1:drawline(currbarscount=ddcs2,rsi
,currbarscount=ddcs1,rsi,1),colorred,linethick2;
高点压力2:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs11,rsi,1) ,coloryellow,linethick2;
低点支撑2:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs11,rsi,1),coloryellow,linethick2;
高点压力3:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs2,rsi,1) ,colorgreen,linethick2;
低点支撑3:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs2,rsi,1),colorgreen,linethick2;

var1:=("399139$c");
var2:=("399190$c");
var3:=("399132$c");
var4:=("399150$c");
var5:=("399138$c");
var6:=("399200$c");
var7:=("399110$c");
var8:=("399136$c");
var9:=("399135$c");
var10:=("399130$c");
var11:=("399160$c");
var12:=if(c>100,c,("999999$c"));
var13:=("399137$c");



医药:=sum((var1/ref(var1,1)-1)*100,0)*10;
金融:=sum((var2/ref(var2,1)-1)*100,0)*10;
纺织:=sum((var3/ref(var3,1)-1)*100,0)*10;
建筑:=sum((var4/ref(var4,1)-1)*100,0)*10;
机械:=sum((var5/ref(var5,1)-1)*100,0)*10;
地产:=sum((var6/ref(var6,1)-1)*100,0)*10;
农林:=sum((var7/ref(var7,1)-1)*100,0)*10;
电子:=sum((var8/ref(var8,1)-1)*100,0)*10;
石化:=sum((var9/ref(var9,1)-1)*100,0)*10;
制造:=sum((var10/ref(var10,1)-1)*100,0)*10;
运输:=sum((var11/ref(var11,1)-1)*100,0)*10;
上证:=sum((var12/ref(var12,1)-1)*100,0)*10;
金属:=sum((var13/ref(var13,1)-1)*100,0)*10;

医药b:=ref(sum((var1/ref(var1,1)-1)*100,0)*10,1);
金融b:=ref(sum((var2/ref(var2,1)-1)*100,0)*10,1);
纺织b:=ref(sum((var3/ref(var3,1)-1)*100,0)*10,1);
建筑b:=ref(sum((var4/ref(var4,1)-1)*100,0)*10,1);
机械b:=ref(sum((var5/ref(var5,1)-1)*100,0)*10,1);
地产b:=ref(sum((var6/ref(var6,1)-1)*100,0)*10,1);
农林b:=ref(sum((var7/ref(var7,1)-1)*100,0)*10,1);
电子b:=ref(sum((var8/ref(var8,1)-1)*100,0)*10,1);
石化b:=ref(sum((var9/ref(var9,1)-1)*100,0)*10,1);
制造b:=ref(sum((var10/ref(var10,1)-1)*100,0)*10,1);
运输b:=ref(sum((var11/ref(var11,1)-1)*100,0)*10,1);
上证b:=ref(sum((var12/ref(var12,1)-1)*100,0)*10,1);
金属b:=ref(sum((var13/ref(var13,1)-1)*100,0)*10,1);

bvar17:=const(ma(医药b,rn));
bvar18:=const(ma(金融b,rn));
bvar19:=const(ma(纺织b,rn));
bvar20:=const(ma(建筑b,rn));
bvar21:=const(ma(机械b,rn));
bvar22:=const(ma(地产b,rn));
bvar23:=const(ma(农林b,rn));
bvar24:=const(ma(电子b,rn));
bvar25:=const(ma(石化b,rn));
bvar26:=const(ma(制造b,rn));
bvar27:=const(ma(运输b,rn));
bvar28:=const(ma(上证b,rn));
bvar29:=const(ma(金属b,rn));



var17:=const(ma(医药,rn));
var18:=const(ma(金融,rn));
var19:=const(ma(纺织,rn));
var20:=const(ma(建筑,rn));
var21:=const(ma(机械,rn));
var22:=const(ma(地产,rn));
var23:=const(ma(农林,rn));
var24:=const(ma(电子,rn));
var25:=const(ma(石化,rn));
var26:=const(ma(制造,rn));
var27:=const(ma(运输,rn));
var28:=const(ma(上证,rn));
var29:=const(ma(金属,rn));

医药c:=(const(医药)-(var17))-(const(医药b)-(bvar17));
金融c:=(const(金融)-(var18))-(const(金融b)-(bvar18));
纺织c:=(const(纺织)-(var19))-(const(纺织b)-(bvar19));
建筑c:=(const(建筑)-(var20))-(const(建筑b)-(bvar20));
机械c:=(const(机械)-(var21))-(const(机械b)-(bvar21));
地产c:=(const(地产)-(var22))-(const(地产b)-(bvar22));
农林c:=(const(农林)-(var23))-(const(农林b)-(bvar23));
电子c:=(const(电子)-(var24))-(const(电子b)-(bvar24));
石化c:=(const(石化)-(var25))-(const(石化b)-(bvar25));
制造c:=(const(制造)-(var26))-(const(制造b)-(bvar26));
运输c:=(const(运输)-(var27))-(const(运输b)-(bvar27));
上证c:=(const(上证)-(var28))-(const(上证b)-(bvar28));
金属c:=(const(金属)-(var29))-(const(金属b)-(bvar29));
p1:=if(barslast(currbarscount=10),1,0);
p2:=if(barslast(currbarscount=13),1,0);
p3:=if(barslast(currbarscount=16),1,0);
p4:=if(barslast(currbarscount=19),1,0);
p5:=if(barslast(currbarscount=22),1,0);
p6:=if(barslast(currbarscount=25),1,0);
p7:=if(barslast(currbarscount=28),1,0);
p8:=if(barslast(currbarscount=31),1,0);
p9:=if(barslast(currbarscount=34),1,0);
p10:=if(barslast(currbarscount=37),1,0);
p11:=if(barslast(currbarscount=40),1,0);
p12:=if(barslast(currbarscount=43),1,0);
p13:=if(barslast(currbarscount=46),1,0);
p14:=if(barslast(currbarscount=7),1,0);
stickline(医药,20,if(p2-p1,const(医药c)+20,drawnull),8,0),color999999;
stickline(金融,20,if(p3-p2,const(金融c)+20,drawnull),8,0),color999999;
stickline(纺织,20,if(p4-p3,const(纺织c)+20,drawnull),8,0),color999999;
stickline(建筑,20,if(p5-p4,const(建筑c)+20,drawnull),8,0),color999999;
stickline(机械,20,if(p6-p5,const(机械c)+20,drawnull),8,0),color999999;
stickline(地产,20,if(p7-p6,const(地产c)+20,drawnull),8,0),color999999;
stickline(农林,20,if(p8-p7,const(农林c)+20,drawnull),8,0),color999999;
stickline(电子,20,if(p9-p8,const(电子c)+20,drawnull),8,0),color999999;
stickline(石化,20,if(p10-p9,const(石化c)+20,drawnull),8,0),color999999;
stickline(制造,20,if(p11-p10,const(制造c)+20,drawnull),8,0),color999999;
stickline(运输,20,if(p12-p11,const(运输c)+20,drawnull),8,0),color999999;
stickline(金属,20,if(p13-p12,const(金属c)+20,drawnull),8,0),color999999;
stickline(医药,20,if(p2-p1,const(医药)-(var17)+20,drawnull),4,-2),colorff00ff;
stickline(金融,20,if(p3-p2,const(金融)-(var18)+20,drawnull),4,-2),colorff00ff;
stickline(纺织,20,if(p4-p3,const(纺织)-(var19)+20,drawnull),4,-2),colorff00ff;
stickline(建筑,20,if(p5-p4,const(建筑)-(var20)+20,drawnull),4,-2),colorff00ff;
stickline(机械,20,if(p6-p5,const(机械)-(var21)+20,drawnull),4,-2),colorff00ff;
stickline(地产,20,if(p7-p6,const(地产)-(var22)+20,drawnull),4,-2),colorff00ff;
stickline(农林,20,if(p8-p7,const(农林)-(var23)+20,drawnull),4,-2),colorff00ff;
stickline(电子,20,if(p9-p8,const(电子)-(var24)+20,drawnull),4,-2),colorff00ff;
stickline(石化,20,if(p10-p9,const(石化)-(var25)+20,drawnull),4,-2),colorff00ff;
stickline(制造,20,if(p11-p10,const(制造)-(var26)+20,drawnull),4,-2),colorff00ff;
stickline(运输,20,if(p12-p11,const(运输)-(var27)+20,drawnull),4,-2),colorff00ff;
stickline(上证,20,if(p1-p14,const(上证)-(var28)+20,drawnull),4,-1),color0000ff;
stickline(金属,20,if(p13-p12,const(金属)-(var29)+20,drawnull),4,-2),colorff00ff;
drawtext(p2-p1,-30,' 医药'),coloryellow;
drawtext(p3-p2,-30,' 金融'),coloryellow;
drawtext(p4-p3,-30,' 纺织'),coloryellow;
drawtext(p5-p4,-30,' 建筑'),coloryellow;
drawtext(p6-p5,-30,' 机械'),coloryellow;
drawtext(p7-p6,-30,' 地产'),coloryellow;
drawtext(p8-p7,-30,' 农林'),coloryellow;
drawtext(p9-p8,-30,' 电子'),coloryellow;
drawtext(p10-p9,-30,' 石化'),coloryellow;
drawtext(p11-p10,-30,' 制造'),coloryellow;
drawtext(p12-p11,-30,' 运输'),coloryellow;
drawtext(p13-p12,-30,' 金属'),coloryellow;

==================================================

{众仙过海参数 rn:1,100,10}
drawband(100,rgb(00,50,100),-50,rgb(00,00,00));
var1:=("399139$c");
var2:=("399190$c");
var3:=("399132$c");
var4:=("399150$c");
var5:=("399138$c");
var6:=("399200$c");
var7:=("399110$c");
var8:=("399136$c");
var9:=("399135$c");
var10:=("399130$c");
var11:=("399160$c");
var12:=if(c>100,c,("999999$c"));
var13:=("399137$c");



医药:=sum((var1/ref(var1,1)-1)*100,0)*10;
金融:=sum((var2/ref(var2,1)-1)*100,0)*10;
纺织:=sum((var3/ref(var3,1)-1)*100,0)*10;
建筑:=sum((var4/ref(var4,1)-1)*100,0)*10;
机械:=sum((var5/ref(var5,1)-1)*100,0)*10;
地产:=sum((var6/ref(var6,1)-1)*100,0)*10;
农林:=sum((var7/ref(var7,1)-1)*100,0)*10;
电子:=sum((var8/ref(var8,1)-1)*100,0)*10;
石化:=sum((var9/ref(var9,1)-1)*100,0)*10;
制造:=sum((var10/ref(var10,1)-1)*100,0)*10;
运输:=sum((var11/ref(var11,1)-1)*100,0)*10;
上证:=sum((var12/ref(var12,1)-1)*100,0)*10;
金属:=sum((var13/ref(var13,1)-1)*100,0)*10;

医药b:=ref(sum((var1/ref(var1,1)-1)*100,0)*10,1);
金融b:=ref(sum((var2/ref(var2,1)-1)*100,0)*10,1);
纺织b:=ref(sum((var3/ref(var3,1)-1)*100,0)*10,1);
建筑b:=ref(sum((var4/ref(var4,1)-1)*100,0)*10,1);
机械b:=ref(sum((var5/ref(var5,1)-1)*100,0)*10,1);
地产b:=ref(sum((var6/ref(var6,1)-1)*100,0)*10,1);
农林b:=ref(sum((var7/ref(var7,1)-1)*100,0)*10,1);
电子b:=ref(sum((var8/ref(var8,1)-1)*100,0)*10,1);
石化b:=ref(sum((var9/ref(var9,1)-1)*100,0)*10,1);
制造b:=ref(sum((var10/ref(var10,1)-1)*100,0)*10,1);
运输b:=ref(sum((var11/ref(var11,1)-1)*100,0)*10,1);
上证b:=ref(sum((var12/ref(var12,1)-1)*100,0)*10,1);
金属b:=ref(sum((var13/ref(var13,1)-1)*100,0)*10,1);

bvar17:=const(ma(医药b,rn));
bvar18:=const(ma(金融b,rn));
bvar19:=const(ma(纺织b,rn));
bvar20:=const(ma(建筑b,rn));
bvar21:=const(ma(机械b,rn));
bvar22:=const(ma(地产b,rn));
bvar23:=const(ma(农林b,rn));
bvar24:=const(ma(电子b,rn));
bvar25:=const(ma(石化b,rn));
bvar26:=const(ma(制造b,rn));
bvar27:=const(ma(运输b,rn));
bvar28:=const(ma(上证b,rn));
bvar29:=const(ma(金属b,rn));



var17:=const(ma(医药,rn));
var18:=const(ma(金融,rn));
var19:=const(ma(纺织,rn));
var20:=const(ma(建筑,rn));
var21:=const(ma(机械,rn));
var22:=const(ma(地产,rn));
var23:=const(ma(农林,rn));
var24:=const(ma(电子,rn));
var25:=const(ma(石化,rn));
var26:=const(ma(制造,rn));
var27:=const(ma(运输,rn));
var28:=const(ma(上证,rn));
var29:=const(ma(金属,rn));

医药c:=(const(医药)-(var17))-(const(医药b)-(bvar17));
金融c:=(const(金融)-(var18))-(const(金融b)-(bvar18));
纺织c:=(const(纺织)-(var19))-(const(纺织b)-(bvar19));
建筑c:=(const(建筑)-(var20))-(const(建筑b)-(bvar20));
机械c:=(const(机械)-(var21))-(const(机械b)-(bvar21));
地产c:=(const(地产)-(var22))-(const(地产b)-(bvar22));
农林c:=(const(农林)-(var23))-(const(农林b)-(bvar23));
电子c:=(const(电子)-(var24))-(const(电子b)-(bvar24));
石化c:=(const(石化)-(var25))-(const(石化b)-(bvar25));
制造c:=(const(制造)-(var26))-(const(制造b)-(bvar26));
运输c:=(const(运输)-(var27))-(const(运输b)-(bvar27));
上证c:=(const(上证)-(var28))-(const(上证b)-(bvar28));
金属c:=(const(金属)-(var29))-(const(金属b)-(bvar29));


p1:=if(barslast(currbarscount=10),1,0);
p2:=if(barslast(currbarscount=13),1,0);
p3:=if(barslast(currbarscount=16),1,0);
p4:=if(barslast(currbarscount=19),1,0);
p5:=if(barslast(currbarscount=22),1,0);
p6:=if(barslast(currbarscount=25),1,0);
p7:=if(barslast(currbarscount=28),1,0);
p8:=if(barslast(currbarscount=31),1,0);
p9:=if(barslast(currbarscount=34),1,0);
p10:=if(barslast(currbarscount=37),1,0);
p11:=if(barslast(currbarscount=40),1,0);
p12:=if(barslast(currbarscount=43),1,0);
p13:=if(barslast(currbarscount=46),1,0);
p14:=if(barslast(currbarscount=7),1,0);
stickline(医药,0,if(p2-p1,const(医药c),drawnull),8,0),color999999;
stickline(金融,0,if(p3-p2,const(金融c),drawnull),8,0),color999999;
stickline(纺织,0,if(p4-p3,const(纺织c),drawnull),8,0),color999999;
stickline(建筑,0,if(p5-p4,const(建筑c),drawnull),8,0),color999999;
stickline(机械,0,if(p6-p5,const(机械c),drawnull),8,0),color999999;
stickline(地产,0,if(p7-p6,const(地产c),drawnull),8,0),color999999;
stickline(农林,0,if(p8-p7,const(农林c),drawnull),8,0),color999999;
stickline(电子,0,if(p9-p8,const(电子c),drawnull),8,0),color999999;
stickline(石化,0,if(p10-p9,const(石化c),drawnull),8,0),color999999;
stickline(制造,0,if(p11-p10,const(制造c),drawnull),8,0),color999999;
stickline(运输,0,if(p12-p11,const(运输c),drawnull),8,0),color999999;
stickline(金属,0,if(p13-p12,const(金属c),drawnull),8,0),color999999;
stickline(上证,0,if(p1-p14,const(上证c),drawnull),8,0),color999999;
医药a:=sum((var1/ref(var1,1)-1)*100,0)*2+100;
金融a:sum((var2/ref(var2,1)-1)*100,0)*2+100,linethick1,color00ffff;
纺织a:=sum((var3/ref(var3,1)-1)*100,0)*2+100;
建筑a:=sum((var4/ref(var4,1)-1)*100,0)*2+100;
机械a:sum((var5/ref(var5,1)-1)*100,0)*2+100;
地产a:sum((var6/ref(var6,1)-1)*100,0)*2+100,linethick1;
农林a:sum((var7/ref(var7,1)-1)*100,0)*2+100,linethick1,color00ff00;
电子a:sum((var8/ref(var8,1)-1)*100,0)*2+100;
石化a:=sum((var9/ref(var9,1)-1)*100,0)*2+100;
制造a:sum((var10/ref(var10,1)-1)*100,0)*2+100;
运输a:sum((var11/ref(var11,1)-1)*100,0)*2+100;
上证a:sum((var12/ref(var12,1)-1)*100,0)*2+100,linethick1,color0000ff;
金属a:sum((var13/ref(var13,1)-1)*100,0)*2+100,color00ffff;
stickline(医药,0,if(p2-p1,const(医药)-(var17),drawnull),4,-2),colorff00ff;
stickline(金融,0,if(p3-p2,const(金融)-(var18),drawnull),4,-2),colorff00ff;
stickline(纺织,0,if(p4-p3,const(纺织)-(var19),drawnull),4,-2),colorff00ff;
stickline(建筑,0,if(p5-p4,const(建筑)-(var20),drawnull),4,-2),colorff00ff;
stickline(机械,0,if(p6-p5,const(机械)-(var21),drawnull),4,-2),colorff00ff;
stickline(地产,0,if(p7-p6,const(地产)-(var22),drawnull),4,-2),colorff00ff;
stickline(农林,0,if(p8-p7,const(农林)-(var23),drawnull),4,-2),colorff00ff;
stickline(电子,0,if(p9-p8,const(电子)-(var24),drawnull),4,-2),colorff00ff;
stickline(石化,0,if(p10-p9,const(石化)-(var25),drawnull),4,-2),colorff00ff;
stickline(制造,0,if(p11-p10,const(制造)-(var26),drawnull),4,-2),colorff00ff;
stickline(运输,0,if(p12-p11,const(运输)-(var27),drawnull),4,-2),colorff00ff;
stickline(上证,0,if(p1-p14,const(上证)-(var28),drawnull),4,-1),color0000ff;
stickline(金属,0,if(p13-p12,const(金属)-(var29),drawnull),4,-2),colorff00ff;
drawtext(p2-p1,-50,' 医药'),coloryellow;
drawtext(p3-p2,-50,' 金融'),coloryellow;
drawtext(p4-p3,-50,' 纺织'),coloryellow;
drawtext(p5-p4,-50,' 建筑'),coloryellow;
drawtext(p6-p5,-50,' 机械'),coloryellow;
drawtext(p7-p6,-50,' 地产'),coloryellow;
drawtext(p8-p7,-50,' 农林'),coloryellow;
drawtext(p9-p8,-50,' 电子'),coloryellow;
drawtext(p10-p9,-50,' 石化'),coloryellow;
drawtext(p11-p10,-50,' 制造'),coloryellow;
drawtext(p12-p11,-50,' 运输'),coloryellow;
drawtext(p13-p12,-50,' 金属'),coloryellow;
drawtext(p1-p14,-50,' 上证or当前'),color0000ff;
drawtext(islastbar,上证a,'当前指数'),color0000ff;

===============================================

{股市风帆参数 rn:1,100,10}

var1:=("399139$c");
var2:=("399190$c");
var3:=("399132$c");
var4:=("399150$c");
var5:=("399138$c");
var6:=("399200$c");
var7:=("399110$c");
var8:=("399136$c");
var9:=("399135$c");
var10:=("399130$c");
var11:=("399160$c");
var12:=("999999$c");
var13:=("399137$c");


医药:=ref(sum((var1/ref(var1,1)-1)*100,0)*10,1);
金融:=ref(sum((var2/ref(var2,1)-1)*100,0)*10,1);
纺织:=ref(sum((var3/ref(var3,1)-1)*100,0)*10,1);
建筑:=ref(sum((var4/ref(var4,1)-1)*100,0)*10,1);
机械:=ref(sum((var5/ref(var5,1)-1)*100,0)*10,1);
地产:=ref(sum((var6/ref(var6,1)-1)*100,0)*10,1);
农林:=ref(sum((var7/ref(var7,1)-1)*100,0)*10,1);
电子:=ref(sum((var8/ref(var8,1)-1)*100,0)*10,1);
石化:=ref(sum((var9/ref(var9,1)-1)*100,0)*10,1);
制造:=ref(sum((var10/ref(var10,1)-1)*100,0)*10,1);
运输:=ref(sum((var11/ref(var11,1)-1)*100,0)*10,1);
上证:=ref(sum((var12/ref(var12,1)-1)*100,0)*10,1);
金属:=ref(sum((var13/ref(var13,1)-1)*100,0)*10,1);

医药a:=sum((var1/ref(var1,1)-1)*100,0)*10;
金融a:=sum((var2/ref(var2,1)-1)*100,0)*10;
纺织a:=sum((var3/ref(var3,1)-1)*100,0)*10;
建筑a:=sum((var4/ref(var4,1)-1)*100,0)*10;
机械a:=sum((var5/ref(var5,1)-1)*100,0)*10;
地产a:=sum((var6/ref(var6,1)-1)*100,0)*10;
农林a:=sum((var7/ref(var7,1)-1)*100,0)*10;
电子a:=sum((var8/ref(var8,1)-1)*100,0)*10;
石化a:=sum((var9/ref(var9,1)-1)*100,0)*10;
制造a:=sum((var10/ref(var10,1)-1)*100,0)*10;
运输a:=sum((var11/ref(var11,1)-1)*100,0)*10;
上证a:=sum((var12/ref(var12,1)-1)*100,0)*10;
金属a:=sum((var13/ref(var13,1)-1)*100,0)*10;

avar17:=const(ma(医药a,rn));
avar18:=const(ma(金融a,rn));
avar19:=const(ma(纺织a,rn));
avar20:=const(ma(建筑a,rn));
avar21:=const(ma(机械a,rn));
avar22:=const(ma(地产a,rn));
avar23:=const(ma(农林a,rn));
avar24:=const(ma(电子a,rn));
avar25:=const(ma(石化a,rn));
avar26:=const(ma(制造a,rn));
avar27:=const(ma(运输a,rn));
avar28:=const(ma(上证a,rn));
avar29:=const(ma(金属a,rn));

var17:=const(ma(医药,rn));
var18:=const(ma(金融,rn));
var19:=const(ma(纺织,rn));
var20:=const(ma(建筑,rn));
var21:=const(ma(机械,rn));
var22:=const(ma(地产,rn));
var23:=const(ma(农林,rn));
var24:=const(ma(电子,rn));
var25:=const(ma(石化,rn));
var26:=const(ma(制造,rn));
var27:=const(ma(运输,rn));
var28:=const(ma(上证,rn));
var29:=const(ma(金属,rn));

p1:=if(barslast(currbarscount=4+1),1,0);
p2:=if(barslast(currbarscount=6+2),1,0);
p3:=if(barslast(currbarscount=8+3),1,0);
p4:=if(barslast(currbarscount=10+4),1,0);
p5:=if(barslast(currbarscount=12+5),1,0);
p6:=if(barslast(currbarscount=14+6),1,0);
p7:=if(barslast(currbarscount=16+7),1,0);
p8:=if(barslast(currbarscount=18+8),1,0);
p9:=if(barslast(currbarscount=20+9),1,0);
p10:=if(barslast(currbarscount=22+10),1,0);
p11:=if(barslast(currbarscount=24+11),1,0);
p12:=if(barslast(currbarscount=26+12),1,0);
p13:=if(barslast(currbarscount=28+13),1,0);
p14:=if(barslast(currbarscount=2),1,0);



医药b:=(const(医药a)-(avar17))-(const(医药)-(var17));
金融b:=(const(金融a)-(avar18))-(const(金融)-(var18));
纺织b:=(const(纺织a)-(avar19))-(const(纺织)-(var19));
建筑b:=(const(建筑a)-(avar20))-(const(建筑)-(var20));
机械b:=(const(机械a)-(avar21))-(const(机械)-(var21));
地产b:=(const(地产a)-(avar22))-(const(地产)-(var22));
农林b:=(const(农林a)-(avar23))-(const(农林)-(var23));
电子b:=(const(电子a)-(avar24))-(const(电子)-(var24));
石化b:=(const(石化a)-(avar25))-(const(石化)-(var25));
制造b:=(const(制造a)-(avar26))-(const(制造)-(var26));
运输b:=(const(运输a)-(avar27))-(const(运输)-(var27));
上证b:=(const(上证a)-(avar28))-(const(上证)-(var28));
金属b:=(const(金属a)-(avar29))-(const(金属)-(var29));

stickline(医药,0,if(p2-p1,const(医药b),drawnull),8,0),color999999;
stickline(金融,0,if(p3-p2,const(金融b),drawnull),8,0),color999999;
stickline(纺织,0,if(p4-p3,const(纺织b),drawnull),8,0),color999999;
stickline(建筑,0,if(p5-p4,const(建筑b),drawnull),8,0),color999999;
stickline(机械,0,if(p6-p5,const(机械b),drawnull),8,0),color999999;
stickline(地产,0,if(p7-p6,const(地产b),drawnull),8,0),color999999;
stickline(农林,0,if(p8-p7,const(农林b),drawnull),8,0),color999999;
stickline(电子,0,if(p9-p8,const(电子b),drawnull),8,0),color999999;
stickline(石化,0,if(p10-p9,const(石化b),drawnull),8,0),color999999;
stickline(制造,0,if(p11-p10,const(制造b),drawnull),8,0),color999999;
stickline(运输,0,if(p12-p11,const(运输b),drawnull),8,0),color999999;
{stickline(上证,0,if(p1-p14,const(上证b),drawnull),8,0),color999999;}
stickline(金属,0,if(p13-p12,const(金属b),drawnull),8,0),color999999;


stickline(医药,0,if(p2-p1,const(医药a)-(avar17),drawnull),6.5,-2),colorff00ff;
stickline(金融,0,if(p3-p2,const(金融a)-(avar18),drawnull),6.5,-2),colorff00ff;
stickline(纺织,0,if(p4-p3,const(纺织a)-(avar19),drawnull),6.5,-2),colorff00ff;
stickline(建筑,0,if(p5-p4,const(建筑a)-(avar20),drawnull),6.5,-2),colorff00ff;
stickline(机械,0,if(p6-p5,const(机械a)-(avar21),drawnull),6.5,-2),colorff00ff;
stickline(地产,0,if(p7-p6,const(地产a)-(avar22),drawnull),6.5,-2),colorff00ff;
stickline(农林,0,if(p8-p7,const(农林a)-(avar23),drawnull),6.5,-2),colorff00ff;
stickline(电子,0,if(p9-p8,const(电子a)-(avar24),drawnull),6.5,-2),colorff00ff;
stickline(石化,0,if(p10-p9,const(石化a)-(avar25),drawnull),6.5,-2),colorff00ff;
stickline(制造,0,if(p11-p10,const(制造a)-(avar26),drawnull),6.5,-2),colorff00ff;
stickline(运输,0,if(p12-p11,const(运输a)-(avar27),drawnull),6.5,-2),colorff00ff;
stickline(上证,0,if(p1-p14,const(上证a)-(avar28),drawnull),6.5,-1),colorff00ff;
stickline(金属,0,if(p13-p12,const(金属a)-(avar29),drawnull),6.5,-2),colorff00ff;


stickline(医药,0,if(p2-p1,const(医药)-(var17),drawnull),4,0),colorff00ff;
stickline(金融,0,if(p3-p2,const(金融)-(var18),drawnull),4,0),colorff00ff;
stickline(纺织,0,if(p4-p3,const(纺织)-(var19),drawnull),4,0),colorff00ff;
stickline(建筑,0,if(p5-p4,const(建筑)-(var20),drawnull),4,0),colorff00ff;
stickline(机械,0,if(p6-p5,const(机械)-(var21),drawnull),4,0),colorff00ff;
stickline(地产,0,if(p7-p6,const(地产)-(var22),drawnull),4,0),colorff00ff;
stickline(农林,0,if(p8-p7,const(农林)-(var23),drawnull),4,0),colorff00ff;
stickline(电子,0,if(p9-p8,const(电子)-(var24),drawnull),4,0),colorff00ff;
stickline(石化,0,if(p10-p9,const(石化)-(var25),drawnull),4,0),colorff00ff;
stickline(制造,0,if(p11-p10,const(制造)-(var26),drawnull),4,0),colorff00ff;
stickline(运输,0,if(p12-p11,const(运输)-(var27),drawnull),4,0),colorff00ff;
{stickline(上证,0,if(p1-p14,const(上证)-(var28),drawnull),4,0),colorff00ff;}
stickline(金属,0,if(p13-p12,const(金属)-(var29),drawnull),4,0),colorff00ff;
drawtext(p2-p1,-50,' 医药'),coloryellow;
drawtext(p3-p2,-50,' 金融'),coloryellow;
drawtext(p4-p3,-50,' 纺织'),coloryellow;
drawtext(p5-p4,-50,' 建筑'),coloryellow;
drawtext(p6-p5,-50,' 机械'),coloryellow;
drawtext(p7-p6,-50,' 地产'),coloryellow;
drawtext(p8-p7,-50,' 农林'),coloryellow;
drawtext(p9-p8,-50,' 电子'),coloryellow;
drawtext(p10-p9,-50,' 石化'),coloryellow;
drawtext(p11-p10,-50,' 制造'),coloryellow;
drawtext(p12-p11,-50,' 运输'),coloryellow;
drawtext(p1-p14,-50,' 上证'),coloryellow;
drawtext(p13-p12,-50,' 金属'),coloryellow;

路过顶顶..........


【封神系列优化升级版】射箭封神_众神下海_股海风帆

  >>>使用本站搜索工具可以找到更多封神系列优化升级版射箭封神_众神下海_股海风帆指标详解 通达信射箭升级版

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文封神系列优化升级版射箭封神_众神下海_股海风帆指标详解 通达信射箭升级版仅供学习研究。

猜你喜欢

学了又学