OPEN-SOURCE SCRIPT
Mis à jour CB LOD Reversal

For the LOD one (swap high/low wording for HOD):
**LOD Reversal Scanner**
Flags intraday reversals off the low of day.
How it works: when a candle sets a new low of day and the *next* candle closes above that candle's close, the indicator prints a "REV" marker and sets a Signal value of 1. Red dots mark each new-LOD candle so you can see the setup forming.
The logic always runs on a fixed signal timeframe (default 15 minutes) regardless of the chart interval, so it can be used in Pine Screener on any interval at or below the signal timeframe.
Settings: signal timeframe, minimum 20-day average daily volume (default 1M), regular-session-only toggle.
Pine Screener use: add the indicator, set interval to 15m (or lower), filter `Signal` equal to 1, and rescan after each candle close.
For HOD version, change to: "when a candle sets a new high of day and the next candle closes below that candle's close… Green dots mark each new-HOD candle."
**LOD Reversal Scanner**
Flags intraday reversals off the low of day.
How it works: when a candle sets a new low of day and the *next* candle closes above that candle's close, the indicator prints a "REV" marker and sets a Signal value of 1. Red dots mark each new-LOD candle so you can see the setup forming.
The logic always runs on a fixed signal timeframe (default 15 minutes) regardless of the chart interval, so it can be used in Pine Screener on any interval at or below the signal timeframe.
Settings: signal timeframe, minimum 20-day average daily volume (default 1M), regular-session-only toggle.
Pine Screener use: add the indicator, set interval to 15m (or lower), filter `Signal` equal to 1, and rescan after each candle close.
For HOD version, change to: "when a candle sets a new high of day and the next candle closes below that candle's close… Green dots mark each new-HOD candle."
Notes de version
Release notes (for the "Update" publish box):**v2 — Signal no longer limited to the very next candle**
Previously the reversal had to occur on the candle immediately after the new low-of-day candle. Now, once a candle sets a new low of day, its close becomes the reference level and the indicator stays armed. The first later candle in the same session that closes above that level fires the REV signal, whether it's the next candle or several candles later. Each LOD candle can fire at most once; a new low of day resets the reference and re-arms the signal.
For the HOD script, swap "low of day → high of day" and "closes above → closes below."
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.