If I have a high frequency of bars, ie low barsPeriod, I have to frequently reset Bars To Load in the Data Series window to keep the number of bars that have been drawn low enough to prevent overload.
I want to automate the reset of BarsToLoad when the number of bars exceeds a set amount. I tried: if(CurrentBar > this.BarsToLoad + 100) {this.BarsToLoad = OriginalNumberOfBarsLoaded} (OriginalNumberOfBarsLoaded is my variable used in State.Configure to capture that value.)
But that attempt to reset BarsToLoad in code has no affect. Would there be a way to reset BarsToLoad in code, or any other way to automate resetting that?

Comment