Retest RangeRetest Range: Advanced Market Structure & Setup Engine
Overview
The Retest Range indicator is a sophisticated price action tool designed to identify powerful 3-candle reversal structures, automatically map out their internal mathematics, and project highly accurate support, resistance, and target zones. It combines raw momentum filtering with an internal Market Structure (BOS/CHoCH) engine to provide a complete, minimalist dashboard for serious traders.
How It Works: The 3-Candle Setup
The core engine hunts for a specific cluster of momentum:
Bullish Setup: A single bearish (red) candle followed immediately by 3 consecutive bullish (green) candles that engulf the high of the initial red candle.
Bearish Setup: A single bullish (green) candle followed immediately by 3 consecutive bearish (red) candles that engulf the low of the initial green candle.
Once a valid setup is identified, the indicator draws a transparent box around these 3 candles to visualize the "Range".
Mathematical Levels (0.75, 0.50, 0.25)
Inside every active Box, the script automatically projects three critical Fibonacci-like quartiles:
0.75, 0.50 (The Mid/Entry Level), and 0.25.
These lines extend forward to act as immediate dynamic support and resistance. The closest, untouched active box will continuously extend its lines along with the live price until a new box forms.
Box Targets & The "Inverse" Mechanics (Hocus Pocus)
Every valid setup projects a 1:1 Box Target based on its own range size.
A Bullish box projects a target box above it.
A Bearish box projects a target box below it.
The Inverse Trap: If the price fails to hit its intended target and instead reverses to close beyond the 0.50 mid-level of the active box, an "Inverse" is triggered.
When an Inverse occurs:
The original setup lines flip their colors (a failed Bullish box turns red).
The initial Box Target transforms into a hard "Resistance" (or Support) block.
A brand new Box Target is immediately projected in the opposite direction.
This allows traders to catch failed setups and instantly ride the momentum of the reversal trap!
Built-In Market Structure Engine (BOS / CHoCH)
Running silently in the background is a pure fractal-based Market Structure engine. It maps out confirmed Pivot Highs and Pivot Lows, labeling Break of Structure (BOS) and Change of Character (CHoCH) levels. It requires a hard candle body close to confirm breaks, filtering out fake wick sweeps.
The Stats Dashboard
A clean, minimalist ICT-style panel adapts to your chart's theme (Dark/Light mode). It provides live intelligence:
Daily Bias: Compared to the daily open.
MS State: The latest trend direction from the BOS/CHoCH engine.
Live Momentum & Volume: Real-time percentage strength of the current 3-candle move compared to the historical average of all previous boxes (highlighting STRONG vs. WEAK moves).
RSI & DMI (DI+ / DI-): Essential trend strength metrics at a glance.
Key Features:
Fully customizable Body Multiplier to filter out weak/doji setups.
Automatic preservation of validated Support/Resistance (Inverse) target boxes.
Clean, non-overlapping labels and lines.
Minimalist aesthetics designed for Quant and Price Action traders.
Indikator Pine Script®






















