Well done mate, its great to see you back in action
JayRogers
⋅
@theheirophant, Just re-learning pinescript V4, and trying to spread a little love in the process :)
ckppmarathe
⋅
How to get volume data of HTF?
how to calculate ATR of HTF using this function?
Nuno_R
⋅
Very useful Thank you.
is it possible to reference higher timeframe data such as stochastic... with this function?
JayRogers
⋅
@Nuno_R, Unfortunately no, this function is only directly useful to ascertain HTF OHLC data. However, you could create an array to store each new value in order, and then use a custom function to calculate stoch etc. with results. I will bear this in mind for creating an update or extension to the script in the future.
Nuno_R
⋅
@JayRogers, thank you
It will be great to have an update or extension to the script
Nuno_R
⋅
@JayRogers, is it possible to add this in your function for the stochastic ?
@Nuno_R, I will not add it to the function directly, but it could be included as a sample use-case when i get around to updating it with array functionality.
@Nuno_R, Yes, but you would have to pull the initial lower timeframe OHLC data using `security` to feed into the `f_insecurity` function, which is fine i guess? Kinda defeats the purpose a little bit? XD