DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30)
AND DIFF>DEA AND macd>REF(MACD,1) AND DIFF>0 AND DEA>0 AND MA(VOL,5)>MA(VOL,34)
AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1);