Meridian Structure Lattice [JOAT]Meridian Structure Lattice
Introduction
Meridian Structure Lattice is an open-source market structure and zone-mapping overlay designed to visualize how price interacts with prior swing liquidity, displacement, fair value gaps, structural blocks, and supply-demand regions. It focuses on the structural side of chart reading rather than on generic trend-following averages.
The problem this script solves is fragmentation. Traders often need separate tools for BOS detection, sweep identification, imbalance mapping, and supply-demand marking. Meridian Structure Lattice consolidates those ideas into one coordinated structure model so the user can see which event happened, where it happened, and which zones remain active or invalidated afterward.
Core Concepts
1. Pivot-Based Structure Engine
Confirmed swing highs and lows are tracked with symmetric pivot logic. Those pivots become the active structural reference points for bullish and bearish breaks, as well as the levels that can later be swept without closing through them.
2. BOS Versus Shift Logic
When price closes beyond the latest active pivot high or low, the script classifies the event relative to the existing structure bias. Continuation breaks are labeled as BOS, while breaks against the prior bias are labeled as shifts.
3. Liquidity Sweeps
Sweeps occur when price trades beyond a stored pivot but closes back through it. These are displayed with event lines anchored to the original pivot zone rather than floating labels only.
4. Zone Families
The script can create and maintain fair value gaps, structural blocks, and ATR-width supply-demand zones. Each zone extends forward, can display a midpoint, can show a live price label on the right edge, and changes state when price mitigates it.
Features
Pivot-confirmed structure model: Swing highs and lows drive all event logic
Bullish and bearish BOS detection: Confirmed continuation breaks
Bullish and bearish shift detection: Regime-sensitive structural reversals
Liquidity sweep detection: Wick-through and close-back behavior against stored pivots
Fair value gap zones: Bullish and bearish imbalance regions
Structural blocks: Structure-derived reaction zones that can be upgraded after displacement
Supply and demand mapping: ATR-scaled zones projected forward
Zone midlines and price labels: Optional midpoint and right-edge price tagging
Mitigation logic: Zones can retire on close-through or wick-through behavior
Dashboard: Active zone counts, last event, sweep age, displacement state, and pivot spread
Confirmed-bar mode: Events can be restricted to confirmed candles only
Input Parameters
Structure:
Swing Length controls structural sensitivity
BOS, sweep, and label toggles control the event layer
Zones And Display:
Fair value gap, structural block, and supply-demand toggles
Supply-demand ATR width and maximum active zones per side
Displacement threshold, mitigation mode, confirmed-bar requirement, midline, price label, dashboard, and forward extension settings
How to Use This Indicator
Step 1: Identify the most recent event in the dashboard to understand whether structure is breaking or only sweeping.
Step 2: Use BOS and shift labels to determine whether the current break is continuation or reversal behavior.
Step 3: Use sweeps as failed acceptance signals around prior liquidity.
Step 4: Use active zones as forward reference areas for mitigation, continuation, or rejection.
Step 5: Monitor whether a zone remains active or has already been invalidated before treating it as tradeable.
Indicator Limitations
Pivot logic confirms after the pivot forms, so structural labels intentionally appear with delay to avoid repainting
Fast moves may skip through multiple nearby zones before the chart can display a clean response
Zone families are analytical references, not guaranteed reversal areas
Dense structure on lower timeframes can still require selective display settings for clarity
Originality Statement
Meridian Structure Lattice is original in the way it coordinates structural events and multiple forward zone families inside a single non-repainting framework. The different components are not merged for convenience alone; they are combined because BOS, shifts, sweeps, blocks, gaps, and supply-demand zones describe different parts of the same structure narrative.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not provide financial advice or guaranteed support and resistance levels. Structural events and zones are derived from historical price behavior and should be used with disciplined risk management.
-Made with passion by jackofalltrades
อินดิเคเตอร์ Pine Script®






















