I have an indicator that counts previous bars that are in different stages.
I found when switching instruments this morning I get an error with barsAgo.
Error on calling 'OnBarUpdate' method for indicator 'itStageMTF' on bar 10209: barsAgo needed to be between 0 and 255 but was 278
What barsAgo is this referring to? Is there a way I can reset it to begin from zero at a certain point?
Thanks.
Comment