'ADX'
'<Period: integer>; <ApplyToPrice: string>'
'14;Open'
0..2 :Internal buffers
3 : ADX buffer
4 : + Di buffer
5 :- Di buffer
now for some reason after successfuly geting the handle to the ADX function and storing it in indADX variable, the following code:
Code: Select all
dmi_p =
GetIndicatorValue(indADX, 0, 4); // 0=curr bar, 4=DI+ value buffer
dmi_m =
GetIndicatorValue(indADX, 0, 5); // 0=curr bar, 5=DI- value buffer
mostly returns 0 for dmi_p and a a value for dmi_m that looks like should infact be the value of dmi_p.
Actually, comparing the +DI and -DI values returned by the GetIndicatorValue() function with the ones plotted don't seem to match at all.
Has the definition of ADX changed so that I am using the wrong indeces for the DI buffers? Or am I missing something here?
Thanks to anyone that can shed some light on this ...
Peter