Breakout Evidence Board [TradeDots]Breakout Evidence Board
Summary
This indicator detects Donchian-style breakouts (a close beyond the highest close or lowest close over a user-configured lookback) and scores each breakout from 0 to 100 across seven independent factors of supporting evidence. The output is a composite "Evidence Score" with a tier label of Strong, Valid, Mixed, or Weak. It is intended as a quality filter for continuation entries — traders use it to separate breakouts that occur in supportive context from breakouts that occur on thin volume, late extension, or counter-trend conditions.
What is original here
Breakout detection from prior-bar Donchian extremes is standard and is already present in many public scripts. The contribution of this script is the seven-factor evidence panel applied at the moment of the breakout. The factors quantify the breakout's pre-conditions (compression), the breakout's immediate character (volume, ATR expansion, close location), its position relative to mean (VWAP distance), and its alignment with higher-timeframe context. The combination — and the transparency of each factor's contribution to the final score — is what differentiates this script. Each factor weight is exposed as an input so the model can be inspected, tuned, or partially disabled.
How it works
Breakout detection uses the highest close and lowest close over the prior donchian_len bars, indexed by so the breakout level is the previous bar's extreme rather than the current bar's own extreme. A bullish breakout is registered when the current close exceeds the prior-bar highest close; the bearish case is symmetric. To avoid re-firing on every bar that remains above the prior high, only the first breakout (a transition from "not broken" to "broken") is treated as a signal. Optionally, a "Require Compression Before Breakout" filter rejects breakouts that do not follow a mature Bollinger Bandwidth compression — useful in choppy markets. Signal evaluation is gated by barstate.isconfirmed.
When a breakout is detected, the following seven factors are computed.
1. Compression score. The Bollinger Bandwidth at the prior bar, expressed as a percentile rank over the configured lookback. The score is inverted: tight pre-break (low BBW percentile) yields a high score, while a breakout from already-expanded volatility yields a low score.
2. ATR expansion score. The current bar's ATR percentile rank. High ATR percentile means the breakout is moving with thrust, not just drifting across the level.
3. Volume score. The current bar's volume percentile rank.
4. Close-location score. Where the close sits within the bar's high-low range. For a bullish breakout the score rewards a close near the bar's high; for a bearish breakout, a close near the bar's low. A weak close (in the middle of the range or against direction) indicates indecision.
5. VWAP distance score. The absolute distance from an anchored VWAP, expressed in ATR units. A breakout that is already extended from VWAP scores lower than a breakout that occurs near the mean. The anchor is user-selectable: Session, Week, or Month.
6. HTF alignment score. A higher-timeframe trend reference is fetched and the breakout direction is compared against the HTF trend. Aligned breakouts score full credit; neutral HTF scores half; counter-HTF scores zero.
7. Compression-to-expansion confirmation. A binary factor that earns full credit only when the prior bar was in a mature compression and the current bar shows clear expansion (ATR percentile above a threshold). This captures the classic "coil release" pattern.
The composite is the weighted average of all seven factors. Tier mapping:
Strong : score 80 or higher
Valid : score 60 to 79
Mixed : score 30 to 59
Weak : below 30
Repainting and data integrity
Signal generation and labels are gated by barstate.isconfirmed. Donchian extremes are indexed by so they refer to the prior bar's high or low, not the current bar's own value. The higher-timeframe trend reference is fetched with request.security() using a prior-bar source together with barmerge.lookahead_on — the standard non-repainting idiom that returns the last confirmed HTF bar's value. This pattern does not access future data.
How to read the chart
The Donchian rails (prior-bar highest and lowest closes) are plotted as thin green and red lines so the breakout level is visible.
A small triangle marks the breakout bar (below for bullish, above for bearish).
A directional tier label is placed on the breakout bar, color-graded from red at low scores to green at high scores. Text shows the tier and numeric composite score.
An "Evidence Board" dashboard panel displays each of the seven factors as a row, with gradient cells reflecting that factor's contribution, plus the composite score and tier.
All sub-scores are also output as hidden plots for use in the Data Window and alert messages.
Inputs
Inputs are grouped into five sections.
Core Settings : Donchian lookback, Bollinger Band length and standard-deviation multiplier, percentile-rank lookback, ATR length.
Filters : HTF trend reference, VWAP anchor (Session / Week / Month), optional "Require Compression Before Breakout" toggle.
Score Tuning : a 0 to 1 weight for each of the seven factors.
Visual Settings : panel position, panel size, label cap, marker toggles.
Any Alert() function call conditions : per-alert boolean toggles.
Alerts
Four alert conditions are provided: Strong Bull Breakout (bullish breakout with score at or above 80), Strong Bear Breakout, Any Breakout with Score ≥ 70, and Any Breakout with Score ≥ 80. Each alert is declared via alertcondition() for the native TradingView alert UI and is fired programmatically through alert() when the corresponding input toggle is enabled. Programmatic alerts use alert.freq_once_per_bar_close. Alert message templates include {{ticker}}, {{interval}}, and {{close}} placeholders.
How to use this script
This is a continuation filter, not a complete system.
Look for a chart setup where a breakout would be your trade thesis (range break, base break, retest of a prior high, etc.).
Wait for a breakout marker.
Read the Evidence Board panel. A Strong or Valid score with HTF aligned is the highest-conviction case.
A Weak score on a Donchian breakout usually indicates either thin volume, no prior compression, or counter-trend pressure — useful as a "skip this one" signal.
The script does not place orders or define stops; sizing and exits remain the user's responsibility.
Limitations and honest caveats
The composite is a heuristic evidence weighting, not a probability. A Strong tier does not imply a specific success rate.
Fast news-driven breakouts may print with little prior compression and may receive lower scores than they deserve. The "Require Compression" filter is therefore off by default; users who want it strict can enable it.
The anchored VWAP uses a fixed anchor choice (Session, Week, or Month). It does not support multiple simultaneous VWAPs or user-defined anchor points.
Donchian breakouts on the current chart timeframe may not align with breakouts a user perceives at higher timeframes; consider the HTF alignment factor as a coarse check, not as multi-timeframe structure analysis.
The script does not include any backtesting, position sizing, or order management logic.
Disclaimer
This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. Past appearance of any pattern, including high-quality breakouts, does not guarantee future behaviour. Users are solely responsible for their own trading decisions and risk management.
אינדיקטור Pine Script®





