Candle Breakout Probability📊 Candle Breakout Probability Panel
A statistical breakout indicator that measures how often price moves above or below the previous candle and displays the probabilities in a compact table.
Instead of guessing direction, this indicator shows historical breakout behavior and highlights the most likely direction.
⚡ What This Indicator Shows
✔ Probability of price moving UP
✔ Probability of price moving DOWN
✔ Multiple breakout target levels
✔ Automatic bullish / bearish bias
✔ Historical profitability score
All displayed in a clean compact panel.
🧠 Core Idea
Markets often repeat behavior after a candle closes.
This indicator studies thousands of previous candles and answers:
➡ After a bullish candle, how often does price continue upward?
➡ After a bearish candle, how often does price continue downward?
It then calculates the probability of breakout and displays it.
📈 Breakout Levels
The indicator builds levels from the previous candle.
Levels include:
• Previous High / Low
• 1st Target
• 2nd Target
• 3rd Target
• 4th Target
These are spaced using a percentage step input.
Example:
If step = 1%
Targets become:
Prev High → +1% → +2% → +3% → +4%
Same logic applies for downside levels.
📊 Probability Table
The panel shows:
Column Meaning
Level Breakout level being measured
Goes Up Probability price reaches upside level
Goes Down Probability price reaches downside level
Values change depending on whether the previous candle was bullish or bearish.
🔎 Bias Detection
The script automatically selects the stronger probability.
If upside probability > downside probability
🟢 Bullish Bias
If downside probability > upside probability
🔴 Bearish Bias
This gives traders a quick directional context.
💰 Profitability Score
The indicator also tracks whether the predicted direction actually happened.
It calculates:
Win Rate = Correct Direction / Total Predictions
Displayed as Profitability in the panel.
This helps evaluate how reliable the bias has been historically.
⚙ Inputs
📏 Percentage Step
Controls spacing between breakout targets.
Example
1% step → targets spaced every 1%.
📊 Show Statistic Panel
Show or hide the probability table.
🪶 Table Size
Choose between:
• Tiny
• Small
📉 Show Lines on Candle
Displays projected breakout levels on the chart.
🎨 Line Colors
Customize colors for:
• Upside levels
• Downside levels
📏 Line Style
Choose between:
• Dashed
• Dotted
• Solid
🎯 Best Use Cases
Works well for:
📈 Breakout traders
⚡ Scalpers
📊 Intraday traders
📉 Momentum traders
📍 Target projection
⚠ Important Notes
• Probabilities are based on historical data
• Not a guaranteed prediction
• Should be combined with price action and risk management
💡 Quick Example
Previous candle closes bullish.
Table shows:
UP → 63%
DOWN → 37%
Indicator bias becomes:
🟢 Bullish
Meaning historically price continued upward 63% of the time after this candle structure.
📌 Summary
Candle Breakout Probability Panel helps traders understand:
✔ Which direction price historically moves after a candle
✔ How likely breakout targets are
✔ Whether continuation or reversal is more probable
All displayed in a clean statistical panel without cluttering the chart.
Индикатор Pine Script®






















