OPEN-SOURCE SCRIPT
已更新 Order Block Finder [DefinedEdge]

Most order block indicators just draw boxes. This one tells you which boxes actually matter.
Detects institutional order blocks using the ICT definition (the last opposing candle before a displacement move), scores each zone by strength, tracks how price interacts with it, and flags high-confluence setups automatically.
► DETECTION
When price makes a strong impulsive move (filtered by ATR), the indicator walks back to find the last opposing candle before the displacement. That candle becomes the order block zone. Structure-based detection, not volume pivots.
► STRENGTH SCORING [0-100]
Each OB gets a score shown on the label (e.g. Bull OB [72]), calculated from:
Volume ratio (40%): above-average volume on formation?
Impulse size (40%): how strong was the displacement?
Structure proximity (20%): is the OB near a swing high/low?
Strong OBs appear vivid. Weak ones fade. You can tell at a glance which zones matter.
► PARTIAL vs FULL MITIGATION
Price wicks into an OB but closes back inside = tested and respected
Price closes through the OB completely = fully mitigated
Tested OBs become MORE visible. A zone that survives a test is stronger than one that hasn't been tested.
► BREAKER BLOCKS
When an OB gets fully mitigated, it flips polarity and becomes a breaker block (dashed border). A broken bullish OB becomes bearish resistance. Core ICT concept most OB indicators ignore.
► FVG CONFLUENCE
When an OB overlaps with a Fair Value Gap, it gets flagged with a purple border and star on the label. OB + FVG = high-probability zone.
► PROXIMITY ALERTS
Get warned BEFORE price reaches an OB. Configurable distance threshold (default 1%).
► AGE DECAY
Stale untested OBs gradually fade and auto-delete. Clean chart, no manual maintenance.
► MULTI-TIMEFRAME
Display higher-timeframe OBs on your current chart (dashed borders). See the daily OB on your 15m chart.
► DASHBOARD
Active OBs (bull/bear count with color coding)
Breaker block count
Distance to nearest OB
Tested OBs ratio with touch count
Directional bias
FVG confluence zones
► HOW TO READ THE LABELS
Bull OB [72] ★ = Bullish OB, strength 72/100, FVG overlap
Bear OB [35] = Bearish OB, strength 35/100
Bull BRK / Bear BRK = Breaker block (dashed border)
HTF Bull OB = Higher-timeframe overlay
► RECOMMENDED
Timeframes: 15m to 4H
Best on: BTC, ETH, EUR/USD, GBP/USD, NAS100, SPX, large-cap stocks
Structure Lookback: Default 5. Increase for higher timeframes.
Min Impulse: Default 1.0 ATR. Increase to filter noise.
*Tip: Some thin OB zones may not render when the chart is zoomed out. Increase chart magnification to view all active zones.
Detects institutional order blocks using the ICT definition (the last opposing candle before a displacement move), scores each zone by strength, tracks how price interacts with it, and flags high-confluence setups automatically.
► DETECTION
When price makes a strong impulsive move (filtered by ATR), the indicator walks back to find the last opposing candle before the displacement. That candle becomes the order block zone. Structure-based detection, not volume pivots.
► STRENGTH SCORING [0-100]
Each OB gets a score shown on the label (e.g. Bull OB [72]), calculated from:
Volume ratio (40%): above-average volume on formation?
Impulse size (40%): how strong was the displacement?
Structure proximity (20%): is the OB near a swing high/low?
Strong OBs appear vivid. Weak ones fade. You can tell at a glance which zones matter.
► PARTIAL vs FULL MITIGATION
Price wicks into an OB but closes back inside = tested and respected
Price closes through the OB completely = fully mitigated
Tested OBs become MORE visible. A zone that survives a test is stronger than one that hasn't been tested.
► BREAKER BLOCKS
When an OB gets fully mitigated, it flips polarity and becomes a breaker block (dashed border). A broken bullish OB becomes bearish resistance. Core ICT concept most OB indicators ignore.
► FVG CONFLUENCE
When an OB overlaps with a Fair Value Gap, it gets flagged with a purple border and star on the label. OB + FVG = high-probability zone.
► PROXIMITY ALERTS
Get warned BEFORE price reaches an OB. Configurable distance threshold (default 1%).
► AGE DECAY
Stale untested OBs gradually fade and auto-delete. Clean chart, no manual maintenance.
► MULTI-TIMEFRAME
Display higher-timeframe OBs on your current chart (dashed borders). See the daily OB on your 15m chart.
► DASHBOARD
Active OBs (bull/bear count with color coding)
Breaker block count
Distance to nearest OB
Tested OBs ratio with touch count
Directional bias
FVG confluence zones
► HOW TO READ THE LABELS
Bull OB [72] ★ = Bullish OB, strength 72/100, FVG overlap
Bear OB [35] = Bearish OB, strength 35/100
Bull BRK / Bear BRK = Breaker block (dashed border)
HTF Bull OB = Higher-timeframe overlay
► RECOMMENDED
Timeframes: 15m to 4H
Best on: BTC, ETH, EUR/USD, GBP/USD, NAS100, SPX, large-cap stocks
Structure Lookback: Default 5. Increase for higher timeframes.
Min Impulse: Default 1.0 ATR. Increase to filter noise.
*Tip: Some thin OB zones may not render when the chart is zoomed out. Increase chart magnification to view all active zones.
發行說明
v2 Update:- Switched from box-based to line-based zone rendering for cleaner visuals at all zoom levels
- OB labels now display exact price range (e.g. 398.50 - 404.20) so zones are readable regardless of chart zoom
- Added "Show Zone Fill" toggle and "Zone Line Width" setting for visual customization
- Bull/bear counts now color-coded in dashboard (green ▲ / red ▼)
- Fixed Nearest OB proximity calculation
- Improved duplicate OB filtering (1.5x ATR threshold)
- Adjusted zone transparency for better candle visibility
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。