《超级短线》指标 源码:
h:=high;
l:=low;
a:=if(high>=ref(high,1)&&high>=ref(high,2)&&high>=ref(high,3) &&high>=ref(high,4)&&high>=ref(high,5),low,0);
b:=if(low<=ref(low,1)&&low<=ref(low,2)&&low<=ref(low,3) &&low<=ref(low,4)&&low<=ref(low,5),high,888888);
p1:=if(a>ref(l,1),ref(l,1),0);
p2:=if(a>ref(l,2)&&a<=ref(l,1),ref(l,2),0);
p3:=if(a>ref(l,3)&&a<=ref(l,1)&&a<=ref(l,2),ref(l,3),0);
p4:=if(a>ref(l,4)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3),ref(l,4),0);
p5:=if(a>ref(l,5)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4),ref(l,5),0);
p6:=if(a>ref(l,6)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4)&&a<=ref(l,5),ref(l,6),0);
p7:=if(a>ref(l,7)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4)&&a<=ref(l,5)&&a<=ref(l,6),ref(l,7),0);
p8:=if(a>ref(l,8)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4)&&a<=ref(l,5)&&a<=ref(l,6)&&a<=ref(l,7),ref(l,8),0);
p9:=if(a>ref(l,9)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4)&&a<=ref(l,5)&&a<=ref(l,6)&&a<=ref(l,7)&&a<=ref(l,8),ref(l,9),0);
p10:=if(a>ref(l,10)&&a<=ref(l,1)&&a<=ref(l,2)&&a<=ref(l,3)&&a<=ref(l,4)&&a<=ref(l,5)&&a<=ref(l,6)&&a<=ref(l,7)&&a<=ref(l,8)&&a<=ref(l,9),ref(l,10),0);
aa:=p1+p2+p3+p4+p5+p6+p7+p8+p9+p10;
pp1:=if(aa>ref(l,1),ref(l,1),0);
pp2:=if(aa>ref(l,2)&&aa<=ref(l,1),ref(l,2),0);
pp3:=if(aa>ref(l,3)&&aa<=ref(l,1)&&aa<=ref(l,2),ref(l,3),0);
pp4:=if(aa>ref(l,4)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3),ref(l,4),0);
pp5:=if(aa>ref(l,5)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4),ref(l,5),0);
pp6:=if(aa>ref(l,6)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4)&&aa<=ref(l,5),ref(l,6),0);
pp7:=if(aa>ref(l,7)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4)&&aa<=ref(l,5)&&aa<=ref(l,6),ref(l,7),0);
pp8:=if(aa>ref(l,8)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4)&&aa<=ref(l,5)&&aa<=ref(l,6)&&aa<=ref(l,7),ref(l,8),0);
pp9:=if(aa>ref(l,9)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4)&&aa<=ref(l,5)&&aa<=ref(l,6)&&aa<=ref(l,7)&&aa<=ref(l,8),ref(l,9),0);
pp10:=if(aa>ref(l,10)&&aa<=ref(l,1)&&aa<=ref(l,2)&&aa<=ref(l,3)&&aa<=ref(l,4)&&aa<=ref(l,5)&&aa<=ref(l,6)&&aa<=ref(l,7)&&aa<=ref(l,8)&&aa<=ref(l,9),ref(l,10),0);
aaa:=pp1+pp2+pp3+pp4+pp5+pp6+pp7+pp8+pp9+pp10;
c:=valuewhen(aaa>0,aaa);
t1:=if(b<ref(h,1),ref(h,1),0);
t2:=if(b<ref(h,2)&&b>=ref(h,1),ref(h,2),0);
t3:=if(b<ref(h,3)&&b>=ref(h,1)&&b>=ref(h,2),ref(h,3),0);
t4:=if(b<ref(h,4)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3),ref(h,4),0);
t5:=if(b<ref(h,5)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4),ref(h,5),0);
t6:=if(b<ref(h,6)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4)&&b>=ref(h,5),ref(h,6),0);
t7:=if(b<ref(h,7)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4)&&b>=ref(h,5)&&b>=ref(h,6),ref(h,7),0);
t8:=if(b<ref(h,8)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4)&&b>=ref(h,5)&&b>=ref(h,6)&&b>=ref(h,7),ref(h,8),0);
t9:=if(b<ref(h,9)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4)&&b>=ref(h,5)&&b>=ref(h,6)&&b>=ref(h,7)&&b>=ref(h,8),ref(h,9),0);
t10:=if(b<ref(h,10)&&b>=ref(h,1)&&b>=ref(h,2)&&b>=ref(h,3)&&b>=ref(h,4)&&b>=ref(h,5)&&b>=ref(h,6)&&b>=ref(h,7)&&b>=ref(h,8)&&b>=ref(h,9),ref(h,10),0);
bb:=if((t1+t2+t3+t4+t5+t6+t7+t8+t9+t10)=0,888888,t1+t2+t3+t4+t5+t6+t7+t8+t9+t10);
tt1:=if(bb<ref(h,1),ref(h,1),0);
tt2:=if(bb<ref(h,2)&&bb>=ref(h,1),ref(h,2),0);
tt3:=if(bb<ref(h,3)&&bb>=ref(h,1)&&bb>=ref(h,2),ref(h,3),0);
tt4:=if(bb<ref(h,4)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3),ref(h,4),0);
tt5:=if(bb<ref(h,5)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4),ref(h,5),0);
tt6:=if(bb<ref(h,6)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4)&&bb>=ref(h,5),ref(h,6),0);
tt7:=if(bb<ref(h,7)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4)&&bb>=ref(h,5)&&bb>=ref(h,6),ref(h,7),0);
tt8:=if(bb<ref(h,8)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4)&&bb>=ref(h,5)&&bb>=ref(h,6)&&bb>=ref(h,7),ref(h,8),0);
tt9:=if(bb<ref(h,9)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4)&&bb>=ref(h,5)&&bb>=ref(h,6)&&bb>=ref(h,7)&&bb>=ref(h,8),ref(h,9),0);
tt10:=if(bb<ref(h,10)&&bb>=ref(h,1)&&bb>=ref(h,2)&&bb>=ref(h,3)&&bb>=ref(h,4)&&bb>=ref(h,5)&&bb>=ref(h,6)&&bb>=ref(h,7)&&bb>=ref(h,8)&&bb>=ref(h,9),ref(h,10),0);
bbb:=tt1+tt2+tt3+tt4+tt5+tt6+tt7+tt8+tt9+tt10;
d:=valuewhen(bbb>0,bbb);
ud:=if(close>d&&ref(close,1)<=d,1,if(close<c&&ref(close,1)>=c,-3,0));
k:=valuewhen(ud<>0,ud);
g:=if(k=1,c,d),colorred;
polyline(low>0,g,coloryellow);
g1:=valuewhen(islastbar,g);
drawnumber(low>0,g1,g1,0,coloryellow);
tmp:=-k;
drawline(tmp>0.00001,high,tmp>0.00001,open,colorcyan);
drawline(tmp>0.00001,low,tmp>0.00001,close,colorcyan);
drawline(tmp<-0.00001,high,tmp<-0.00001,close,colorred);
drawline(tmp<-0.00001,low,tmp<-0.00001,open,colorred);
drawline(abs(tmp)<0.00001,low,abs(tmp)<0.00001,open,colorwhite);
drawline(abs(tmp)<0.00001,high,abs(tmp)<0.00001,open,colorwhite);
stickline(tmp>0,open,close,colorcyan,0);
stickline(tmp<=0,open,close,colorred,1);
上一指标公式:稳健MACD金叉开仓模型公式 模型MACD指标源码
下一指标公式:抢金多空版公式 多空指标源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文超级短线公式 源码指标源码仅供学习研究。