OPEN-SOURCE SCRIPT

First 5-Minute ORB Levels with Hour Offset

Por Brockjava
### Indicator Overview: First 5-Minute ORB Levels with Hour Offset

This indicator is designed for traders who want to track the high and low of the first 5-minute candle of a trading session, specifically starting at 9:30 am EST (New York time) by default. The lines representing these levels, known as the "Opening Range Breakout" (ORB) levels, are extended across the trading session until the market close at 4:00 pm EST. The indicator provides the following features:

1. **Real-Time Updates**:
- As the first 5-minute candle of the session forms (from 9:30 am to 9:35 am EST), the indicator dynamically updates the high and low lines.
- After the candle completes, the lines are locked in place and extend horizontally across the chart until market close.

2. **Customizable Hour Offset**:
- Users can adjust the start time of the session by specifying an hour offset. This feature is particularly useful for traders operating in different time zones or those who want to analyze custom session times.
- For example, if you trade in a time zone where the session starts at 8:30 am local time instead of 9:30 am EST, you can set the hour offset to `-1` to adjust the start time accordingly.

3. **Visual Labels**:
- The indicator places labels at the end of the lines, clearly marking the "5m ORB High" and "5m ORB Low" levels. These labels are updated in real-time as the first 5-minute candle forms and are fixed in place once the candle closes.

### How to Adjust the Settings:

1. **Hour Offset**:
- **Description**: The hour offset allows you to shift the start time of the session. The default start time is 9:30 am EST, but you can change this using the hour offset.
- **How to Adjust**:
- Open the indicator settings.
- Locate the "Hour Offset" field.
- Enter a positive or negative integer value to shift the session start time.
- **Example**:
- `0` (default): Start at 9:30 am EST.
- `-1`: Start at 8:30 am EST.
- `+1`: Start at 10:30 am EST.
- The indicator will then track the first 5-minute candle starting at the adjusted time and plot the high and low accordingly.

2. **Line and Label Appearance**:
- The lines representing the ORB levels are green by default, and the labels are also green with white text for clear visibility on the chart. The labels are positioned to the right of the lines to avoid cluttering the chart.

### Use Cases:

- **Opening Range Breakout Strategy**: Traders often use the ORB strategy to identify potential breakout points during the trading day. By marking the high and low of the first 5-minute candle, this indicator helps traders quickly identify key levels where price might break out or reverse.

- **Custom Session Analysis**: If you trade in a different time zone or need to analyze a different session (e.g., pre-market or after-hours), the hour offset feature allows you to adapt the indicator to your needs.

This indicator is particularly valuable for intraday traders who rely on the initial volatility of the trading session to make informed decisions.
Candlestick AnalysisPivot points and levels

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad