OPEN-SOURCE SCRIPT
ZP AlignedEdge multi-confluence trading

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
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
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.