OPEN-SOURCE SCRIPT
Reversal Confirmation

Reversal Confirmation (RC)
This indicator identifies potential price reversals using a simple but effective two-candle pattern. It detects when a trend exhausts and confirms the reversal when the next candle eclipses the close of the reversal candle.
How It Works
The indicator uses a two-step process to confirm reversals:
Reversal Candle (R) - The first candle that closes in the opposite direction after a sustained trend. This signals potential exhaustion of the current move.
Confirmation Candle (C) - The candle that eclipses (closes beyond) the close of the reversal candle. This confirms the reversal is underway.
For a bullish reversal, the confirmation candle must close above the close of the reversal candle. For a bearish reversal, the confirmation candle must close below the close of the reversal candle.
Key Features
Requires a significant prior trend before looking for reversals, filtering out choppy sideways markets
Uses ATR to measure move significance, adapting to current volatility
Clean two-candle pattern that's easy to understand and trade
Visual dashed line showing the reversal candle close level that must be eclipsed
Built-in alerts for all signal types
Settings
Trend Lookback - Number of candles to analyze for prior trend detection (default: 7)
Trend Strength - Percentage of lookback candles required in trend direction (default: 0.7 = 70%)
Minimum Move (ATR multiple) - How large the prior move must be before signaling (default: 2.0)
Show Bullish/Bearish - Toggle each signal type on or off
Mark Reversal Candles - Toggle visibility of the reversal candle markers
Visual Signals
"R" with small circle - Marks the reversal candle where the pattern begins
"C" with triangle - Marks the confirmation candle (your entry signal)
Dashed line - Shows the close level of the reversal candle that must be eclipsed
Alerts
Three alert options are available:
Bullish Confirmation
Bearish Confirmation
Any Confirmation
How To Set Up Alerts
Add the indicator to your chart
Right-click on the chart and select "Add Alert" (or press Alt+A)
In the Condition dropdown, select "Reversal Confirmation"
Choose your preferred alert type
Set notification preferences (popup, email, sound, webhook)
Click "Create"
Tips For Best Results
Signals appearing at key support/resistance levels tend to be more reliable
Combine with VWAP, moving averages, or prior day high/low for confluence
Use higher timeframe trend direction as a filter
Increase Minimum Move ATR in volatile conditions to reduce false signals
Adjust Trend Lookback based on your timeframe (higher values for longer timeframes)
The Logic Behind It
After a sustained move in one direction, the first candle to close in the opposite direction signals potential exhaustion. However, one candle alone isn't enough. When the next candle eclipses the close of that reversal candle, it confirms that buyers (or sellers) have truly taken control and the reversal is underway.
Note: This indicator is for informational purposes only and should not be used as the sole basis for trading decisions. Always use proper risk management and consider combining with other forms of analysis.
This indicator identifies potential price reversals using a simple but effective two-candle pattern. It detects when a trend exhausts and confirms the reversal when the next candle eclipses the close of the reversal candle.
How It Works
The indicator uses a two-step process to confirm reversals:
Reversal Candle (R) - The first candle that closes in the opposite direction after a sustained trend. This signals potential exhaustion of the current move.
Confirmation Candle (C) - The candle that eclipses (closes beyond) the close of the reversal candle. This confirms the reversal is underway.
For a bullish reversal, the confirmation candle must close above the close of the reversal candle. For a bearish reversal, the confirmation candle must close below the close of the reversal candle.
Key Features
Requires a significant prior trend before looking for reversals, filtering out choppy sideways markets
Uses ATR to measure move significance, adapting to current volatility
Clean two-candle pattern that's easy to understand and trade
Visual dashed line showing the reversal candle close level that must be eclipsed
Built-in alerts for all signal types
Settings
Trend Lookback - Number of candles to analyze for prior trend detection (default: 7)
Trend Strength - Percentage of lookback candles required in trend direction (default: 0.7 = 70%)
Minimum Move (ATR multiple) - How large the prior move must be before signaling (default: 2.0)
Show Bullish/Bearish - Toggle each signal type on or off
Mark Reversal Candles - Toggle visibility of the reversal candle markers
Visual Signals
"R" with small circle - Marks the reversal candle where the pattern begins
"C" with triangle - Marks the confirmation candle (your entry signal)
Dashed line - Shows the close level of the reversal candle that must be eclipsed
Alerts
Three alert options are available:
Bullish Confirmation
Bearish Confirmation
Any Confirmation
How To Set Up Alerts
Add the indicator to your chart
Right-click on the chart and select "Add Alert" (or press Alt+A)
In the Condition dropdown, select "Reversal Confirmation"
Choose your preferred alert type
Set notification preferences (popup, email, sound, webhook)
Click "Create"
Tips For Best Results
Signals appearing at key support/resistance levels tend to be more reliable
Combine with VWAP, moving averages, or prior day high/low for confluence
Use higher timeframe trend direction as a filter
Increase Minimum Move ATR in volatile conditions to reduce false signals
Adjust Trend Lookback based on your timeframe (higher values for longer timeframes)
The Logic Behind It
After a sustained move in one direction, the first candle to close in the opposite direction signals potential exhaustion. However, one candle alone isn't enough. When the next candle eclipses the close of that reversal candle, it confirms that buyers (or sellers) have truly taken control and the reversal is underway.
Note: This indicator is for informational purposes only and should not be used as the sole basis for trading decisions. Always use proper risk management and consider combining with other forms of analysis.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。