If the Indicator OnBarUpdate is called on each new tick the series will grow to hold 1 indicator value for each tick, in addition the indicator won't have the correct values. An SMA on 20 1 minute bars calculated each new ticks will be an SMA on 20 ticks. (At least that's how the code looks like).
Does NT drop the last value in the series until the bar is fully calculated ?
What happens to local variables in the script, do you use reflection to rollback their values to before the previous tick update ?
Comment