marketmindset

The Opening Range / First Bar By Market Mindset - Zero To Endles

marketmindset Updated   
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
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.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?