I build a little strategy. On State.Configure I add a new dataseries:
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Tick, 1);
}
Now, when I use the Analyzer and choose an Instrument and the Type "Tick" with the value of "1" happens following:
protected override void OnBarUpdate()
{
if (BarsInProgress == 1)
{
Print(Time[0] + " Tick: " + Close[0] + " @ " + Volume[0]);
}
}
Every tick will be triggered twice on the OnBarUpdate event on this dataseries. If you choose something other than "Tick 1" on the Analyzer, every tick will be triggered once (that should be normal).
Is it wanted that way or is it a bug? How can I avoid this behavior?
Thanks,
Peter
Comment