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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.