DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);macd:=2*(DIFF-DEA);
XX:=REF(MacD,1)=0 AND MACD>REF(MACD,1);
XG:Abs(C-MA(C,43))/MA(C,43)<0.01 AND XX;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);macd:=2*(DIFF-DEA);
XX:=REF(MacD,1)=0 AND MACD>REF(MACD,1);
XG:Abs(C-MA(C,43))/MA(C,43)<0.01 AND XX;