# Beast Mode Scoring
def beast_mode_score(price, closes, open_price, prev_close):
# RSI component
rsi = calculate_rsi(closes, period=14)
score += 4 # if RSI < 35 (oversold)
score -= 4 # if RSI > 70 (overbought)
# MACD component
macd = calculate_macd(closes)
score += 1 # if MACD trending UP
# Gap component
gap = open_price - prev_close
score += 1 # if gap > +20
# Signal Threshold
action = "EXECUTE" # if |score| >= 5
action = "LOG_ONLY" # if |score| < 5