OPEN-SOURCE SCRIPT
Updated Previous OHLC (Nephew_Sam_)

This indicator plots the OHLC of a previous HTF candle with an option to show the HTF candle too on the lower timeframe.
(uses latest pine script version 5)
Options:
1. Custom timeframe (requires a higher timeframe from current chart period)
2. Show or hide OC and/or LH lines of previous candle
3. Show or hide the candle at the beginning of the new period
Styles
1. You can style all lines and candle colors from this tab.
(uses latest pine script version 5)
Options:
1. Custom timeframe (requires a higher timeframe from current chart period)
2. Show or hide OC and/or LH lines of previous candle
3. Show or hide the candle at the beginning of the new period
Styles
1. You can style all lines and candle colors from this tab.
Release Notes
Update: Added alerts and labelRelease Notes
Labels bug fixRelease Notes
Labels another bug fixRelease Notes
Thumbnail ImageRelease Notes
Added more timeframes + labels settingsRelease Notes
1. Offset - shows OHLC of x day. 0 is current day, 1 is previous day2. Custom labels - custom labels for each OHLC
Release Notes
bug fixRelease Notes
Monthly text fixRelease Notes
Show only 1 previous OHLCRelease Notes
Monthly label fixRelease Notes
Added optional pip box above and below highsOpen-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.
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.
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.