OPEN-SOURCE SCRIPT
RSI Elite Toolkit [Clever]

RSI Elite Toolkit [Clever]
Introduction
RSI Elite Toolkit [Clever] is a structured momentum analysis framework built around the Relative Strength Index (RSI). It expands the traditional RSI concept by integrating multiple analytical layers such as smoothing logic, divergence detection, trend alignment, and score-based confluence filtering. Instead of relying on single-condition triggers, the system evaluates several momentum factors together to provide a more organized analytical structure.
The objective of this toolkit is not to predict markets but to assist traders in observing momentum conditions through a rule-based framework. All calculations are designed with non-repainting logic to maintain historical consistency.
Core RSI Engine
At the foundation of the system is a customizable RSI engine. Users can define the source input, RSI length, and threshold levels for overbought, oversold, and equilibrium zones. This allows flexibility for different market environments and trading styles.
An optional higher-timeframe (MTF) RSI can be enabled using request.security() with lookahead_off. This ensures that historical values are calculated without forward-looking bias. By incorporating higher-timeframe context, users can compare local momentum conditions against broader market structure.
Smoothing & Internal Momentum Layer
Beyond basic RSI calculation, the toolkit includes an optional smoothing layer. Users can apply a moving average (SMA, EMA, WMA, or RMA) directly to the RSI line. Monitoring RSI interaction with its smoothing average helps identify internal momentum shifts rather than relying only on fixed threshold levels.
This additional layer allows users to observe momentum transitions more gradually and evaluate potential shifts in strength or weakness within the oscillator itself.
Divergence Detection Framework
The script integrates a pivot-based divergence detection engine to identify regular bullish and bearish divergence patterns between price and RSI. Adjustable pivot range parameters allow users to control sensitivity based on their preferred timeframe and volatility conditions.
Divergence markers are plotted on both the RSI pane and the main price chart for visual alignment. To maintain performance efficiency, historical labels and lines are automatically managed using memory cleanup routines, preventing object overflow during extended chart sessions.
Confluence Scoring Model
A defining component of RSI Elite Toolkit [Clever] is its score-based confluence system. Instead of generating signals from isolated events, the script assigns weighted values to multiple analytical factors such as RSI extremes, RSI moving average crosses, divergence detection, and higher-level trend bias alignment.
A signal is displayed only when the cumulative score meets or exceeds a user-defined threshold. This structured filtering mechanism is designed to reduce noise and highlight conditions where multiple momentum elements align simultaneously.
Risk Visualization Module
An optional ATR-based risk visualization framework is included for analytical planning. When enabled, the script calculates volatility using Average True Range (ATR) and projects dynamic stop-loss and take-profit zones relative to signal generation.
These projected zones adjust in real time while a signal remains active. The module is visual only and does not execute trades or automate position management. Its purpose is to assist with structured scenario mapping.
Dashboard & Monitoring Interface
The integrated on-chart dashboard provides a consolidated view of key conditions. It displays current RSI state (overbought, oversold, or neutral), trend bias direction, active signal status, cumulative signal count, and the live confluence score relative to the defined threshold.
This dashboard is informational and designed to improve clarity without excessive chart clutter. Users can quickly assess system alignment without manually verifying each component.
Technical Structure & Design Philosophy
From a technical perspective, the script is built with non-repainting architecture and consistent multi-timeframe handling using lookahead_off. Memory-efficient object management ensures platform stability during extended usage.
The modular design allows users to enable or disable specific components depending on their analytical preferences. This flexibility makes the toolkit adaptable across different timeframes and market conditions.
How It Works
The indicator operates through a multi-layer evaluation model. At its foundation, it calculates RSI using user-defined inputs such as source and length. Overbought, oversold, and equilibrium levels are customizable to adapt to different trading environments.
An optional smoothing layer applies a moving average (SMA, EMA, WMA, or RMA) to the RSI line. This creates an internal momentum crossover system, allowing the script to detect RSI/MA interactions that may indicate strengthening or weakening momentum.
The divergence engine continuously scans for pivot-based regular bullish and bearish divergences between price and RSI. These divergences are validated using adjustable range parameters to reduce false detections. When divergence criteria are met, visual markers are plotted on both the price chart and RSI pane.
The confluence scoring system evaluates multiple analytical components simultaneously. Each condition—such as RSI extreme reaction, RSI/MA cross, divergence detection, and trend bias alignment—contributes a weighted score. A signal is generated only when the cumulative score meets or exceeds the defined threshold. This layered confirmation process is designed to filter out isolated conditions and emphasize multi-factor alignment.
If enabled, the ATR-based module calculates volatility and projects dynamic stop-loss and take-profit zones based on current market conditions. These levels adjust in real time while a signal remains active, serving as a visual planning tool.
How It Is Used
The toolkit is intended to be used as a structured confirmation system rather than a standalone decision trigger. Traders typically begin by observing overall trend bias, often defined by a higher timeframe or a long-term moving average. Once directional context is identified, they monitor RSI behavior relative to key thresholds and smoothing interactions.
When RSI approaches extreme levels or forms divergence against price structure, users evaluate whether additional confluence factors align. If the score threshold is met, a signal may appear, indicating that multiple momentum conditions are present simultaneously.
The ATR visualization module can then be used to map potential stop-loss and take-profit zones based on volatility. This helps users plan trade scenarios and evaluate risk-to-reward structure before taking action.
The dashboard provides a quick summary of system alignment, allowing users to assess RSI state, trend direction, confluence score, and signal activity without manually checking each component.
The indicator can be applied across different timeframes. Lower timeframes may generate more frequent signals with higher sensitivity, while higher timeframes may produce fewer but structurally stronger setups. Users may adjust confluence thresholds depending on desired signal strictness.
Core Components
The system integrates multiple analytical layers:
Customizable RSI engine
Optional multi-timeframe RSI
RSI smoothing with MA cross detection
Pivot-based divergence logic
Score-based confluence filtering
ATR volatility visualization
On-chart dashboard monitoring
Each module can be enabled or disabled, allowing users to tailor the framework to their preferred trading style.
Key Features
1️⃣ Customizable RSI Engine
Adjustable RSI length and source
Configurable overbought, oversold, and equilibrium levels
Optional multi-timeframe RSI integration
2️⃣ Multi-Timeframe Support
Higher timeframe RSI using request.security()
Non-repainting structure with lookahead_off
Broader momentum context alignment
3️⃣ RSI Smoothing & Cross Detection
Multiple MA types (SMA, EMA, WMA, RMA)
Internal RSI/MA crossover logic
Additional momentum shift confirmation layer
4️⃣ Pivot-Based Divergence Detection
Regular bullish and bearish divergence
Adjustable pivot sensitivity
Visual markers on price and RSI pane
Automatic historical object cleanup
5️⃣ Score-Based Confluence Engine
Weighted multi-factor scoring model
Customizable confluence threshold
Filters isolated conditions
Structured signal validation logic
6️⃣ ATR-Based Risk Visualization
Volatility-adjusted stop-loss and take-profit projection
Dynamic real-time level updates
Visual planning assistance
7️⃣ On-Chart Dashboard
RSI condition display
Trend bias indication
Confluence score monitoring
Signal tracking summary
8️⃣ Performance & Stability Design
Non-repainting architecture
Memory-efficient label and line management
Modular component enable/disable structure
Technical Structure
The script is built with a modular and non-repainting architecture. Multi-timeframe calculations are processed using lookahead_off to prevent forward bias. Object management routines ensure that historical labels and lines are automatically cleaned to maintain platform performance.
The framework is adaptable across different timeframes and trading styles by adjusting confluence thresholds and RSI sensitivity settings.
Settings & Customization
The script is fully modular, allowing users to tailor each analytical component according to their trading methodology.
RSI Configuration
Users can customize:
RSI length
Source input (close, open, hl2, etc.)
Overbought level
Oversold level
Midline equilibrium level
These settings allow adjustment for scalping, intraday trading, or swing analysis. Lower RSI lengths increase sensitivity, while higher lengths smooth momentum fluctuations.
Multi-Timeframe (MTF) Settings
The higher timeframe RSI can be enabled or disabled.
Users may select:
Custom higher timeframe resolution
Separate RSI length for MTF calculation
This allows broader trend alignment without changing the active chart timeframe.
Smoothing & Moving Average Options
Users can:
Enable or disable RSI smoothing
Select moving average type (SMA, EMA, WMA, RMA)
Adjust smoothing length
Shorter smoothing lengths increase crossover responsiveness, while longer lengths provide stronger trend filtering.
Divergence Settings
The divergence engine includes adjustable pivot sensitivity parameters:
Left pivot bars
Right pivot bars
Minimum divergence distance
Increasing pivot values reduces frequency but increases structural strictness. Lower values increase detection sensitivity.
Confluence Engine Settings
The scoring model can be customized through:
Individual condition weights
Minimum score threshold for signal generation
Enable/disable specific scoring factors
Increasing the required score makes the system stricter, producing fewer but stronger confluence signals. Lower thresholds increase signal frequency.
Trend Bias Configuration
Users can:
Enable trend filter
Select moving average length (e.g., 200 EMA default)
Define bullish/bearish bias logic
This setting helps align signals with broader directional context.
ATR Risk Module Settings
If enabled, users may configure:
ATR length
Stop-loss multiplier
Take-profit multiplier
Risk visualization display options
Higher multipliers widen projected zones, while lower multipliers tighten them.
Dashboard Customization
Users can:
Enable or disable dashboard display
Adjust dashboard position
Toggle specific information panels
This ensures the chart remains clean according to user preference.
Disclaimer
This script is provided for educational and analytical purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument.
This script is an indicator, not an automated trading strategy. It does not place trades, manage positions, or guarantee execution results. Any trading decisions remain solely the responsibility of the user.
The indicator does not guarantee performance, profitability, or predictive accuracy. Market conditions are dynamic and can change rapidly. Past performance of any trading method or analytical tool does not ensure future results.
All trading involves risk, including the potential loss of capital. Users are responsible for conducting their own independent research, validation, and risk management before making trading decisions.
The developer assumes no responsibility for financial losses, trading decisions, or misuse of the script.
Introduction
RSI Elite Toolkit [Clever] is a structured momentum analysis framework built around the Relative Strength Index (RSI). It expands the traditional RSI concept by integrating multiple analytical layers such as smoothing logic, divergence detection, trend alignment, and score-based confluence filtering. Instead of relying on single-condition triggers, the system evaluates several momentum factors together to provide a more organized analytical structure.
The objective of this toolkit is not to predict markets but to assist traders in observing momentum conditions through a rule-based framework. All calculations are designed with non-repainting logic to maintain historical consistency.
Core RSI Engine
At the foundation of the system is a customizable RSI engine. Users can define the source input, RSI length, and threshold levels for overbought, oversold, and equilibrium zones. This allows flexibility for different market environments and trading styles.
An optional higher-timeframe (MTF) RSI can be enabled using request.security() with lookahead_off. This ensures that historical values are calculated without forward-looking bias. By incorporating higher-timeframe context, users can compare local momentum conditions against broader market structure.
Smoothing & Internal Momentum Layer
Beyond basic RSI calculation, the toolkit includes an optional smoothing layer. Users can apply a moving average (SMA, EMA, WMA, or RMA) directly to the RSI line. Monitoring RSI interaction with its smoothing average helps identify internal momentum shifts rather than relying only on fixed threshold levels.
This additional layer allows users to observe momentum transitions more gradually and evaluate potential shifts in strength or weakness within the oscillator itself.
Divergence Detection Framework
The script integrates a pivot-based divergence detection engine to identify regular bullish and bearish divergence patterns between price and RSI. Adjustable pivot range parameters allow users to control sensitivity based on their preferred timeframe and volatility conditions.
Divergence markers are plotted on both the RSI pane and the main price chart for visual alignment. To maintain performance efficiency, historical labels and lines are automatically managed using memory cleanup routines, preventing object overflow during extended chart sessions.
Confluence Scoring Model
A defining component of RSI Elite Toolkit [Clever] is its score-based confluence system. Instead of generating signals from isolated events, the script assigns weighted values to multiple analytical factors such as RSI extremes, RSI moving average crosses, divergence detection, and higher-level trend bias alignment.
A signal is displayed only when the cumulative score meets or exceeds a user-defined threshold. This structured filtering mechanism is designed to reduce noise and highlight conditions where multiple momentum elements align simultaneously.
Risk Visualization Module
An optional ATR-based risk visualization framework is included for analytical planning. When enabled, the script calculates volatility using Average True Range (ATR) and projects dynamic stop-loss and take-profit zones relative to signal generation.
These projected zones adjust in real time while a signal remains active. The module is visual only and does not execute trades or automate position management. Its purpose is to assist with structured scenario mapping.
Dashboard & Monitoring Interface
The integrated on-chart dashboard provides a consolidated view of key conditions. It displays current RSI state (overbought, oversold, or neutral), trend bias direction, active signal status, cumulative signal count, and the live confluence score relative to the defined threshold.
This dashboard is informational and designed to improve clarity without excessive chart clutter. Users can quickly assess system alignment without manually verifying each component.
Technical Structure & Design Philosophy
From a technical perspective, the script is built with non-repainting architecture and consistent multi-timeframe handling using lookahead_off. Memory-efficient object management ensures platform stability during extended usage.
The modular design allows users to enable or disable specific components depending on their analytical preferences. This flexibility makes the toolkit adaptable across different timeframes and market conditions.
How It Works
The indicator operates through a multi-layer evaluation model. At its foundation, it calculates RSI using user-defined inputs such as source and length. Overbought, oversold, and equilibrium levels are customizable to adapt to different trading environments.
An optional smoothing layer applies a moving average (SMA, EMA, WMA, or RMA) to the RSI line. This creates an internal momentum crossover system, allowing the script to detect RSI/MA interactions that may indicate strengthening or weakening momentum.
The divergence engine continuously scans for pivot-based regular bullish and bearish divergences between price and RSI. These divergences are validated using adjustable range parameters to reduce false detections. When divergence criteria are met, visual markers are plotted on both the price chart and RSI pane.
The confluence scoring system evaluates multiple analytical components simultaneously. Each condition—such as RSI extreme reaction, RSI/MA cross, divergence detection, and trend bias alignment—contributes a weighted score. A signal is generated only when the cumulative score meets or exceeds the defined threshold. This layered confirmation process is designed to filter out isolated conditions and emphasize multi-factor alignment.
If enabled, the ATR-based module calculates volatility and projects dynamic stop-loss and take-profit zones based on current market conditions. These levels adjust in real time while a signal remains active, serving as a visual planning tool.
How It Is Used
The toolkit is intended to be used as a structured confirmation system rather than a standalone decision trigger. Traders typically begin by observing overall trend bias, often defined by a higher timeframe or a long-term moving average. Once directional context is identified, they monitor RSI behavior relative to key thresholds and smoothing interactions.
When RSI approaches extreme levels or forms divergence against price structure, users evaluate whether additional confluence factors align. If the score threshold is met, a signal may appear, indicating that multiple momentum conditions are present simultaneously.
The ATR visualization module can then be used to map potential stop-loss and take-profit zones based on volatility. This helps users plan trade scenarios and evaluate risk-to-reward structure before taking action.
The dashboard provides a quick summary of system alignment, allowing users to assess RSI state, trend direction, confluence score, and signal activity without manually checking each component.
The indicator can be applied across different timeframes. Lower timeframes may generate more frequent signals with higher sensitivity, while higher timeframes may produce fewer but structurally stronger setups. Users may adjust confluence thresholds depending on desired signal strictness.
Core Components
The system integrates multiple analytical layers:
Customizable RSI engine
Optional multi-timeframe RSI
RSI smoothing with MA cross detection
Pivot-based divergence logic
Score-based confluence filtering
ATR volatility visualization
On-chart dashboard monitoring
Each module can be enabled or disabled, allowing users to tailor the framework to their preferred trading style.
Key Features
1️⃣ Customizable RSI Engine
Adjustable RSI length and source
Configurable overbought, oversold, and equilibrium levels
Optional multi-timeframe RSI integration
2️⃣ Multi-Timeframe Support
Higher timeframe RSI using request.security()
Non-repainting structure with lookahead_off
Broader momentum context alignment
3️⃣ RSI Smoothing & Cross Detection
Multiple MA types (SMA, EMA, WMA, RMA)
Internal RSI/MA crossover logic
Additional momentum shift confirmation layer
4️⃣ Pivot-Based Divergence Detection
Regular bullish and bearish divergence
Adjustable pivot sensitivity
Visual markers on price and RSI pane
Automatic historical object cleanup
5️⃣ Score-Based Confluence Engine
Weighted multi-factor scoring model
Customizable confluence threshold
Filters isolated conditions
Structured signal validation logic
6️⃣ ATR-Based Risk Visualization
Volatility-adjusted stop-loss and take-profit projection
Dynamic real-time level updates
Visual planning assistance
7️⃣ On-Chart Dashboard
RSI condition display
Trend bias indication
Confluence score monitoring
Signal tracking summary
8️⃣ Performance & Stability Design
Non-repainting architecture
Memory-efficient label and line management
Modular component enable/disable structure
Technical Structure
The script is built with a modular and non-repainting architecture. Multi-timeframe calculations are processed using lookahead_off to prevent forward bias. Object management routines ensure that historical labels and lines are automatically cleaned to maintain platform performance.
The framework is adaptable across different timeframes and trading styles by adjusting confluence thresholds and RSI sensitivity settings.
Settings & Customization
The script is fully modular, allowing users to tailor each analytical component according to their trading methodology.
RSI Configuration
Users can customize:
RSI length
Source input (close, open, hl2, etc.)
Overbought level
Oversold level
Midline equilibrium level
These settings allow adjustment for scalping, intraday trading, or swing analysis. Lower RSI lengths increase sensitivity, while higher lengths smooth momentum fluctuations.
Multi-Timeframe (MTF) Settings
The higher timeframe RSI can be enabled or disabled.
Users may select:
Custom higher timeframe resolution
Separate RSI length for MTF calculation
This allows broader trend alignment without changing the active chart timeframe.
Smoothing & Moving Average Options
Users can:
Enable or disable RSI smoothing
Select moving average type (SMA, EMA, WMA, RMA)
Adjust smoothing length
Shorter smoothing lengths increase crossover responsiveness, while longer lengths provide stronger trend filtering.
Divergence Settings
The divergence engine includes adjustable pivot sensitivity parameters:
Left pivot bars
Right pivot bars
Minimum divergence distance
Increasing pivot values reduces frequency but increases structural strictness. Lower values increase detection sensitivity.
Confluence Engine Settings
The scoring model can be customized through:
Individual condition weights
Minimum score threshold for signal generation
Enable/disable specific scoring factors
Increasing the required score makes the system stricter, producing fewer but stronger confluence signals. Lower thresholds increase signal frequency.
Trend Bias Configuration
Users can:
Enable trend filter
Select moving average length (e.g., 200 EMA default)
Define bullish/bearish bias logic
This setting helps align signals with broader directional context.
ATR Risk Module Settings
If enabled, users may configure:
ATR length
Stop-loss multiplier
Take-profit multiplier
Risk visualization display options
Higher multipliers widen projected zones, while lower multipliers tighten them.
Dashboard Customization
Users can:
Enable or disable dashboard display
Adjust dashboard position
Toggle specific information panels
This ensures the chart remains clean according to user preference.
Disclaimer
This script is provided for educational and analytical purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument.
This script is an indicator, not an automated trading strategy. It does not place trades, manage positions, or guarantee execution results. Any trading decisions remain solely the responsibility of the user.
The indicator does not guarantee performance, profitability, or predictive accuracy. Market conditions are dynamic and can change rapidly. Past performance of any trading method or analytical tool does not ensure future results.
All trading involves risk, including the potential loss of capital. Users are responsible for conducting their own independent research, validation, and risk management before making trading decisions.
The developer assumes no responsibility for financial losses, trading decisions, or misuse of the script.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。