OPEN-SOURCE SCRIPT
Mis à jour Order Block Hunter

Order Block Hunter identifies a specific bullish reversal pattern from Smart Money Concepts (SMC): a down-closing week immediately followed by a breakout week whose range exceeds 1.5× the prior week's range and closes above that week's high.
Weekly timeframe only — the pattern was tested and validated exclusively on weekly bars; it will not fire on other timeframes.
Backtest methodology: tested on ~6,000 US-listed NYSE/NASDAQ tickers (~9,200 total signals), split into a development period (pre-2022) and a blind holdout period (2022+) never used to tune the rules. Compared against a buy-any-week baseline on the same universe. Confirmed not driven by a small handful of repeat tickers — per-ticker average win rate held up even when the 20 most frequent tickers were excluded.
What's shown on the chart:
Entry marker on the most recent signal only
The original "Order Block" zone (down week's range) as a shaded box
An invalidation level below the zone (tested to reduce false stop-outs vs. using the zone's exact low)
Two reference target levels based on historical median/mean forward returns
Optional EMA lines for visual trend context (not used as a filter — tested separately and found not to meaningfully affect outcomes)
Weekly timeframe only — the pattern was tested and validated exclusively on weekly bars; it will not fire on other timeframes.
Backtest methodology: tested on ~6,000 US-listed NYSE/NASDAQ tickers (~9,200 total signals), split into a development period (pre-2022) and a blind holdout period (2022+) never used to tune the rules. Compared against a buy-any-week baseline on the same universe. Confirmed not driven by a small handful of repeat tickers — per-ticker average win rate held up even when the 20 most frequent tickers were excluded.
What's shown on the chart:
Entry marker on the most recent signal only
The original "Order Block" zone (down week's range) as a shaded box
An invalidation level below the zone (tested to reduce false stop-outs vs. using the zone's exact low)
Two reference target levels based on historical median/mean forward returns
Optional EMA lines for visual trend context (not used as a filter — tested separately and found not to meaningfully affect outcomes)
Notes de version
Updated valuesNotes de version
Updated chartScript 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.