TradingView
nephew_sam_
21 mar 2022 16:22

Previous OHLC (Nephew_Sam_) 

Ethereum / TetherUS PERPETUAL CONTRACTBinance

Descrizione

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.

Note di rilascio

Update: Added alerts and label

Note di rilascio

Labels bug fix

Note di rilascio

Labels another bug fix

Note di rilascio

Thumbnail Image

Note di rilascio

Added more timeframes + labels settings

Note di rilascio

1. Offset - shows OHLC of x day. 0 is current day, 1 is previous day
2. Custom labels - custom labels for each OHLC

Note di rilascio

bug fix

Note di rilascio

Monthly text fix

Note di rilascio

Show only 1 previous OHLC

Note di rilascio

Monthly label fix

Note di rilascio

Added optional pip box above and below highs
Commenti
reastruth
Love this! Is there any line of pinescript to only show the last x number of days? I took a crack at it but was unsuccessful
nephew_sam_
@reastruth, Thanks for the coins!

For that you will have to save the lines to an array, then have a check if the days have passed then delete the lines. Check out my "Open Lines (Nephew_Sam_)" code
Thakkx
@nephew_sam_, Thank you as I was able to implement this with your new indicator using Array to limit the maximum OHLC drawn on chart for any period. Thanks...
tume28
@Thakkx, Could you please share how you update the Indicator to use the Array of the PDH/PDL for any period? Thanks
monky_bzness
Can this script use 0:00 EST for day open?
Mi11tch
hey man, this is super clean. Is there a way to perhaps turn off current day high low as it prints and/or extend yesterdays High and Low to current day.

Reason being if bullish then i wanna target yesterdays high its no biggy but would be nice to have cheers
wavetropicalsea
Can this script use 0:00 EST for day open?
Mi11tch
this is nice!! any chance you can mod the script so the the PDL is below the line it messes with my eyes lol - an option to turn todays current high low printing off and/or extend the line from yesterday to current day. cheers
frank2lin
your script is awesome, and I use it for emini s&p 500 future contract, and it has ETH and RTH, do you have any idea how to program this script to setup OHLC and candle bar size based on ETH or RTH? I appreciate it for any input.
onpointpe
Great indicator but is there a way to have it show the prior days close, high and low while you are in premarket. At present it seems that it shows the close/high and low for the day before yesterday until the market actually opens so it must relate to the time intervals selected somehow. Thanks so so much.
Altro