The error is on the following line:
if (StochasticsFast(5,100)[0] < 80.0 && StochasticsFast(5,100)[1] > 80.0)
It has problems with "StochasticsFast(5,100)[1]" . Index out of range.
I have tried this with StochasticsFast(5,100).K[1] and quite a few other variations but have the same issue.
Is this the correct way to obtain the previous value or is there a better way.
Thanks,
Comment