OPEN-SOURCE SCRIPT
Multi-Timeframe RSI

RSI Divergence (Time-Based Engine)
This script is a powerful and highly customizable tool designed to automatically detect and display RSI divergences from up to three independent, user-defined timeframes directly on your chart. It eliminates the need to manually switch between timeframes to find these critical trading signals, allowing you to see long-term and short-term divergences all in one place.
The engine is built to be flexible, supporting both regular (reversal) divergences and hidden (trend-continuation) divergences. It's designed for traders who rely on divergence analysis as a core part of their strategy.
Key Features
Multi-Timeframe (MTF) Analysis: Configure and display divergences from up to three different timeframes simultaneously (e.g., show 4-Hour, Daily, and Weekly divergences on your 1-Hour chart). Each timeframe operates independently with its own settings.
Regular & Hidden Divergence: The script can detect both standard regular divergences that signal potential reversals and hidden divergences that suggest a trend may continue.
Configurable Pivot Strength: You have full control over the sensitivity of pivot detection. The 'Left Strength' and 'Right Strength' settings allow you to define what qualifies as a significant price pivot, filtering out market noise.
Bar Count Filter: Refine your signals by setting the minimum and maximum number of bars allowed between two pivots. This ensures you only see divergences that fit your specific strategic timeframe.
Dedicated Alerts: Each of the three timeframes has its own "Enable Alerts" toggle. When a new divergence line is drawn on the chart for a specific timeframe, a corresponding alert can be triggered, ensuring you never miss a potential setup.
Full Visual Customization: Tailor the look and feel of the indicator to your preference. Each timeframe has unique color settings for its bullish and bearish lines, allowing for easy visual identification. You can also toggle the visibility of various chart markers to keep your view clean.
How to Use
1. Add the indicator to your chart.
2. Open the Settings panel.
3. For each timeframe you wish to use (1, 2, or 3), check the "Enable Timeframe" box.
4. Select the desired Timeframe, RSI Length, and Pivot Strength for each active engine.
5. Adjust the Min/Max Bars filter to match your trading style.
6. If you want to receive notifications, check the "Enable Alerts" box for the desired timeframe(s). Then, create an alert using TradingView's alert manager, selecting the indicator and choosing the "Any alert() function call" option.
This script is a powerful and highly customizable tool designed to automatically detect and display RSI divergences from up to three independent, user-defined timeframes directly on your chart. It eliminates the need to manually switch between timeframes to find these critical trading signals, allowing you to see long-term and short-term divergences all in one place.
The engine is built to be flexible, supporting both regular (reversal) divergences and hidden (trend-continuation) divergences. It's designed for traders who rely on divergence analysis as a core part of their strategy.
Key Features
Multi-Timeframe (MTF) Analysis: Configure and display divergences from up to three different timeframes simultaneously (e.g., show 4-Hour, Daily, and Weekly divergences on your 1-Hour chart). Each timeframe operates independently with its own settings.
Regular & Hidden Divergence: The script can detect both standard regular divergences that signal potential reversals and hidden divergences that suggest a trend may continue.
Configurable Pivot Strength: You have full control over the sensitivity of pivot detection. The 'Left Strength' and 'Right Strength' settings allow you to define what qualifies as a significant price pivot, filtering out market noise.
Bar Count Filter: Refine your signals by setting the minimum and maximum number of bars allowed between two pivots. This ensures you only see divergences that fit your specific strategic timeframe.
Dedicated Alerts: Each of the three timeframes has its own "Enable Alerts" toggle. When a new divergence line is drawn on the chart for a specific timeframe, a corresponding alert can be triggered, ensuring you never miss a potential setup.
Full Visual Customization: Tailor the look and feel of the indicator to your preference. Each timeframe has unique color settings for its bullish and bearish lines, allowing for easy visual identification. You can also toggle the visibility of various chart markers to keep your view clean.
How to Use
1. Add the indicator to your chart.
2. Open the Settings panel.
3. For each timeframe you wish to use (1, 2, or 3), check the "Enable Timeframe" box.
4. Select the desired Timeframe, RSI Length, and Pivot Strength for each active engine.
5. Adjust the Min/Max Bars filter to match your trading style.
6. If you want to receive notifications, check the "Enable Alerts" box for the desired timeframe(s). Then, create an alert using TradingView's alert manager, selecting the indicator and choosing the "Any alert() function call" option.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。