通达信MACD选股公式
MACD回0轴
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26)*100;
DEA:=EMA(DIF,9);
DIF<0 AND DIF>-0.3 AND COUNT(DIF<REF(DIF,1),4)=4
AND DEA>DIF AND MA(DIF,10)>0 AND REF(DIF,3)>=0 AND C/MA(C,10)>0.95;
复制代码
适用于30F、60F选股
MACD0轴上第一个金叉
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=CROSS(DIF,DEA) AND DEA>0;
BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>0;
CC:=REF(BARSLAST(CROSS(DIF,0))<20,BARSLAST(CROSS(DEA,DIF))+1);
AA AND BB AND CC;