OPEN-SOURCE SCRIPT
PSP zones with validation

This indicator implements a structured cross-asset correlation signal model (PSP — Price Structure Parity) combined with dynamic zone-based market representation and invalidation logic.
Unlike traditional correlation tools that only compare directional candle agreement between two assets, this script transforms correlation events into actionable market zones, while also managing their lifecycle through objective invalidation rules.
🔍 Core Concept
PSP (Price Structure Parity) identifies situations where:
The current asset shows a bullish candle while the reference asset is bearish, or vice versa (direct mode)
Or both assets move in the same direction under inverse correlation logic
These conditions highlight temporary structural dislocations between correlated instruments, often driven by liquidity imbalance or delayed price response.
🧠 How It Works
1. Cross-Asset Structure Comparison
The script compares:
Current chart candles
Reference symbol candles (user-defined)
It evaluates directional alignment or divergence depending on selected mode:
Direct correlation mode
Inverse correlation mode
2. PSP Signal Generation
A PSP event is triggered when a structural mismatch occurs between the two assets based on candle direction.
Signals are classified into:
Bullish PSP
Bearish PSP
3. Zone Construction (Key Feature)
Instead of simply coloring candles, each PSP event generates a price zone, representing:
The full body range of the signal candle
A contextual imbalance area where correlation deviation occurred
Zones remain active on the chart and provide a visual representation of where structural inefficiencies were identified.
4. Invalidation Mechanism
Each zone has a lifecycle and is automatically removed when invalidated:
Bullish zones are invalidated when price closes below the zone
Bearish zones are invalidated when price closes above the zone
This ensures only active and relevant market structures remain visible, eliminating visual noise and outdated signals.
📊 Key Features
Cross-asset correlation detection (PSP model)
Direct and inverse correlation modes
Zone-based visualization instead of single-bar signals
Automatic invalidation of broken structures
Clean and low-noise chart output
Suitable for multi-asset analysis
⚙️ Inputs
Reference Symbol – asset used for correlation comparison
Inverse Correlation Mode – flips correlation logic
Color Theme Selector – customizable visual styles
Opacity Control – zone transparency adjustment
🧭 How to Use
This indicator is best applied in:
Correlated crypto pairs (e.g., BTC/ETH, BTC/ALTS)
Index vs single asset analysis
Liquidity divergence identification
Typical workflow:
Wait for PSP zone creation
Observe price reaction inside the zone
Monitor invalidation level for structural confirmation
Use zones as context for entries or confirmations
⚠️ Notes
This indicator does not repaint historical PSP zones
Signals are based on closed candle structure
Best results occur when used with correlated liquid assets
🇷🇺 Description (RU — дополнительный перевод)
Этот индикатор реализует модель корреляционных структур PSP (Price Structure Parity) и превращает расхождения между активами в торговые зоны ликвидности.
В отличие от стандартных индикаторов корреляции, он не просто сравнивает направление свечей, а формирует:
структурные зоны дисбаланса
визуальные области интереса
автоматическую инвалидацию сломанных структур
🧠 Логика работы
Индикатор сравнивает:
свечи текущего графика
свечи выбранного референс-актива
При выявлении расхождения формируется PSP-сигнал:
бычий
медвежий
📊 Зоны
Каждый сигнал превращается в зону (box), которая показывает:
область структурного дисбаланса
потенциальную зону реакции цены
❌ Инвалидация
Зона удаляется при:
пробое вниз (для бычьей зоны)
пробое вверх (для медвежьей зоны)
🎯 Применение
Лучше всего работает:
на криптовалютах с высокой корреляцией
в анализе BTC vs альткоины
при поиске реакций от дисбаланса
Unlike traditional correlation tools that only compare directional candle agreement between two assets, this script transforms correlation events into actionable market zones, while also managing their lifecycle through objective invalidation rules.
🔍 Core Concept
PSP (Price Structure Parity) identifies situations where:
The current asset shows a bullish candle while the reference asset is bearish, or vice versa (direct mode)
Or both assets move in the same direction under inverse correlation logic
These conditions highlight temporary structural dislocations between correlated instruments, often driven by liquidity imbalance or delayed price response.
🧠 How It Works
1. Cross-Asset Structure Comparison
The script compares:
Current chart candles
Reference symbol candles (user-defined)
It evaluates directional alignment or divergence depending on selected mode:
Direct correlation mode
Inverse correlation mode
2. PSP Signal Generation
A PSP event is triggered when a structural mismatch occurs between the two assets based on candle direction.
Signals are classified into:
Bullish PSP
Bearish PSP
3. Zone Construction (Key Feature)
Instead of simply coloring candles, each PSP event generates a price zone, representing:
The full body range of the signal candle
A contextual imbalance area where correlation deviation occurred
Zones remain active on the chart and provide a visual representation of where structural inefficiencies were identified.
4. Invalidation Mechanism
Each zone has a lifecycle and is automatically removed when invalidated:
Bullish zones are invalidated when price closes below the zone
Bearish zones are invalidated when price closes above the zone
This ensures only active and relevant market structures remain visible, eliminating visual noise and outdated signals.
📊 Key Features
Cross-asset correlation detection (PSP model)
Direct and inverse correlation modes
Zone-based visualization instead of single-bar signals
Automatic invalidation of broken structures
Clean and low-noise chart output
Suitable for multi-asset analysis
⚙️ Inputs
Reference Symbol – asset used for correlation comparison
Inverse Correlation Mode – flips correlation logic
Color Theme Selector – customizable visual styles
Opacity Control – zone transparency adjustment
🧭 How to Use
This indicator is best applied in:
Correlated crypto pairs (e.g., BTC/ETH, BTC/ALTS)
Index vs single asset analysis
Liquidity divergence identification
Typical workflow:
Wait for PSP zone creation
Observe price reaction inside the zone
Monitor invalidation level for structural confirmation
Use zones as context for entries or confirmations
⚠️ Notes
This indicator does not repaint historical PSP zones
Signals are based on closed candle structure
Best results occur when used with correlated liquid assets
🇷🇺 Description (RU — дополнительный перевод)
Этот индикатор реализует модель корреляционных структур PSP (Price Structure Parity) и превращает расхождения между активами в торговые зоны ликвидности.
В отличие от стандартных индикаторов корреляции, он не просто сравнивает направление свечей, а формирует:
структурные зоны дисбаланса
визуальные области интереса
автоматическую инвалидацию сломанных структур
🧠 Логика работы
Индикатор сравнивает:
свечи текущего графика
свечи выбранного референс-актива
При выявлении расхождения формируется PSP-сигнал:
бычий
медвежий
📊 Зоны
Каждый сигнал превращается в зону (box), которая показывает:
область структурного дисбаланса
потенциальную зону реакции цены
❌ Инвалидация
Зона удаляется при:
пробое вниз (для бычьей зоны)
пробое вверх (для медвежьей зоны)
🎯 Применение
Лучше всего работает:
на криптовалютах с высокой корреляцией
в анализе BTC vs альткоины
при поиске реакций от дисбаланса
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Телеграм канал с ежедневной аналитикой и сигналами:
👉t.me/crypto_maniacdt
Форекс, металлы, индексы без комиссии на bingX:
👉bingx.com/invite/maniacdt/
👉t.me/crypto_maniacdt
Форекс, металлы, индексы без комиссии на bingX:
👉bingx.com/invite/maniacdt/
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Телеграм канал с ежедневной аналитикой и сигналами:
👉t.me/crypto_maniacdt
Форекс, металлы, индексы без комиссии на bingX:
👉bingx.com/invite/maniacdt/
👉t.me/crypto_maniacdt
Форекс, металлы, индексы без комиссии на bingX:
👉bingx.com/invite/maniacdt/
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.