TradingView
RafaelZioni
30 de Nov de 2020 14:19

daily candles 

Bitcoin / TetherUSBinance

Descrição

easy simple script for using daily non repainted daily candles on lower TF (4 hour or lower)
the color change (bullish=blue) , bearish =orange is made by special indicator that calculate the change of daily no security MTF to current close
so I just put this as template if someone want to use it as helper
the daily candles use security in non repainted mode that suggested by TV coders
so feel free to change this indicator as you wish :)
Comentários
cksinangin
Hi,
ti = change( time(HTF) ) != 0
T_c = fixnan( ti ? close : na )

change and fixnan commands what does it do?

Thank you.
Jittra
I think barmerge.lookahead going to cause repaint?
RafaelZioni
@Jittra, no, also the color is not relate to it at all .
RafaelZioni
Jittra
@RafaelZioni, any way to smooth this?
RafaelZioni
@Jittra, line 12 just need to change it to len =input(10) insted of 10 and then you can try to smooth the color as you wish
Mais