Hello
See attached :
– the value of the ADX in the timeframe 4hours (on the left) is different from the calculated 4h ADX indicator under the 15min timeframe
the code is quite simple
timeframe(4hours, default)
a1 =adx[8]
return
The variable “8” is the same in both timeframes, and it seems, according to the “steps” under the 15min timeframe that the indicator follows the same 4h period.
How to get the correct version of ADX 4h in the 15min timeframe ?
thank you in advance
It is most likely for the same reasons as described in the answers to this post.
Multi timeframe – MTF indicators for ProRealTime
It is most likely for the same reasons as described in the answers to this post.
https://www.prorealcode.com/topic/multi-timeframe-mtf-indicators-for-prorealtime/page/4/#post-162444
Thank you a lot.
Sorry, I have however read (too quickly obviously) this topic….
so the answer would be, as per Nicolas :
Expand the units displayed of the 5-minutes TF chart, in order to get the necessary data to calculate the historical volatility of the daily timeframe.
and it works !!!!
thank you everyone