OPEN-SOURCE SCRIPT

Momentum MA RSI Breakout

85
Moving Averages (EMA 9 & EMA 21):

Fast EMA crossing above Slow EMA = Bullish Trend
Fast EMA crossing below Slow EMA = Bearish Trend
RSI-Based Buy/Sell Signals (14-period RSI):

RSI crosses above 30 → Buy signal
RSI crosses below 70 → Sell signal
Breakout Alerts (20-period lookback):

Price breaks above the highest high in the last 20 bars → Breakout Up
Price breaks below the lowest low in the last 20 bars → Breakout Down
Visual Enhancements:

Green/Red background for strong buy/sell signals
Up/Down triangles for breakout alerts
Alerts for key events

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.