OPEN-SOURCE SCRIPT
Updated

Flexible Moving Averages with MACD and RSI

357
Every stock momentum can be identified either by crossing of higher EMA by lower EMA or MACD line crossing signal line and moving up or RSI value rising above 45 or 50. This indicator combines Moving averages with MACD and RSI

How to use:

Configure any or all of 5 moving averages according to your preference. It can be EMA or SMA. Configure symbols for MACD crossing or RSI rising.

By default, if RSI crosses above 50, green triangle appears below candle. If RSI crosses 50 and comes down, red inverted triangle appears above candle

By default, if MACD line crosses signal line and moves above, green dot appears below candle. If MACD line crosses signal line and moves down, red dot appears above candle

These indications can give the user how much time RSI and MACD crossing happened along with EMA crossovers. User can take calculated decision and risk
Release Notes
Update - 21 April 2026

1. Added HMA (Hull Moving Average) in addition to existing SMA and EMA

2. Added label at end of each MA line. It makes easy for user to settle with limited color selection and depend on labels.

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.