OPEN-SOURCE SCRIPT

Reversal Correlation Pressure [OmegaTools]

197
Reversal Correlation Pressure is a quantitative regime-detection and signal-filtering framework designed to enhance both reversal timing and breakout validation across intraday and multi-session markets.
It is built for discretionary and systematic traders who require a statistically grounded filter capable of adapting to changing market conditions in real time.

1. Purpose and Overview

Market conditions constantly rotate through phases of expansion, contraction, trend persistence, and noise-driven mean reversion. Many strategies break down not because the signal is wrong, but because the regime is unsuitable.
This indicator solves that structural problem.

The tool measures the evolving correlation relationship between highs and lows — a robust proxy for how “organized” or “fragmented” price discovery currently is — and transforms it into a regime pressure reading. This reading is then used as the core variable to validate or filter reversal and breakout opportunities.

Combined with an internal performance-based filter that learns from its past signals, the indicator becomes a dynamic decision engine: it highlights only the signals that statistically perform best under the current market regime.

2. Core Components
2.1 Correlation-Based Regime Mapping

The relationship between highs and lows contains valuable information about market structure:

High correlation generally corresponds to coherent, directional markets where momentum and breakouts tend to prevail.

Low or unstable correlation often appears in overlapping, rotational phases where price oscillates and mean-reversion behavior dominates.

The indicator continuously evaluates this correlation, normalizes it statistically, and displays it as a pressure histogram:

Higher values indicate regimes favorable to trend continuation or momentum breakouts.

Lower values indicate regimes where reversals, pullbacks, and fade setups historically perform better.

This regime mapping is the foundation upon which the adaptive filter operates.

2.2 Reversal Stress & Breakout Stress Signaling

Raw directional opportunities are identified using statistically significant deviations from short-term equilibrium (overbought/oversold dynamics).
However, unlike traditional mean-reversion or breakout tools, signals here are not automatically taken. They must first be validated by the regime framework and then compared against the performance of similar past setups.

This dual evaluation sharply reduces the noise associated with reversal attempts during strong trends, while also preventing breakout attempts during choppy, anti-directional conditions.

2.3 Adaptive Regime-Selection Backtester

A key innovation of this indicator is its embedded micro-backtester, which continuously tracks how reversal or breakout signals have performed under each correlation regime.

The system evaluates two competing hypotheses:

Signals perform better during high-correlation regimes.

Signals perform better during low-correlation or neutral regimes.

For each new trigger, the indicator looks back at a rolling sample of past setups and measures short-term performance under both regimes. It then automatically selects the regime that currently demonstrates the superior historical edge.

In other words, the indicator:

Learns from recent market behavior

Determines which regime supports reversals

Determines which regime supports breakouts

Applies the optimal filter in real time

Highlights only the signals that historically outperformed under similar conditions

This creates a dynamic, statistically supervised approach to signal filtering — a substantial improvement over static or fixed-threshold systems.

2.4 Visual Components

To support rapid decision-making:

Correlation Pressure Histogram:
Encodes regime strength through a gradient-based color system, transitioning from neutral contexts into strong structural phases.

Directional Markers:
Visual arrows appear when a signal passes all filters and conditions.

Bar Coloring:
Bars can optionally be recolored to reflect active bullish or bearish bias after the adaptive filter approves a signal.

These components integrate seamlessly to give the trader a concise but complete view of the underlying conditions.

3. How to Use This Indicator
3.1 Identifying Regimes

The histogram is the anchor:

High, brightly colored columns suggest trend-friendly behavior where breakout alignment and directional follow-through have historically been stronger.

Low or muted columns suggest mean-reversion contexts where counter-trend opportunities and reversal setups gain reliability.

3.2 Filtering Signals

The indicator automatically decides whether a reversal or breakout trigger should be respected based on:

the current correlation regime,

the learned performance of recent signals under similar conditions, and

the directional stress detected in price.

The user does not need to adjust anything manually.

3.3 Integration with Other Tools

This indicator works best when combined with:

VWAP or session levels

Market internals and breadth metrics

Volume, order flow, or delta-based tools

Local structural frameworks (support/resistance, liquidity highs and lows)

Its strength is in telling you when your other signals matter and when they should be ignored.

4. Strengths of the Framework

Automatically adapts to changing micro-regimes

Reduces false reversals during strong trends

Avoids false breakouts in overlapping, rotational markets

Learns from recent historical performance

Provides a statistically driven confirmation layer

Works on all liquid assets and timeframes

Suitable for both discretionary and automated environments

5. Disclaimer

This indicator is provided strictly for educational and analytical purposes.
It does not constitute trading advice, investment guidance, or a recommendation to buy or sell any financial instrument.
Past performance of any statistical filter or adaptive method does not guarantee future results.
All trading involves significant risk, and users are responsible for their own decisions and risk management.
By using this indicator, you acknowledge that you are fully responsible for your trading activity.

Exención de responsabilidad

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.