TradingView
informanerd
Jun 9, 2021 7:20 PM

HTF Candles 

Euro Fx/U.S. DollarFXCM

Description

This draws candlesticks from higher time frames on the current chart. I tried to keep the script simple using some newly introduced Pine capabilities.
To change the options like the higher time frame and candle colors, check the indicator settings.
Looking forward to your opinions!

Release Notes

- Fixed a bug related to the calculation of candle wicks position

Release Notes

- Converted to Pine v5
- Increased Performance
Comments
LudaCode
Amazing work, I recommend this one to everyone. I tested the candles to see if they are accurate and they are all perfect. Great example of box.new and using an array of boxes as well.
informanerd
@LudaCode, thanks a lot!
jmsarchitect2015
@informanerd, Thanks for the script,but how to use candles on heikenashi chart,is this possible?
informanerd
@jmsarchitect2015, There is no difference. Just change the chart type and the script works perfectly.
jmsarchitect2015
@informanerd, thanks for the reply ,let me rephrase my question ,i want normal candles but on heikenashi chart ,means candles dont change when we switch chart from normal candlestick chart to heikenashi
informanerd
@jmsarchitect2015, sorry, not implemented that. Maybe in near future!
John_Han001
Thank you so much, how can i set for border like solid line ?
Firedrops
Hi, I'm trying this on a 1 Hr chart with the HTF Candles set at 4 Hrs. But when I zoom in, the HTF candle body appear to be actually 5 bars?

Is this happening for you as well?
informanerd
@Firedrops, I checked it and it's 4! (0.5 + 3 + 0.5 = 4)
Actually it's because of a Pine Script limit that the higher time frame bars move about a half bar to the right.
Firedrops
@informanerd, OH I'm sorry, you are right! Counting the box "thickness", it's properly 4-bars-thick, but yeah the shift makes it look like it's "occupying" 5 candles.
More