This TradingView Pine Script indicator identifies and highlights a bullish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current high and the previous low, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bullish 3-bar reversal pattern when the low of the previous bar is lower than the low of the bar before it, and the current low is higher than the previous low. Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current high and the previous low. This percentage is displayed on the chart. Visual Indicators:
When a bullish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with an upward arrow, green color, and white text for clear visibility. Alerts:
An alert condition is set up to notify users when the bullish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.