OPEN-SOURCE SCRIPT

ZP AlignedEdge multi-confluence trading

1 506
ZP AlignedEdge is a multi-confluence trading suite built on one core principle:
only trade when market structure, momentum, and higher timeframe trend align.

HOW IT WORKS

Market Structure Engine detects pivot highs and lows using configurable swing
length. Supply zones form at confirmed swing highs, Demand zones at swing lows.
Zone width scales dynamically with ATR(50). Overlapping zones are filtered
automatically. Zones invalidate and convert to BOS markers when price closes
beyond them.

Fair Value Gap (FVG) detection identifies 3-bar imbalances in both directions.
Each FVG displays its Consequent Encroachment (CE) level. Gaps auto-remove when
price fully mitigates them.

MSB + EMA Signal fires only when three conditions align simultaneously: a
confirmed Market Structure Break (close crossing a validated swing high or low),
an EMA crossover (EMA50/EMA100 or EMA100/LWMA240), and the Higher Timeframe
trend filter (user-selectable M15 H1 H4). All signals fire on bar close only.
Fully anti-repainting.

Market Sessions display London, New York, Tokyo, Hong Kong, Sydney with
DST-aware timing. PVSRA Liquidity Zones highlight institutional volume candles.

Credits:
PVSRA Liquidity Zone logic — TradersReality/Traders_Reality_Lib
ZigZag library — TradingView/ZigZag/7
FVG and Supply Demand Zone structure inspired by DIY Custom Strategy Builder

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.