祝各位朋友五一节快乐,分享一个直观准确好用的附图指标--通达信:
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);
说明:持股数字代表满足持股信号出现的第几天,空仓数字同理