OPEN-SOURCE SCRIPT
Average RSI | TR

🔍 OVERVIEW
The Average RSI is a next-generation momentum oscillator that goes beyond the standard Relative Strength Index. Instead of relying on a single timeframe, it calculates the RSI across three distinct daily cycles (1 Day, 2 Days, and 3 Days) and averages them into one smooth, highly responsive signal.
This multi-timeframe averaging drastically reduces market noise, filters out false divergences, and provides a holistic view of the short-to-medium term momentum structure. Combined with a dedicated dynamic moving average, it acts as both a trend filter and an early entry/exit system.
⚙️ HOW IT WORKS
1. RSI Computation:
The script calculates the classic RSI of your chosen source (default: Close) for the 1D, 2D, and 3D timeframes.
2. The Average (AVG_RSI):
It takes the arithmetic mean of these three values. This "composite RSI" is the core line you see plotted on the chart.
3. The Trend Filter (MA_AVG_RSI):
A fully customizable Moving Average (default: EMA, Length: 275) is applied to the AVG_RSI. This acts as the "Zero Line" of the indicator:
• AVG_RSI > MA_AVG_RSI → Bullish Bias
• AVG_RSI < MA_AVG_RSI → Bearish Bias
🎨 VISUAL FEATURES & SIGNALS
• Dynamic Trend Coloring:
The main line, candles, and chart background dynamically shift colors based on a normalized gradient of the AVG_RSI, making trend strength instantly recognizable.
• Smart Gradient Fills:
Ribbon Fill: The area between the AVG_RSI and its Moving Average is filled with the trend color. Its transparency adjusts automatically based on price momentum—more opaque during strong trends and faint during consolidation.
Overbought/Sold Zones: Gradient fills between the AVG_RSI and the 50-level are activated only when the AVG_RSI extends beyond the Moving Average. This unique logic prevents misleading extreme-zone signals during trend reversals.
• Entry/Exit Signals (Triangles):
LONG (⬆️): A green triangle appears below the bar when AVG_RSI crosses ABOVE the MA_AVG_RSI.
SHORT (⬇️): A red triangle appears above the bar when AVG_RSI crosses BELOW the MA_AVG_RSI.
• Heads-Up Display (HUD):
At the last bar, a large table displays the current market bias (Bullish/Bearish), and a floating label shows the precise AVG_RSI value.
🎛️ INPUT CONFIGURATIONS
• RSI Length: Adjust the sensitivity of the RSI calculation (Default: 44).
• Source: Choose the base source for the RSI (Default: Close).
• Moving Average Engine: Select from 12 different MA types, including EMA, SMA, WMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, and T3 (with adjustable T3 Factor).
• MA Length: Set the smoothing period for the trend filter (Default: 275).
• Color Palettes: Choose from 9 distinct visual themes—Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, or Cosmic—to match your charting style.
🚨 ALERTS
Built-in alert conditions are ready to use:
• LONG: Triggered on a Bullish crossover.
• SHORT: Triggered on a Bearish crossunder.
💡 BEST USE CASES
• Swing Trading: Identify shifts in mid-term momentum.
• Trend Confirmation: Use the MA filter to avoid entering trades against the dominant flow.
• Divergence Spotting: The smoothed nature of AVG_RSI makes chart patterns and divergences much clearer than with standard RSI.
📌 Note: This indicator works on any asset (Crypto, Forex, Stocks, Commodities) and any timeframe, as the underlying MTF logic is anchored to the daily RSI structure.
The Average RSI is a next-generation momentum oscillator that goes beyond the standard Relative Strength Index. Instead of relying on a single timeframe, it calculates the RSI across three distinct daily cycles (1 Day, 2 Days, and 3 Days) and averages them into one smooth, highly responsive signal.
This multi-timeframe averaging drastically reduces market noise, filters out false divergences, and provides a holistic view of the short-to-medium term momentum structure. Combined with a dedicated dynamic moving average, it acts as both a trend filter and an early entry/exit system.
⚙️ HOW IT WORKS
1. RSI Computation:
The script calculates the classic RSI of your chosen source (default: Close) for the 1D, 2D, and 3D timeframes.
2. The Average (AVG_RSI):
It takes the arithmetic mean of these three values. This "composite RSI" is the core line you see plotted on the chart.
3. The Trend Filter (MA_AVG_RSI):
A fully customizable Moving Average (default: EMA, Length: 275) is applied to the AVG_RSI. This acts as the "Zero Line" of the indicator:
• AVG_RSI > MA_AVG_RSI → Bullish Bias
• AVG_RSI < MA_AVG_RSI → Bearish Bias
🎨 VISUAL FEATURES & SIGNALS
• Dynamic Trend Coloring:
The main line, candles, and chart background dynamically shift colors based on a normalized gradient of the AVG_RSI, making trend strength instantly recognizable.
• Smart Gradient Fills:
Ribbon Fill: The area between the AVG_RSI and its Moving Average is filled with the trend color. Its transparency adjusts automatically based on price momentum—more opaque during strong trends and faint during consolidation.
Overbought/Sold Zones: Gradient fills between the AVG_RSI and the 50-level are activated only when the AVG_RSI extends beyond the Moving Average. This unique logic prevents misleading extreme-zone signals during trend reversals.
• Entry/Exit Signals (Triangles):
LONG (⬆️): A green triangle appears below the bar when AVG_RSI crosses ABOVE the MA_AVG_RSI.
SHORT (⬇️): A red triangle appears above the bar when AVG_RSI crosses BELOW the MA_AVG_RSI.
• Heads-Up Display (HUD):
At the last bar, a large table displays the current market bias (Bullish/Bearish), and a floating label shows the precise AVG_RSI value.
🎛️ INPUT CONFIGURATIONS
• RSI Length: Adjust the sensitivity of the RSI calculation (Default: 44).
• Source: Choose the base source for the RSI (Default: Close).
• Moving Average Engine: Select from 12 different MA types, including EMA, SMA, WMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, and T3 (with adjustable T3 Factor).
• MA Length: Set the smoothing period for the trend filter (Default: 275).
• Color Palettes: Choose from 9 distinct visual themes—Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, or Cosmic—to match your charting style.
🚨 ALERTS
Built-in alert conditions are ready to use:
• LONG: Triggered on a Bullish crossover.
• SHORT: Triggered on a Bearish crossunder.
💡 BEST USE CASES
• Swing Trading: Identify shifts in mid-term momentum.
• Trend Confirmation: Use the MA filter to avoid entering trades against the dominant flow.
• Divergence Spotting: The smoothed nature of AVG_RSI makes chart patterns and divergences much clearer than with standard RSI.
📌 Note: This indicator works on any asset (Crypto, Forex, Stocks, Commodities) and any timeframe, as the underlying MTF logic is anchored to the daily RSI structure.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。