OPEN-SOURCE SCRIPT
Updated The Opening Range / First Bar By Market Mindset - Zero To Endles

The script shows the opening range of the instrument based on different resolutions and timeframes.
Inputs :
1. Resolution
It decides the calculation frequency of the script.
In Auto resolution, Standard values have been used.
2. Timeframe
It decides the timeframe for the OHLC values.
By default, it will use the chart timeframe and so chart OHLC values.
3. Lookback
It decides the no. of ranges shown on the chart.
Middle Line can be hidden from the settings.
The script can be used for any instrument and on any timeframe.
If price is above the opening range or the middle line, a trader should look for long opportunities.
If price is below the opening range or the middle line, a trader should look for short opportunities.
A sideways or choppy move is exoected if Middle line is crossed again and again.
For trading, wait for atleast 1st bar to close. and let the opening range build up first.
Happy Trading
Inputs :
1. Resolution
It decides the calculation frequency of the script.
In Auto resolution, Standard values have been used.
2. Timeframe
It decides the timeframe for the OHLC values.
By default, it will use the chart timeframe and so chart OHLC values.
3. Lookback
It decides the no. of ranges shown on the chart.
Middle Line can be hidden from the settings.
The script can be used for any instrument and on any timeframe.
If price is above the opening range or the middle line, a trader should look for long opportunities.
If price is below the opening range or the middle line, a trader should look for short opportunities.
A sideways or choppy move is exoected if Middle line is crossed again and again.
For trading, wait for atleast 1st bar to close. and let the opening range build up first.
Happy Trading
Release Notes
ChangeLog :Introduced session based settings for Intraday and Swing Timeframes.
Different sessions can be selected for timeframe below and above 15m.
It will work only if Extended Trading Hours is selected in the TradingView Settings.
Release Notes
I tried to add some new features in the script. But that couldn't work properly.So making the previous version live again for now.
I'll fix the bugs and update shortly.
Stay connected
Release Notes
ChangeLog :- Bug Fixes
- Introduced session based settings for Intraday and Swing Timeframes.
- Different sessions can be selected for timeframe below and above 15m.
- It will work only if Extended Trading Hours is selected in the TradingView Settings.
Release Notes
ChangeLog : - Bug Fixes
- Standard Range is available to use with all Chart types.
Release Notes
ChangeLogs :1. Bug Fixes
- Fixed Improper positioning
- Fixed Improper values
2. Added functionality for the trailing endpoints
3. Added Labels
4. Added functionality to hide old labels (to make chart clear)
5. Improved UI/UX
Release Notes
Changelog : - Added option to ignore wicks
(if it is checked, The First Candle's Body would be used, instead of High and Low.)
Release Notes
Changelog :- Simplified The UI
- Improved Range Display
Release Notes
Simplified SettingsRelease Notes
Cleaner UIText Inside The Box
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Market Mindset
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Market Mindset
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.