OPEN-SOURCE SCRIPT
Mis à jour 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.
Notes de version
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
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.