Getting garbage values from iStochastic function
Alain Verleyen:
That's what is happening when nothing is checked.
- Is your handle valid ?
- Is CopyBuffer() returning an error ? How much data were copied ?
The handle is (iStochastic in OnInit), the CopyBuffer in OnTick (or OnTimer).
Please read the documentation !
Is there no way to get the values at OnInit()?
Here is the code and the output of the Strategy Tester:
The output is here:
I am confused. As previously I was getting correct values but now the values are all garbage. Kindly, help me.