TradingView
nephew_sam_
21 מרץ 2022 16:22

Previous OHLC (Nephew_Sam_) 

Ethereum / TetherUS PERPETUAL CONTRACTBinance

תיאור

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.

הערות שחרור

Update: Added alerts and label

הערות שחרור

Labels bug fix

הערות שחרור

Labels another bug fix

הערות שחרור

Thumbnail Image

הערות שחרור

Added more timeframes + labels settings

הערות שחרור

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

הערות שחרור

bug fix

הערות שחרור

Monthly text fix

הערות שחרור

Show only 1 previous OHLC

הערות שחרור

Monthly label fix

הערות שחרור

Added optional pip box above and below highs
תגובות
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.
עוד