it is working OK in an indicator. But how do I have to modify please when I want to use it in a script-strategy for BIP==2?
RSI1 = RSI(Closes[0], 5, 1);
VOL1 = VOL(Closes[2]);
myIntSeries = new Series<int>(this, MaximumBarsLookBack.Infinite); <----- ???
What do I have to modify in state.dataloaded please so that the "myIntSeries" which I use for TickCount is counting from the correct dataseries (BIP=2)?
Or is it enough and OK to have in OnBarUpdate
if(BarsInProgress==2)
{myIntSeries[2] = Bars.TickCount;
...
}
or isn´t this correct please?
Thank you!
Tony

Comment