OPEN-SOURCE SCRIPT
NY RTH Opening Range [M1D]

NY RTH Opening Range [M1D]
This indicator marks the New York Regular Trading Hours Opening Range (09:30–10:00 New York time, DST-adjusted automatically) on any chart timeframe at or below 30 minutes.
How it works: the script accumulates the highest high and lowest low across every bar that falls inside the 09:30–10:00 New York session window, rather than assuming a single candle equals the range — this makes it accurate whether you're viewing a 1-minute or 30-minute chart.
Once the window closes, the range locks and three levels are drawn: the range high, the range low, and the midpoint (equilibrium). The current day's range plus a user-defined number of prior days are displayed for reference, with prior days dimmed automatically.
After the range locks, the script monitors price for a confirmed bar close beyond the range high or low and marks a single directional signal per side per day. If price later closes back inside the range following a break, a separate marker flags that the break may have failed, prompting reassessment rather than continued directional bias.
A status panel in the corner of the chart shows whether the range is still forming or has locked, the current high/low values, and the live directional bias.
Settings: session window and timezone, line extension length, number of prior days shown, line/marker colours, and panel visibility are all user-adjustable via the indicator's settings menu.
Note: This tool identifies a structural reference level and does not constitute financial advice or a standalone trading signal. As with any single concept, it is intended to be used as one component of a broader trading framework and should be combined with proper risk management.
This indicator marks the New York Regular Trading Hours Opening Range (09:30–10:00 New York time, DST-adjusted automatically) on any chart timeframe at or below 30 minutes.
How it works: the script accumulates the highest high and lowest low across every bar that falls inside the 09:30–10:00 New York session window, rather than assuming a single candle equals the range — this makes it accurate whether you're viewing a 1-minute or 30-minute chart.
Once the window closes, the range locks and three levels are drawn: the range high, the range low, and the midpoint (equilibrium). The current day's range plus a user-defined number of prior days are displayed for reference, with prior days dimmed automatically.
After the range locks, the script monitors price for a confirmed bar close beyond the range high or low and marks a single directional signal per side per day. If price later closes back inside the range following a break, a separate marker flags that the break may have failed, prompting reassessment rather than continued directional bias.
A status panel in the corner of the chart shows whether the range is still forming or has locked, the current high/low values, and the live directional bias.
Settings: session window and timezone, line extension length, number of prior days shown, line/marker colours, and panel visibility are all user-adjustable via the indicator's settings menu.
Note: This tool identifies a structural reference level and does not constitute financial advice or a standalone trading signal. As with any single concept, it is intended to be used as one component of a broader trading framework and should be combined with proper risk management.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.