OPEN-SOURCE SCRIPT
已更新 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)
發行說明
Updated values發行說明
Updated chart開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。