OPEN-SOURCE SCRIPT
Updated Chaos Weighted RSI [LuxAlgo]

The Chaos Weighted RSI indicator provides a specialized relative strength index that adaptively adjusts its smoothing based on the level of market disorder (chaos). By utilizing Fractal Dimension Index (FDI) logic, the tool reduces sensitivity during chaotic price action to filter out market noise, offering a clearer perspective on momentum trends.
🔶 USAGE
The indicator functions similarly to a traditional RSI but with a dynamic response rate. When the market is in a state of high chaos (random, non-trending movement), the RSI smoothing becomes heavier, preventing premature overbought or oversold readings. Conversely, when the price exhibits more orderly, trending behavior, the indicator becomes more responsive.
Users can observe the following key elements:
🔶 DETAILS
The core innovation of this script is the integration of the Sevcik method for calculating Fractal Dimension. This calculation determines the "complexity" of the price path within a specific lookback window.
🔹 Weighting Mechanism
The script calculates a Chaos value (scaled 0 to 1). This value modulates the RSI's smoothing factor (alpha). High chaos reduces the alpha, resulting in a smoother, slower-reacting RSI that is less likely to be influenced by whipsaws. Low chaos increases the alpha, allowing the RSI to track the price more closely during efficient trends.
🔹 Divergence Logic
Divergences are confirmed using a pivot-based approach. Because the Chaos Weighted RSI is smoother than a standard RSI during noisy periods, the divergences detected are often more significant and less prone to minor price fluctuations.
🔶 SETTINGS
🔹 RSI Settings
🔹 Disorder Settings
🔹 Visuals
🔹 Divergence Settings
🔶 USAGE
The indicator functions similarly to a traditional RSI but with a dynamic response rate. When the market is in a state of high chaos (random, non-trending movement), the RSI smoothing becomes heavier, preventing premature overbought or oversold readings. Conversely, when the price exhibits more orderly, trending behavior, the indicator becomes more responsive.
Users can observe the following key elements:
- Trend Confirmation: The RSI line changes color based on its position relative to the 50 midline (Green for bullish momentum, Red for bearish momentum).
- Overbought/Oversold Zones: Traditional levels at 70 and 30 are used. The indicator features gradient fills to highlight when price momentum has reached these extremes.
- Divergence Detection: The script automatically identifies regular bullish and bearish divergences between price and the Chaos Weighted RSI, marking them with dots and connecting lines.
🔶 DETAILS
The core innovation of this script is the integration of the Sevcik method for calculating Fractal Dimension. This calculation determines the "complexity" of the price path within a specific lookback window.
🔹 Weighting Mechanism
The script calculates a Chaos value (scaled 0 to 1). This value modulates the RSI's smoothing factor (alpha). High chaos reduces the alpha, resulting in a smoother, slower-reacting RSI that is less likely to be influenced by whipsaws. Low chaos increases the alpha, allowing the RSI to track the price more closely during efficient trends.
🔹 Divergence Logic
Divergences are confirmed using a pivot-based approach. Because the Chaos Weighted RSI is smoother than a standard RSI during noisy periods, the divergences detected are often more significant and less prone to minor price fluctuations.
🔶 SETTINGS
🔹 RSI Settings
- RSI Length: Sets the base period for the RSI calculation.
🔹 Disorder Settings
- Disorder Lookback: The period used to calculate the price chaos via the Fractal Dimension Index.
- Weight Sensitivity: Determines how aggressively the chaos calculation affects the RSI smoothing. Higher values result in more significant smoothing during chaotic periods.
🔹 Visuals
- Overbought/Oversold Fill: Customizes the colors for the gradient fills in extreme zones.
- Background Transparency: Adjusts the visibility of the central background fill between levels 30 and 70.
🔹 Divergence Settings
- Divergence Strength: The number of bars required on the left and right of a pivot to confirm a divergence. Higher values filter for more significant, long-term signals.
- Show Bullish/Bearish Divergence: Toggles the visibility of divergence labels and lines.
Release Notes
- Added color settingsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Build your own edge with AI: luxalgo.com
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Build your own edge with AI: luxalgo.com
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
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.