【股海封神】眼观六路;洞察强势板块!附图
[/cdrawband(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;
参数:n=13 ; p=4 ;rn=27
olor]
上一指标公式:操盘线指标详解 通达信操盘
下一指标公式:黄金底指标详解 通达信黄金
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文股海封神眼观六路;洞察强势板块指标详解 通达信洞察强势仅供学习研究。