N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
V1:=C REF(C,1)*1.04 AND C
XG:DIF 0 AND Abs(MACD) 0.01 AND V MA(V,N) AND C =REF(C,BARSLAST(V1));
N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
V1:=C REF(C,1)*1.04 AND C
XG:DIF 0 AND Abs(MACD) 0.01 AND V MA(V,N) AND C =REF(C,BARSLAST(V1));