Please reference this previous post regarding BarsInProgress OnBarUpdate: https://ninjatrader.com/support/foru...ad.php?t=43737
Default Data series = 5 mins, secondary or first AddDataSeries = 1m
If I do not specify the BarsInProgress it runs like this:
OnBarUpdate() - 5 min .
OnBarUpdate() - 1 min
OnBarUpdate() - 1 min
OnBarUpdate() - 1 min
OnBarUpdate() - 1 min
OnBarUpdate() - 1 min
OnBarUpdate() - 5 min
Question1: How would I not specify BarsInProgress?!? Is this correct code logic to not specify BarsInProgress? "if (BarsInProgress != 0)" ?
Question 2:If I am using increment counters "x++" will the counters run and reset to zero at each OnBarUpdate listed above 5, 1, 1, 1, 1, 1, 5? (note: "private int x=0" is just above protected override void OnBarUpdate() in code.
Very much appreciated,
Blairski
Comment