A1:=(CLOSE+LOW+HIGH)/3;
A2:=EMA(A1,6);
A3:=EMA(A2,5);
X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);
Y:=EMA(CLOSE,10);
DD:=CROSS(Y,X);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:=MACD>0 AND LAST(MACD>0 AND MACD<REF(MACD,1),3,1) AND MACD>REF(MACD,1);
自编指标:CROSS(A2,A3) AND XG AND DD;