Discussion of article "Evaluating the ability of Fractal index and Hurst exponent to predict financial time series" - page 5

 

I'm not sure if this is correct (I'm sure it's not), but I added a line to the code.

In the CFractalSeriesSet.mqh file before the line

ii = (CircleCount - 1 - i) + IndexCount; // FRESH SCORES ARE STORED AT THE END OF THE ARRAYS

before the line

IndexCount = IndexCount >= (int)MuIndexes.Size() ? 0 : IndexCount;

Now it does not go outside the array. But I don't know how it will affect the calculations of the indicator.