INVITE-ONLY SCRIPT

3-Phase ORB Logic: Break, Retest, Confirm

95
This script implements a 3-phase logic engine that identifies structured breakout setups based on the Opening Range. It automatically plots the ORB range and does not simply draw levels or mark breakouts. Instead, it tracks price behavior across three distinct states:

Break Phase: Price closes beyond the ORB high or low after remaining inside the range.

Retest Phase: A subsequent candle returns to test the breakout level within a defined tolerance window, using either percentage or price deviation logic.

Confirm Phase: A final candle breaks beyond the high/low of the break/retest combination, confirming directional intent.

The script uses bar-based tracking to ensure that retests and confirms occur within a maximum allowed number of bars. Users can also choose whether the retest and confirm can happen on the same candle.

Inputs:

  • Custom ORB session window
  • Price or % tolerance for retest
  • Max bars for retest and confirm
  • Optional same-bar handling
  • Choose between shape or label outputs


How to Use
Apply the indicator during your defined ORB session (default: 9:30–9:45). The script will automatically plot the ORB high and low. Once a breakout occurs, wait for a valid retest within the configured tolerance and time window. If a confirmation candle then breaks above or below the combined break/retest range, the setup is considered valid. This 3-phase sequence helps filter false breakouts and improves trade quality.


Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.