A few days ago I started implementing my custom strategy from another Broker to NinjaTrader. I'm still very new to the editor and I'm always learning something new. Now I got stuck at a problem that I can't seem to solve.
Please correct me if I'm wrong here.
I have two time frames in my strategy. 1. 1-Tick resolution and 2. 1-Minute resolution. I add the strategy to a 1 min chart so I added a tick data series to the state.Configure.
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Tick, 1);
}
On the OnBarUpdate I want to add the ask and bid size to a dictionary. On both minute and tick resolution the ask and bid size is the same size. Why is that?
if (BarsInProgress == 1) //tick resolution
{
//logic
Print("ask: " + GetCurrentAskVolume(1));
Print("bid: " + GetCurrentBidVolume(1));
}
Is it because of replay or did I do something wrong here? Not only it happens on tick resolution but also on minute resolution.
Best regards,
Nico

Comment