a1:=if(high>=ref(high,1) and high>=ref(high,2) and high>=ref(high,3) and high>=ref(high,4) and high>=ref(high,5),low,0);
b:=if(low<=ref(low,1) and low<=ref(low,2) and low<=ref(low,3) and low<=ref(low,4) and low<=ref(low,5),high,888888);
a:=a1-15;
p1:=if(a>ref(low,1),ref(low,1),0);
p2:=if(a>ref(low,2) and a<=ref(low,1),ref(low,2),0);
p3:=if(a>ref(low,3) and a<=ref(low,1) and a<=ref(low,2),ref(low,3),0);
p4:=if(a>ref(low,4) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3),ref(low,4),0);
p5:=if(a>ref(low,5) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4),ref(low,5),0);
p6:=if(a>ref(low,6) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4) and a<=ref(low,5),ref(low,6),0);
p7:=if(a>ref(low,7) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4) and a<=ref(low,5) and a<=ref(low,6),ref(low,7),0);
p8:=if(a>ref(low,8) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4) and a<=ref(low,5) and a<=ref(low,6) and a<=ref(low,7),ref(low,8),0);
p9:=if(a>ref(low,9) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4) and a<=ref(low,5) and a<=ref(low,6) and a<=ref(low,7) and a<=ref(low,8),ref(low,9),0);
p10:=if(a>ref(low,10) and a<=ref(low,1) and a<=ref(low,2) and a<=ref(low,3) and a<=ref(low,4) and a<=ref(low,5) and a<=ref(low,6) and a<=ref(low,7) and a<=ref(low,8) and a<=ref(low,9),ref(low,10),0);
aa:=p1+p2+p3+p4+p5+p6+p7+p8+p9+p10-14;
pp1:=if(aa>ref(low,1),ref(low,1),0);
pp2:=if(aa>ref(low,2) and aa<=ref(low,1),ref(low,2),0);
pp3:=if(aa>ref(low,3) and aa<=ref(low,1) and aa<=ref(low,2),ref(low,3),0);
pp4:=if(aa>ref(low,4) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3),ref(low,4),0);
pp5:=if(aa>ref(low,5) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4),ref(low,5),0);
pp6:=if(aa>ref(low,6) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4) and aa<=ref(low,5),ref(low,6),0);
pp7:=if(aa>ref(low,7) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4) and aa<=ref(low,5) and aa<=ref(low,6),ref(low,7),0);
pp8:=if(aa>ref(low,8) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4) and aa<=ref(low,5) and aa<=ref(low,6) and aa<=ref(low,7),ref(low,8),0);
pp9:=if(aa>ref(low,9) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4) and aa<=ref(low,5) and aa<=ref(low,6) and aa<=ref(low,7) and aa<=ref(low,8),ref(low,9),0);
pp10:=if(aa>ref(low,10) and aa<=ref(low,1) and aa<=ref(low,2) and aa<=ref(low,3) and aa<=ref(low,4) and aa<=ref(low,5) and aa<=ref(low,6) and aa<=ref(low,7) and aa<=ref(low,8) and aa<=ref(low,9),ref(low,10),0);
aaa:=pp1+pp2+pp3+pp4+pp5+pp6+pp7+pp8+pp9+pp10;
c1:=valuewhen(aaa>0,aaa);
t1:=if(b<ref(high,1),ref(high,1),0);
t2:=if(b<ref(high,2) and b>=ref(high,1),ref(high,2),0);
t3:=if(b<ref(high,3) and b>=ref(high,1) and b>=ref(high,2),ref(high,3),0);
t4:=if(b<ref(high,4) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3),ref(high,4),0);
t5:=if(b<ref(high,5) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4),ref(high,5),0);
t6:=if(b<ref(high,6) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4) and b>=ref(high,5),ref(high,6),0);
t7:=if(b<ref(high,7) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4) and b>=ref(high,5) and b>=ref(high,6),ref(high,7),0);
t8:=if(b<ref(high,8) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4) and b>=ref(high,5) and b>=ref(high,6) and b>=ref(high,7),ref(high,8),0);
t9:=if(b<ref(high,9) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4) and b>=ref(high,5) and b>=ref(high,6) and b>=ref(high,7) and b>=ref(high,8),ref(high,9),0);
t10:=if(b<ref(high,10) and b>=ref(high,1) and b>=ref(high,2) and b>=ref(high,3) and b>=ref(high,4) and b>=ref(high,5) and b>=ref(high,6) and b>=ref(high,7) and b>=ref(high,8) and b>=ref(high,9),ref(high,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(high,1),ref(high,1),0);
tt2:=if(bb<ref(high,2) and bb>=ref(high,1),ref(high,2),0);
tt3:=if(bb<ref(high,3) and bb>=ref(high,1) and bb>=ref(high,2),ref(high,3),0);
tt4:=if(bb<ref(high,4) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3),ref(high,4),0);
tt5:=if(bb<ref(high,5) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4),ref(high,5),0);
tt6:=if(bb<ref(high,6) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4) and bb>=ref(high,5),ref(high,6),0);
tt7:=if(bb<ref(high,7) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4) and bb>=ref(high,5) and bb>=ref(high,6),ref(high,7),0);
tt8:=if(bb<ref(high,8) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4) and bb>=ref(high,5) and bb>=ref(high,6) and bb>=ref(high,7),ref(high,8),0);
tt9:=if(bb<ref(high,9) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4) and bb>=ref(high,5) and bb>=ref(high,6) and bb>=ref(high,7) and bb>=ref(high,8),ref(high,9),0);
tt10:=if(bb<ref(high,10) and bb>=ref(high,1) and bb>=ref(high,2) and bb>=ref(high,3) and bb>=ref(high,4) and bb>=ref(high,5) and bb>=ref(high,6) and bb>=ref(high,7) and bb>=ref(high,8) and bb>=ref(high,9),ref(high,10),0);
bbb:=tt1+tt2+tt3+tt4+tt5+tt6+tt7+tt8+tt9+tt10;
d:=valuewhen(bbb>0,bbb);
ud:=if(close>d and ref(close,1)<=d,1,if(close<c1 and ref(close,1)>=c1,-3,0));
k:=valuewhen(ud<>0,ud);
g:=if(k=1,c1,d);
polyline(low>0,g),linethick2,colorffff;
止损:=g;
da:=openminutes(time)>0 or close<>止损;
stickline(close>止损 and da,high,low,0,0),colorff;
stickline(close>止损 and da,close,open,8,1),colorff;
stickline(close<止损 and da,high,low,0,0),colorff0000;
stickline(close<止损 and da,close,open,8,1),colorff0000;
stickline(close=止损 and da and ref(high,5)>止损,high,low,0,0),colorff;
stickline(close=止损 and da and ref(high,5)>止损,close,open,8,1),colorff;
stickline(close=止损 and da and ref(low,5)<止损,high,low,0,0),colorff0000;
stickline(close=止损 and da and ref(low,5)<止损,close,open,8,1),colorff0000;
stickline(close>open and close>止损 and da,close,open,8,0),colorff;
stickline(close>open and close<止损 and da,close,open,8,0),colorff0000;
stickline(close>open and close=止损 and da and ref(high,5)>止损,close,open,8,0),colorff;
stickline(close>open and close=止损 and da and ref(low,5)<止损,close,open,8,0),colorff0000;
drawtext((ref(close,1)<ref(止损,1) and close>止损 or ref(close,1)=ref(止损,1) and ref(low,6)<ref(止损,1) and close>止损 or ref(close,1)<ref(止损,1) and close=止损 and ref(high,5)>止损 or ref(close,1)=ref(止损,1) and ref(low,6)<ref(止损,1) and close=止损 and ref(high,5)>止损) and da,low-0.02,'多'),colorff00ff;
drawtext((ref(close,1)>ref(止损,1) and close<止损 or ref(close,1)=ref(止损,1) and ref(high,6)>ref(止损,1) and close<止损 or ref(close,1)>ref(止损,1) and close=止损 and ref(low,5)<止损 or ref(close,1)=ref(止损,1) and ref(high,6)>ref(止损,1) and close=止损 and ref(low,5)<止损) and da,high+0.06,'空'),colorff00;
drawicon((ref(close,1)<ref(止损,1) and close>止损 or ref(close,1)=ref(止损,1) and ref(low,6)<ref(止损,1) and close>止损 or ref(close,1)<ref(止损,1) and close=止损 and ref(high,5)>止损 or ref(close,1)=ref(止损,1) and ref(low,6)<ref(止损,1) and close=止损 and ref(high,5)>止损) and da,low-0.02,4);
drawicon((ref(close,1)>ref(止损,1) and close<止损 or ref(close,1)=ref(止损,1) and ref(high,6)>ref(止损,1) and close<止损 or ref(close,1)>ref(止损,1) and close=止损 and ref(low,5)<止损 or ref(close,1)=ref(止损,1) and ref(high,6)>ref(止损,1) and close=止损 and ref(low,5)<止损) and da,high+0.06,5);
上一指标公式:金牛换手最小买主图公式 飞狐换手源码指标 源码
下一指标公式:神箭无双的改编公式 飞狐公式改编指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文期货多空期货主图公式 飞狐公式多空指标 源码仅供学习研究。