以下是通达信小牛爬山选股/副图指标
DIFF:=EMA(C,13)-EMA(C,21);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
DDI:=EMA(CLOSE,12)-EMA(CLOSE,26);
DDE:=EMA(DDI,9);
MD:=(DDI-DDE)*2;
VA2:=((HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VA3:=SMA(VA2,2,1),COLORWHITE,LINETHICK2;
AX1:=SMA(VA3,2,1);
BX1:=(AX1-((VA2-AX1)*VA2-AX1)/AX1);
CP:=SMA(BX1,5,1),COLORFFAA00;
CCP:=EMA(EMA(EMA(VA3,3),2),1);
XG:MACD>0 AND DDI>0 AND DDE>0 AND MD>0 AND CROSS(CP,CCP);