通达信直观准确好用的副图指标
A1:=EMA(CLOSE,7)-EMA(CLOSE,21);
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORRED;
做空:IF(B1-A1,B1,A1),LINETHICK2,COLORGREEN;
CG:=做多>做空 AND 做多>REF(做多,1),COLOR00FFFF,NODRAW;
KC:=CG<1,COLOR00FF00,NODRAW;
持股:IF(CG,BARSLASTCOUNT(CG),DRAWNULL),COLOR00FFFF,NODRAW;
空仓:IF(KC,BARSLASTCOUNT(KC),DRAWNULL),COLOR00FF00,NODRAW;
DRAWICON(持股=1,B1-0.1,1);
DRAWICON(空仓=1,B1+0.1,2);