OB Sweeps Reversal

The script monitors price interaction with each OB and classifies its status as:
Unmitigated (price has not yet returned)
Mitigating (price is testing the zone)
Invalidated (zone has been broken)
Traders can use these zones directly as actionable support/resistance — or wait for additional confirmation via the system’s liquidity sweep detection and optional filters.
🔍 Key Features:
Automatically detects and plots bullish and bearish OBs
Tracks mitigation status and updates visuals accordingly
Detects liquidity sweeps of recent highs/lows
Optional filters:
• 200 EMA trend direction
• Momentum of current or previous candle
Plots stop-loss and take-profit lines using ATR-based logic
Clean entry labels with full contextual data
Built-in alert system with constant-string messages (automation ready)
📈 How to Use:
Load the script on any timeframe (15m–4H recommended)
Observe the live OB zones as they develop
Trade based on price interaction:
• Bounce off a bullish OB = potential long setup
• Rejection from a bearish OB = potential short
• Sweep + snapback into an OB = optional trap reversal entry
SL/TP levels are drawn automatically for reference
Use alerts to automate or monitor high-conviction setups
The order blocks themselves are valuable on their own — even without waiting for a signal. They can be used as dynamic support and resistance zones, offering excellent structure-based trading opportunities.
🧠 Ideal For:
Traders who follow price action and market structure
Those using support/resistance, OBs, or supply/demand
Intraday and swing traders looking for cleaner structure alignment
Users who prefer low-frequency, high-quality setups
⚠️ Note:
This tool does not produce frequent signals. It is designed for precision and discipline, with a focus on clarity and confluence. It complements — not replaces — a trader’s decision-making process.
This script is open-source and designed with integrity, precision, and trader usability in mind. No links, no upsells, no promotions — just a reliable system for structural market analysis.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.