OPEN-SOURCE SCRIPT
Orange 30M ORB Indicator

This script is an advanced Opening Range Breakout (ORB) + Retest indicator designed to track institutional-style liquidity behavior across multiple sessions (New York, London, Asia).
At its core, it:
Builds opening ranges (high, low, and 50% midline) for each selected session based on a user-defined time window (e.g., first 30 minutes).
Monitors breakouts above or below those ranges using either candle closes or wicks.
Identifies valid retests of the breakout level using precise criteria:
Wick or proximity-based touch of the level
Controlled penetration into the range
Valid closing behavior relative to the level
Highlights the retest candle (purple by default) and the next confirmation candle (orange) for clear trade visualization.
A key feature of this version:
Once a session’s range is formed, it remains active for retests even after the session ends, allowing setups to develop naturally.
All prior session ranges are automatically reset at the next 9:30 AM New York open, ensuring only the most relevant liquidity zones are used going forward.
Additional capabilities include:
Multi-session tracking (NY, London, Asia)
Customizable retest logic (strict touch or distance-based)
Timeframe filtering for precision entries
Adjustable tolerance levels for wicks and closes
Optional historical plotting and labeling
Built-in alerts for retests and confirmation candles
Overall, this tool is built to help you systematically identify breakout–retest continuation setups with clarity and consistency, aligned with how price interacts with key session liquidity zones.
At its core, it:
Builds opening ranges (high, low, and 50% midline) for each selected session based on a user-defined time window (e.g., first 30 minutes).
Monitors breakouts above or below those ranges using either candle closes or wicks.
Identifies valid retests of the breakout level using precise criteria:
Wick or proximity-based touch of the level
Controlled penetration into the range
Valid closing behavior relative to the level
Highlights the retest candle (purple by default) and the next confirmation candle (orange) for clear trade visualization.
A key feature of this version:
Once a session’s range is formed, it remains active for retests even after the session ends, allowing setups to develop naturally.
All prior session ranges are automatically reset at the next 9:30 AM New York open, ensuring only the most relevant liquidity zones are used going forward.
Additional capabilities include:
Multi-session tracking (NY, London, Asia)
Customizable retest logic (strict touch or distance-based)
Timeframe filtering for precision entries
Adjustable tolerance levels for wicks and closes
Optional historical plotting and labeling
Built-in alerts for retests and confirmation candles
Overall, this tool is built to help you systematically identify breakout–retest continuation setups with clarity and consistency, aligned with how price interacts with key session liquidity zones.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.