Forum

iStochastic grabbing the former value

Hi all, I have another query. I am using the following code to retrieve the stochastic value at the 0000hrs mark: iStochastic ( NULL , PERIOD_H4 ,14, 3 , 3 , MODE_SMA , 0 , MODE_MAIN , 0 ); The above code gives me a value of 12.136685 However, on my chart with the same plotted as above, it is

4-Hour Stochastic values at 15min marks

Hi all, I have done a search but I have not gotten an answer to my queries and therefore am writing this to seek help. This is what I am trying to do: I want to obtain the stochastic value from a 4-Hour chart in an EA that runs on a 15min chart. I understand the following code executes what I want