通达信通道指标(源码)
2013-12-10 09:19:00来源:本站整理浏览:511
变1:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
变2:=SMA(MAX(C-REF(C,1),0),10,1)/SMA(ABS(C-REF(C,1)),10,1)*100;
通道1:=EMA(变1,2);
通道2:=EMA(变2,2);
通道3:(通道1-通道2),COLORCYAN;
IF1:IF(通道3>REF(通道3,1),通道3,DRAWNULL),COLORMAGENTA;
通道4:-通道3,COLORGREEN;
道IF2:IF(通道3>0,通道4,DRAWNULL),COLORYELLOW;
道IF3:IF(通道3>0,通道3,DRAWNULL),COLORWHITE;
道IF4:DRAWBAND(道IF3,RGB(141,22,47),道IF2,RGB(0,0,0));
XRTY:=(通道3>REF(通道3,1))>(通道1-通道2);
DRAWTEXT(FILTER(REF(通道4>10 AND 通道4>REF(通道4,1),1) AND 通道4<REF(通道4,1) AND XRTY,5),通道3,'变'),COLORWHITE;
DFG:=道IF2=道IF3;
DRAWTEXT(通道4<-3.5 AND REF(DFG>0,1) AND DFG=0,通道3-0.6,'通'),COLORYELLOW;
- 上一篇公式:通达信影线变色主图指标(源码)
- 下一篇公式:通达信攻击点选股指标(源码)