OPEN_R := (OPEN - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100;

INIT_STR := (CLOSE - OPEN) / OPEN * 100;

VOL_COND := VOL > REF(VOL, 1);

MACD_COND := MACD(12, 26, 9) > REF(MACD(12, 26, 9), 1);

RSI_COND := RSI(6) > 30;

EARLY_BUY := OPEN_R < 2 AND INIT_STR > 1 AND VOL_COND AND MACD_COND AND RSI_COND;

DRAWICON(EARLY_BUY, LOW, 1);