title: How to set up a variable in day Atr(14) if the chart timeframe is in minute
body: <p>I am new to pine script and trying to create a trading strategy script. Basic question : I would like to give to one of my variables a specific timeframe which is Day. For instance when I’m playing around with the different chart timeframe, atr(14) take into account the last 14 candle. So if I set the chart in hour, it gaves me the atr of the last 14 hours. Is there a way to get the last 14 days of the atr no matter what the chart is set in hour or minute or even seconds for example ? Let me repeat that It is for the strategy() script version 5 (and not for the indicator which have a parameter). Thank you for helping</p>