OPEN-SOURCE SCRIPT

Pro Structure: Precision MSS/BOS & Extended FVG

648
1. Precision Structure Mapping (BOS & MSS) Unlike standard ZigZag indicators that just connect pivots, this script visualizes the exact "Break" point:

MSS (Market Structure Shift): Displayed as a Thick Solid Line. This signals a potential trend reversal (e.g., breaking a Lower High in a downtrend).

BOS (Break of Structure): Displayed as a Thin Dashed Line. This signals trend continuation in the current direction.

Visual Logic: The lines originate exactly from the Swing Pivot and terminate exactly at the candle that closes beyond that pivot, providing instant visual confirmation of the break.

2. Trend-Filtered Fair Value Gaps (FVG) To reduce "Analysis Paralysis," this indicator uses an active trend filter:

Bullish Trend: Only Bullish FVGs (Green) are highlighted. Bearish FVGs are hidden to prevent counter-trend confusion.

Bearish Trend: Only Bearish FVGs (Red) are highlighted.

Extended Zones: FVG boxes are automatically projected forward (default: 5 candles) to help identify immediate entry zones before price returns to them.

3. Clean Aesthetics The chart remains minimal. Labels are non-intrusive, and color coding is strictly defined (Green for Bullish structure/FVGs, Red for Bearish structure/FVGs), allowing for rapid decision-making.

Settings

Swing Detection Length: Customize the sensitivity of the structure (lower for scalping, higher for macro trends).

FVG Extension: Control how far into the future the FVG boxes are drawn.

Visuals: Fully customizable colors and label options.

This tool is intended to assist in identifying high-probability structural points and aligned entry zones.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.