天数:=20;SHORT:=5;LONG:=26;MID:=3;N:=14;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,MID);
MACD:(DIFF-DEA)*3,COLORSTICK;
连续下跌买选股:COUNT(MA(C,20)<REF(MA(C,40),1),20)=20;
连续上升卖选股:COUNT(MA(C,20)>REF(MA(C,20),1),20)=20;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),1,0),COLORCYAN;
二次金叉选股:CROSS("MACD.DIF","MACD.DEA")&&EVERY("MACD.DIF"<0,天数)
&&REF(EXIST(CROSS("MACD.DIF","MACD.DEA"),天数),1);