I have an indicator called RMI that I've been using for years without an issue. A few days ago I got the error message "You are accessing an index with a value that is invalid since it's out of range. I did not change any of the source code to cause the error.
The message said this was happening on bar 17. I opened the code and found this block:
private int period = 14; private int shift = 3; if (CurrentBar < (Period + Shift)) { return; }
if (CurrentBar < (Period + (Shift + 1))) { return; }
Comment