PROTECTED SOURCE SCRIPT

One Day Reversal Chart Signals by WHS

234
One Day Reversal (ODR) Chart Signals by WHS

This indicator implements a classic Key Reversal Pattern (One Day Reversal / ODR).
It identifies high-probability momentum shifts by combining strict price action rules with dynamic volume validation and an optional trend filter.

Pattern Logic & Conditions
Bullish One Day Reversal (BUY):

The bar makes a lower low than the previous bar.

The bar closes higher than the previous close.

The volume exceeds the previous bar's volume scaled by the multiplier.

Bearish One Day Reversal (SELL):

The bar makes a higher high than the previous bar.

The bar closes lower than the previous close.

The volume exceeds the previous bar's volume scaled by the multiplier.

Key Features
Volume Multiplier: Adjust the required volume spike threshold. Set to 1.0 for equal volume or higher, or 1.5 to require a 50% surge.

Trend Filter: Features a configurable Simple Moving Average (SMA 200 by default) to help traders identify signals aligning with the broader trend.

Drift-Free Visuals: Built with Pine v6 label.new mechanics for accurate, non-drifting chart placement.

Customizable Highlights: Optional background shading and candle bar coloring for instant signal visual verification.

Live Info Box: Display real-time bar metrics including current trend state (BULL/BEAR), latest signal, SMA period, and exact volume ratio relative to the previous candle.

Settings & Inputs
Core Parameters:

Volume Multiplier: Threshold multiplier for current vs. previous bar volume (Default: 1.0).

Trend Filter:

Trend MA Length: Period for the trend filter baseline (Default: 200).

Show Trend MA: Toggles the trend SMA line on the chart.

Visual:

Show Background: Highlights signal bars with clean background overlays.

Bar Coloring: Colors the candle body on signal bars.

Show Info Box: Toggles the summary table at the bottom center.

Alerts
Includes built-in alert conditions for push notifications:

ODR Bullish Reversal: Triggers on a confirmed Bullish ODR pattern.

ODR Bearish Reversal: Triggers on a confirmed Bearish ODR pattern.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.