通达信运行通道主图指标公式
2020/6/9 18:43:40
N:=102;M:=7;
ZF:=(C-REF(C,1))/REF(C,1)*100;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*N/100;
通道2:=AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+M/100)*DD;
通道4:=(1-M/100)*DD;
短中轨:=(通道1+通道2)/2;
薛斯中轨:=(通道3+通道4)/2;
DRAWBAND(CONST(薛斯中轨),RGB(39,0,39),通道1,205);
DRAWBAND(CONST(通道4),RGB(39,139,39),通道2,90);
DRAWKLINE(H,O,L,C);
T1:通道1;
T2:通道2;
T3:IF(CURRBARSCOUNT<120,CONST(通道3),通道3);
T4:IF(CURRBARSCOUNT<120,CONST(通道4),通道4);
T5:短中轨;
T6:CONST(MA(T5,5));
T7:IF(CURRBARSCOUNT<120,CONST(薛斯中轨),薛斯中轨);
XG:=COUNT((C>通道4),10)=10 AND CROSS(通道4,L) AND 通道4>REF(通道4,1) AND SUM(ZF>9.9,3)<1 AND REF(C,1)/L>1.03;
DRAWICON(CROSS(通道4,L) AND 通道4>REF(通道4,1),L,5);
DRAWICON(CROSS(C,通道4) AND C>REF(C,1),L,5);
DRAWICON(CROSS(C,T5) AND C>REF(C,1),L,3);
DRAWICON(CROSS(C,T7) AND C>REF(C,1),L,9);
投股票 网 ww w.tou18.cn
股市公式下载推荐