OPEN-SOURCE SCRIPT

Normalized RSI Trendline with Divergences

1690
Normalized RSI Trendline with Divergences
🔹 Overview
The Normalized RSI Trendline with Divergences indicator enhances traditional RSI analysis by normalizing RSI values within a defined range and applying a trend-following approach. It also detects bullish and bearish divergences to highlight potential trend reversals.

🔹 Features
✔ Normalized RSI Calculation – The RSI values are normalized between -1 and 1 to provide a clearer representation of market momentum.
✔ Trend & Center Lines – A trendline based on linear regression and an adaptive moving average (ALMA) for smoother trend visualization.
✔ Divergence Detection – Identifies regular and hidden divergences, displaying signals directly on the chart.
✔ Customizable Parameters – Users can adjust the signal period, lookback range, trend length, and divergence sensitivity to fit different trading strategies.

🔹 How to Use

Trend Following: The trendline helps identify the overall market direction.
Divergence Signals:
🟢 Bullish Divergence (Potential upward reversal)
🔴 Bearish Divergence (Potential downward reversal)
🟩 Hidden Bullish Divergence (Trend continuation signal)
🟧 Hidden Bearish Divergence (Trend continuation signal)
This script is suitable for trend traders, swing traders, and divergence-based strategies. Customize the settings to match your preferred trading style. 🚀

📌 Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.

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.