最接近缠中说禅走势类型判断的指标!比MACD更加直观准确高效率![通达信指标](已修复)
[font=arial][size=3][color=#333333]源码如下:[/color][/size][/font][font=arial][size=3][color=#333333][code]A1:=O-REF(C,1);
A2:=C-REF(C,1);
A3:=IF(C>REF(C,1),H-L,L-H);
A4:=H-HHV(H,0);
A5:=L-LLV(L,0);
ZFC:=(A1+A2+A3+A4+A5)/EMA(C,Y);
MZ1:EMA(ZFC,X),colorwhite;
MZ2:EMA(ZFC,Y),coloryellow;
STICKLINE(MZ1>MZ2,MZ1,MZ2,0,0),colorred;
STICKLINE(MZ1<MZ2,MZ2,MZ1,0,0),colorcyan;
MJ:=MZ1-MZ2;
JM:=MZ2-MZ1;
绿柱面积:IF(MJ<0,SUM(MJ*100,BARSLAST(JM<0)),0),NODRAW;
红柱面积:IF(MJ>0,SUM(MJ*100,BARSLAST(JM>0)),0),NODRAW;
零轴:IF(MZ1>MZ2,MZ1-0,0-MZ2),NODRAW;
DRAWNUMBER(MZ1>MZ2 AND REF(MZ1,1)<REF(MZ2,1) AND REF(绿柱面积,1)<-20,MZ2,REF(绿柱面积,1)),colorgreen;
DRAWNUMBER(MZ1<MZ2 AND REF(MZ1,1)>REF(MZ2,1) AND REF(红柱面积,1)>20,REF(MZ1,3),REF(红柱面积,1)),colorred;
[/code]
[/color][/size][/font] 感谢分享,这个指标不错! 谢谢
页:
[1]