Index was outside the bounds of the array.
When trying to use this code in an indicator;
if(CurrentBars[1] < 1)
{
double calc1 = StochasticsFast(3, 14).K[0];
double calc2 = StochasticsFast(3, 14).K[1];
double slope1 = calc1 - calc2;
}
I'm not sure what I'm doing wrong.
Comment