Range Detector Boxes draws clean range boxes on your chart and
freezes them only after a confirmed breakout — no repainting,
no fakeout green/red jumps on reload.
KEY FEATURES
• Consolidation box continuation: the box right edge extends while
price stays inside the range, pauses on volatile bars, and
resumes when the range is intact again.
• Confirmed breakout logic: a box is frozen only after a close
at least N points beyond the edge (user-defined), optionally
requiring multiple consecutive closed bars (default 2).
• Fakeout filter: by default only CLOSED bars can confirm a
breakout, so an intrabar spike can no longer paint the box
green — live boxes always match a full reload.
• Overlapping range envelopes merge automatically.
• Deferred range start: new ranges beginning inside a frozen
box are not lost — they are drawn once they clear the frozen
box's right edge.
• Optional "Extend Until New Range Appears" mode keeps the last
broken box sliding to the current bar with zero overlap.
• Shift-proof bar tracking (uses bar TIMES, not indices) so the
indicator keeps advancing on long runs after MT5 drops its
oldest bar.
• Full style control: colors for broken up / broken down /
active boxes, transparent outline-only mode or translucent
fill with adjustable opacity, border width 1–5 px.
• Live refresh timer (default 5 s) guarantees the boxes keep
advancing even on sparse-tick symbols.
INPUTS
• Minimum Range Length
• Range Width (ATR multiplier)
• ATR Length
• Breakout Confirmation, points (0 = any close outside)
• Breakout Confirmation, closed bars
• Confirm Breakouts On Forming Bar (repaints if on)
• Extend Box Right Edge Until New Range Appears
• Colors: Broken Upward / Broken Downward / Active
• Transparent Fill, Box Border Width, Fill Opacity
• Max Ranges (boxes on chart)
• Live Refresh, seconds
Based on the original Pine "Range Detector" logic — boxes only,
no lines, no plots, no highlights. Clean chart, honest signals.
⚠️ Disclaimer
This indicator is an educational tool only — not financial advice. The levels and zones shown are reference points, not buy/sell signals.
Trading involves risk. You may lose some or all of your capital. All trading decisions and risk management are your responsibility.
No profit is guaranteed. Results may vary between brokers and market conditions. The developer is not liable for any losses or damages.
All sales are final after download, except where required by law. MQL5 Market policies also apply.
By using this indicator, you accept these terms.