I have printed out every single dataseries in the code and cannot see any negatives or zeros. I have made the initial if currentbar < x up to 200 when the code is only referencing 20-50 bars back.
I have no idea how to find out what is going on when this error msg pops up.
In both cases, it works fine with Calc on bar close, and the error msg occurs when that is false.
Any tips for how to find out what the problem is? (The two indicators are completely separate and neither uses code from the other).
Comment