OPEN-SOURCE SCRIPT

Price at time (sub-bar resolution)

Updated
This simple script shows you the price at a fixed sub-bar time, and is useful for back-testing.

For example, if your strategy is to enter buy stops overnight and check your positions at lunch the next day, then use this indicator to highlight the opening price of the 3rd 60-minute bar. The default is the open price of the second 30-minute bar ("10 am").
Release Notes
Updated to support 2 sub-bar times.
Release Notes
Fixed minor bug. Don't forget to "Bring to front" after adding to the chart!
backtestinglowertimeframemultitimeframesubtimeframe

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?


Also on:

Disclaimer