aa:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
bb:=EMA(CLOSE,12)-EMA(CLOSE,26);
zz:=EMA(bb,9);
macd:=(bb-zz)*2;
XG:crOSS(C,aa) AND MacD>0 AND REF(ALL(MACDREF(MACD,1);
aa:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
bb:=EMA(CLOSE,12)-EMA(CLOSE,26);
zz:=EMA(bb,9);
macd:=(bb-zz)*2;
XG:crOSS(C,aa) AND MacD>0 AND REF(ALL(MACDREF(MACD,1);