i like to print the delta only for each minute bar but i got it for all ticks, whats wrong?
...
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Tick, 1);
}
else if (State == State.DataLoaded)
{
cumulativeDelta = OrderFlowCumulativeDelta(CumulativeDeltaType.BidAs k, CumulativeDeltaPeriod.Bar, 0);
}
protected override void OnBarUpdate()
{
if (State == State.Historical)
{
return;
}
Print("Delta Close: " + cumulativeDelta.DeltaClose[0]);
}
Comment