nephew_sam_

Previous OHLC (Nephew_Sam_)

nephew_sam_ Updated   
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.
Release Notes:
Update: Added alerts and label
Release Notes:
Labels bug fix
Release Notes:
Labels another bug fix
Release Notes:
Thumbnail Image
Release Notes:
Added more timeframes + labels settings
Release Notes:
1. Offset - shows OHLC of x day. 0 is current day, 1 is previous day
2. Custom labels - custom labels for each OHLC
Release Notes:
bug fix
Release Notes:
Monthly text fix
Release Notes:
Show only 1 previous OHLC
Release Notes:
Monthly label fix
Release Notes:
Added optional pip box above and below highs

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?