OPEN-SOURCE SCRIPT

Key Times & Opening Prices [Olitrades]

Updated
This indicator plots key time's (opening prices) with the possibility of vertical separators. It was initially created to utilize on the indices futures market, utilizing ICT logic.

These opening prices are often utilized to determine if price is currently at a premium or a discounted value.

The default times include:
  • Daily Open (18:00 PM)
  • Midnight (00:00 AM)
  • Settlement (15:00 PM)
  • 7:30 AM
  • 8:30 AM
  • 9:30 AM (Equities Open)
  • 10:00 AM (Morning 4h Candle Open)
  • 14:00 PM (Afternoon 4h Candle Open)
  • Along with up to three custom time slots.


All times used in the indicator are Eastern Standard time (New York local time) and will automatically adjust no matter your time zone.

Historical

When in historical mode, the indicator will keep the previous levels so you can easily visualize them and their relation to price.

You can also choose how many past levels you want to see. This allows you to back test only specific days/weeks.

Other Inputs

The indicator contains an adjustable offset, to modify how far the line extends depending on the current timeframe.

Each one of the above-mentioned levels can be turned on and off, including the custom times. You can also choose between plotting just the opening price, a vertical line separator, or both! All of these lines have adjustable styles (dotted, dashed or solid) and width.

They also have custom cut offs. You may choose specific cut off times for custom time slots (when to stop extending the lines), as well as for AM (before noon) default levels and PM (after noon) default levels.

The indicator also allows to show text labels next to these lines, which is set by default but can be turned off. Custom times also include custom text options.
Release Notes
Bug Fix
  • Daily Open levels have been adjusted to be used on any asset.
  • The indicator can now be used in the seconds charts.
Chart patternsfuturesictconceptsopeningpricePivot points and levelspremiumdiscountTIMETrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


OGS
Also on:

Disclaimer