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
1
2
3
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 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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue