OPEN-SOURCE SCRIPT

Strong Range Breakouts | ProjectSyndicate

7 872
Strong Range Breakouts

Strong Range Breakouts power-ranks the consolidations your market keeps coiling into — and tells you, before the move, which one is loaded and which way it's likely to break. For every tightening range it builds a clean, equal-logic zone, scores that consolidation 0–10 from real, measurable compression quality, and stamps a directional probability on it (▲ likely UP / ▼ likely DOWN). It then projects Buy-Stop / Sell-Stop breakout levels with a buffer and full SL / TP1 / TP2 / TP3 targets — and tracks every breakout's outcome live in a win-rate dashboard, so the chart is constantly grading its own edge instead of asking you to take it on faith.

🎯 Power-Ranking System (0–10) — every consolidation earns a live grade from five sign-stable, self-calibrating factors: trend flatness (ADX percentile — is the market genuinely going nowhere?), volatility squeeze (Bollinger-width percentile — is range compressing vs its own recent history?), range tightness (N-bar range percentile — how coiled is price?), volume dry-up (low participation = accumulation), and price balance (RSI sitting near 50 = no directional pressure yet). Each factor is a smooth percentile rank, not a crude on/off flag, so the score spreads cleanly across the full 0–10 range and adapts to any instrument with no re-tuning. Prototyped and validated across FX datasets (EUR/USD, GBP/USD, USD/CHF) — higher-scored ranges produced cleaner, higher-win-rate breakouts than low-scored ones, so the number reflects genuine edge, not decoration.
🧭 Directional Probability — each zone carries a live ▲/▼ breakout bias built from where price sits in the range, top-vs-bottom edge-touch asymmetry, time spent in the upper vs lower half, and momentum lean. In validation this prediction landed correct 77–81% of the time vs a 50% coin-flip — so the bias on the box is a real tell, not a guess.
🏷️ Strength-Rank Label Above Every Box — each range carries its grade on top of the zone, impossible to miss: stars · X.X/10 · tier (FORMING → MODERATE → STRONG → VERY STRONG → ELITE) plus the directional bias. Quality and likely direction read instantly, no separate panel needed.

🎨 Direction-Coloured, Strength-Shaded Zones — boxes are tinted by their predicted break direction (bullish-bias teal, bearish-bias red/purple), and the shade deepens with strength tier, so the chart shows which ranges carry weight and which way they lean before you read a single number. The label freezes tinted to the actual break direction once it fires.
🚧 Buy / Sell Stop & SL / TP Levels — dashed Buy-Stop and Sell-Stop lines sit a configurable buffer beyond each range edge to define a genuine breakout. On a fired breakout the indicator projects a structure- or ATR-based Stop-Loss and TP1 / TP2 / TP3 at your chosen R-multiples, framing the trade the moment it triggers.
📊 Live Win-Rate Dashboard — an institutional gold-on-dark panel that tracks outcomes, not just signals: overall win rate (with █░ meter), total breakouts, wins/losses, Long WR vs Short WR, Strong-Zone WR (≥8), TP1/TP2/TP3 hit counts, expectancy (R per trade), total R, best/worst streak, the live zone score meter, and the current breakout bias. You see the system's measured performance on your symbol and timeframe in real time.
🔒 Non-Repainting — all detection and scoring run only on confirmed candles. A zone forms, extends, and breaks on closed-bar logic; once a breakout fires the level and its label lock in and never repaint.
🔔 Native Alerts — fires on a confirmed Buy breakout and Sell breakout, with the zone's score and entry level embedded in the message, so you're notified the instant a graded range gives way.

🔧 Fully Customizable — minimum score to display, minimum/maximum range span, scoring weights for all five factors, breakout confirmation (close vs wick), stop buffer, SL basis (opposite edge / zone mid / ATR), the three R-multiple targets, what counts as a "win" (TP1/2/3), the full institutional colour palette, transparency, label size, and dashboard position/size — all adjustable.
🎯 Why this is different — most "breakout" tools draw a box and fire an arrow the moment price pokes out, with no sense of whether the range was even worth trading or which way it should go. Strong Range Breakouts quantifies the consolidation first, predicts the direction, frames the trade, and then keeps score — so a high-grade zone with a strong bias is one to trade with, and a low-grade or counter-bias break is one to treat with suspicion. The validation behind the score even informs how you trade each one (see below).
🚀 Apply to Gold (XAUUSD), Silver, Forex, Crypto, and Indices on any intraday or higher timeframe.

🎯 How To Trade It — Quick Overview

The score decides whether a setup is worth taking; the directional bias decides which way; the levels frame the trade. In validation, high-scored ranges broke cleaner and counter-bias breaks failed more often — so play them differently.
1) Trade-With Breakout (the primary play) — use on STRONG / ELITE zones (≥7) that break with their bias
Best when a range is rated STRONG or ELITE and the breakout fires in the same direction the ▲/▼ bias predicted.

Wait for a confirmed close beyond the Buy-Stop (long) or Sell-Stop (short) line — not a single wick.
Confirmation is strongest when the break direction matches the zone's directional bias (the ~77–81% edge).
Entry: on the close beyond the stop level, or on a retest of the broken edge (broken top flips to support; broken bottom flips to resistance).
Stop: the projected SL (opposite range edge / zone mid / ATR — your choice).
Targets: TP1 first (in testing TP1 hit by far the most often — bank or de-risk there), then trail toward TP2 / TP3 as the move extends.
Use the Buy/Sell breakout alert to catch the trigger the moment a graded range gives way.

2) Fade the False Break — use on WEAK / MODERATE zones, or breaks against a strong bias
Best when a low-scored range pokes out, or price breaks opposite to a high-confidence bias — statistically the more likely failure.

Wait for price to push just beyond the range edge and fail to hold (no decisive close beyond, momentum stalling).
Entry: on the reversal back inside the range (a close back through the broken edge).
Stop: just beyond the level that was swept — if price reclaims and holds it, the fade is wrong and it's a real breakout.
Targets: the opposite range edge first, then the measured range height.

Rule of thumb: ⭐ STRONG/ELITE + break with bias → trade the breakout. ⭐ WEAK/MODERATE, or break against a strong bias → suspect a trap, fade it. Let the dashboard win-rate on your symbol tell you which behaviour is paying on the instrument you actually trade.

⚠️ IMPORTANT NOTICE: This indicator power-ranks consolidations, predicts likely breakout direction, and frames breakout-vs-fade scenarios. It should NOT be used as a standalone signal for entering trades. The dashboard statistics are measured on historical, closed-bar data and describe past behaviour only. Always combine it with your own strategy, price-action analysis, and risk management to confirm setups. Past statistical behaviour does not guarantee future results.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.