PROTECTED SOURCE SCRIPT
OHLC for future

# OHLC for Futures
## Overview
This indicator helps traders identify key price levels from previous trading sessions. It displays the previous session's High, Low, Close, and the current session's Open as reference points on your chart.
I believe the day's opening price is crucial, while yesterday's opening price is irrelevant.
I haven't found a suitable OHLC indicator for futures trading, so I spent some time developing this one myself. As I'm currently migrating my trading from other platforms to TradingView, I need to create many indicators. Due to time constraints, there might be some bugs. If you encounter any issues or have suggestions for improvement, feel free to leave a comment or send me a private message.
## Key Features
- Displays previous session OHLC levels as dot markers
- Supports Sunday evening session start for futures markets
- Automatically handles half-day trading and weekend gaps
- Optional display of current session's developing High/Low
- Works on any timeframe
### Gap Detection
The indicator automatically handles:
- Half-day trading when market closes early
- Weekend gaps from Friday to Monday
- Any unexpected day changes during active sessions
## Settings
### Time Configuration
**Start Weekday Session**: Enter time in HHMM format (example: 830 for 8:30 AM)
- Used for Monday through Saturday
**Start Sunday Session**: Enter time in HHMM format (example: 1700 for 5:00 PM)
- Used for Sunday evening sessions
**End Session**: Enter time in HHMM format (example: 1515 for 3:15 PM)
- When the trading session officially ends
**Important**: Recommended to set chart timezone to "Exchange" for best results.
## Setup Examples
### ES or NQ Futures
```
Start Weekday Session: 830
Start Sunday Session: 1700
End Session: 1515
Chart Timezone: America/Chicago
```
## Common Trading Applications
**Support and Resistance**
Previous High and Low often act as key levels where price may reverse or pause.
**Opening Range**
The opening price frequently serves as a pivot point during the trading session.
**Gap Trading**
Compare current Open to previous Close to identify gap situations.
**Range Analysis**
Use previous day's range to assess current volatility and potential targets.
## Tips for Best Results
1. Set your chart timezone to match the exchange timezone
2. Use 5-minute or 15-minute timeframes for clear visibility
3. Verify session times match your futures contract specifications
## Version Information
Current Version: 1.0
## Future Development
Planned enhancements:
- Alert system for price crossing OHLC levels
- Trading system integration with entry/exit signals
- Additional statistical analysis tools
## Notes
- This indicator is designed specifically for futures markets
## Disclaimer
This indicator is for educational and informational purposes only. Always conduct your own analysis and implement proper risk management before trading.
---
For questions, suggestions, or bug reports, please leave a comment below.
## Overview
This indicator helps traders identify key price levels from previous trading sessions. It displays the previous session's High, Low, Close, and the current session's Open as reference points on your chart.
I believe the day's opening price is crucial, while yesterday's opening price is irrelevant.
I haven't found a suitable OHLC indicator for futures trading, so I spent some time developing this one myself. As I'm currently migrating my trading from other platforms to TradingView, I need to create many indicators. Due to time constraints, there might be some bugs. If you encounter any issues or have suggestions for improvement, feel free to leave a comment or send me a private message.
## Key Features
- Displays previous session OHLC levels as dot markers
- Supports Sunday evening session start for futures markets
- Automatically handles half-day trading and weekend gaps
- Optional display of current session's developing High/Low
- Works on any timeframe
### Gap Detection
The indicator automatically handles:
- Half-day trading when market closes early
- Weekend gaps from Friday to Monday
- Any unexpected day changes during active sessions
## Settings
### Time Configuration
**Start Weekday Session**: Enter time in HHMM format (example: 830 for 8:30 AM)
- Used for Monday through Saturday
**Start Sunday Session**: Enter time in HHMM format (example: 1700 for 5:00 PM)
- Used for Sunday evening sessions
**End Session**: Enter time in HHMM format (example: 1515 for 3:15 PM)
- When the trading session officially ends
**Important**: Recommended to set chart timezone to "Exchange" for best results.
## Setup Examples
### ES or NQ Futures
```
Start Weekday Session: 830
Start Sunday Session: 1700
End Session: 1515
Chart Timezone: America/Chicago
```
## Common Trading Applications
**Support and Resistance**
Previous High and Low often act as key levels where price may reverse or pause.
**Opening Range**
The opening price frequently serves as a pivot point during the trading session.
**Gap Trading**
Compare current Open to previous Close to identify gap situations.
**Range Analysis**
Use previous day's range to assess current volatility and potential targets.
## Tips for Best Results
1. Set your chart timezone to match the exchange timezone
2. Use 5-minute or 15-minute timeframes for clear visibility
3. Verify session times match your futures contract specifications
## Version Information
Current Version: 1.0
## Future Development
Planned enhancements:
- Alert system for price crossing OHLC levels
- Trading system integration with entry/exit signals
- Additional statistical analysis tools
## Notes
- This indicator is designed specifically for futures markets
## Disclaimer
This indicator is for educational and informational purposes only. Always conduct your own analysis and implement proper risk management before trading.
---
For questions, suggestions, or bug reports, please leave a comment below.
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.