MA5 := MA(CLOSE, 5);
MA10 := MA(CLOSE, 10);
MA20 := MA(CLOSE, 20);
MA60 := MA(CLOSE, 60);
BULLALIGN := (MA5 > MA10) AND (MA10 > MA20) AND (MA20 > MA60);
BREAKOUT := CLOSE > HHV(CLOSE, 20) AND TIME <= 0935;
AVGVOL := MA(VOL, 20);
SIGVOL := VOL > 1.5 * AVGVOL;
DIF := EMA(CLOSE, 12) - EMA(CLOSE, 26);
DEA := EMA(DIF, 9);
MACDCROSS := CROSS(DIF, DEA) AND TIME <= 0935 AND V > MA(V, 5);
BUYSIG := BREAKOUT AND SIGVOL;
FINALCOND := BULLALIGN AND MACDCROSS AND TIME <= 0935;
STICKLINE(FINALCOND, LOW, L*999, 0.5, 0), COLORMAGENTA;
DRAWICON(BUYSIG, HIGH + 0.01, 23);