融合了波段与热点板块的波段板块指标
黄色持股,蓝色持币,并且下方有当天的热点板块,以便大家跟踪热点做个股,希望大家喜欢。
{参数 p:1,100,6 参数 n:1,100,3 参数 rn:1,100,10 参数 rm:1,30,3}
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(255,255,0),dea,rgb(0,0,220));
rsi:((sma(max((close - lc),0),p,1) / sma(abs((close - lc)),p,1))
* 100),color0000ff,linethick2;
{80,colorff0000,linethick1,pointdot;
抄底:if(快到底<0 and cross(macd,50) and vvar4<18,80,20),color0000ff,pointdot;}
高点压力1:drawline(currbarscount=gdcs2,rsi
,currbarscount=gdcs1,rsi,1) ,colorff00ff,linethick2;
低点支撑1:drawline(currbarscount=ddcs2,rsi
,currbarscount=ddcs1,rsi,1),colorff00ff,linethick2;
高点压力2:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs11,rsi,1) ,colorff00ff,linethick2;
低点支撑2:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs11,rsi,1),colorff00ff,linethick2;
高点压力3:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs2,rsi,1) ,colorgreen,linethick1;
低点支撑3:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs2,rsi,1),colorgreen,linethick1;
{↑================================================================================================↑}
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");
医药:=sum((var1/ref(var1,1)-1)*100,0)*8;
金融:=sum((var2/ref(var2,1)-1)*100,0)*8;
纺织:=sum((var3/ref(var3,1)-1)*100,0)*8;
建筑:=sum((var4/ref(var4,1)-1)*100,0)*8;
机械:=sum((var5/ref(var5,1)-1)*100,0)*8;
地产:=sum((var6/ref(var6,1)-1)*100,0)*8;
农林:=sum((var7/ref(var7,1)-1)*100,0)*8;
电子:=sum((var8/ref(var8,1)-1)*100,0)*8;
石化:=sum((var9/ref(var9,1)-1)*100,0)*8;
制造:=sum((var10/ref(var10,1)-1)*100,0)*8;
运输:=sum((var11/ref(var11,1)-1)*100,0)*8;
上证:=sum((var12/ref(var12,1)-1)*100,0)*8;
金属:=sum((var13/ref(var13,1)-1)*100,0)*8;
{↓方案二,众仙过海的显示部份↓}
{医药a:sum((var1/ref(var1,1)-1)*100,0)*2+100;
金融a:sum((var2/ref(var2,1)-1)*100,0)*2+100,linethick2;
纺织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,linethick2;
农林a:sum((var7/ref(var7,1)-1)*100,0)*2+100;
电子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,linethick2;
上证a:=sum((var12/ref(var12,1)-1)*100,0)*2+100;
金属a:sum((var13/ref(var13,1)-1)*100,0)*2+100;}
{↑================================================↑}
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)*2,1,0);
p2:=if(barslast(currbarscount=6+2)*2,1,0);
p3:=if(barslast(currbarscount=8+3)*2,1,0);
p4:=if(barslast(currbarscount=10+4)*2,1,0);
p5:=if(barslast(currbarscount=12+5)*2,1,0);
p6:=if(barslast(currbarscount=14+6)*2,1,0);
p7:=if(barslast(currbarscount=16+7)*2,1,0);
p8:=if(barslast(currbarscount=18+8)*2,1,0);
p9:=if(barslast(currbarscount=20+9)*2,1,0);
p10:=if(barslast(currbarscount=22+10)*2,1,0);
p11:=if(barslast(currbarscount=24+11)*2,1,0);
p12:=if(barslast(currbarscount=26+12)*2,1,0);
p13:=if(barslast(currbarscount=28+13)*2,1,0);
p14:=if(barslast(currbarscount=2)*2,1,0);
stickline(医药,0,if(p2-p1,const(医药)-(var17),drawnull),5,-2),colorff00ff;
stickline(金融,0,if(p3-p2,const(金融)-(var18),drawnull),5,-2),colorff00ff;
stickline(纺织,0,if(p4-p3,const(纺织)-(var19),drawnull),5,-2),colorff00ff;
stickline(建筑,0,if(p5-p4,const(建筑)-(var20),drawnull),5,-2),colorff00ff;
stickline(机械,0,if(p6-p5,const(机械)-(var21),drawnull),5,-2),colorff00ff;
stickline(地产,0,if(p7-p6,const(地产)-(var22),drawnull),5,-2),colorff00ff;
stickline(农林,0,if(p8-p7,const(农林)-(var23),drawnull),5,-2),colorff00ff;
stickline(电子,0,if(p9-p8,const(电子)-(var24),drawnull),5,-2),colorff00ff;
stickline(石化,0,if(p10-p9,const(石化)-(var25),drawnull),5,-2),colorff00ff;
stickline(制造,0,if(p11-p10,const(制造)-(var26),drawnull),5,-2),colorff00ff;
stickline(运输,0,if(p12-p11,const(运输)-(var27),drawnull),5,-2),colorff00ff;
stickline(上证,0,if(p1-p14,const(上证)-(var28),drawnull),5,-1),colorff00ff;
stickline(金属,0,if(p13-p12,const(金属)-(var29),drawnull),5,-2),colorff00ff;
stickline(医药,0,if(p2-p1,const(ma(医药,rm))-(var17),drawnull),0.8,0),coloraaaaff;
stickline(金融,0,if(p3-p2,const(ma(金融,rm))-(var18),drawnull),0.8,0),coloraaaaff;
stickline(纺织,0,if(p4-p3,const(ma(纺织,rm))-(var19),drawnull),0.8,0),coloraaaaff;
stickline(建筑,0,if(p5-p4,const(ma(建筑,rm))-(var20),drawnull),0.8,0),coloraaaaff;
stickline(机械,0,if(p6-p5,const(ma(机械,rm))-(var21),drawnull),0.8,0),coloraaaaff;
stickline(地产,0,if(p7-p6,const(ma(地产,rm))-(var22),drawnull),0.8,0),coloraaaaff;
stickline(农林,0,if(p8-p7,const(ma(农林,rm))-(var23),drawnull),0.8,0),coloraaaaff;
stickline(电子,0,if(p9-p8,const(ma(电子,rm))-(var24),drawnull),0.8,0),coloraaaaff;
stickline(石化,0,if(p10-p9,const(ma(石化,rm))-(var25),drawnull),0.8,0),coloraaaaff;
stickline(制造,0,if(p11-p10,const(ma(制造,rm))-(var26),drawnull),0.8,0),coloraaaaff;
stickline(运输,0,if(p12-p11,const(ma(运输,rm))-(var27),drawnull),0.8,0),coloraaaaff;
stickline(上证,0,if(p1-p14,const(ma(上证,rm))-(var28),drawnull),0.8,0),coloraaaaff;
stickline(金属,0,if(p13-p12,const(ma(金属,rm))-(var29),drawnull),0.8,0),coloraaaaff;
drawtext(p2-p1,-2,' 医'),coloryellow;
drawtext(p3-p2,-2,' 银'),coloryellow;
drawtext(p4-p3,-2,' 纺'),coloryellow;
drawtext(p5-p4,-2,' 建'),coloryellow;
drawtext(p6-p5,-2,' 机'),coloryellow;
drawtext(p7-p6,-2,' 地'),coloryellow;
drawtext(p8-p7,-2,' 农'),coloryellow;
drawtext(p9-p8,-2,' 电'),coloryellow;
drawtext(p10-p9,-2,' 化'),coloryellow;
drawtext(p11-p10,-2,' 制'),coloryellow;
drawtext(p12-p11,-2,' 运'),coloryellow;
drawtext(p1-p14,-2,' 上证'),coloryellow;
drawtext(p13-p12,-2,' 金'),coloryellow;
上一指标公式:警示线下载
下一指标公式:巧牛网精准买卖指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文融合了波段与热点板块的波段板块指标下载仅供学习研究。