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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.