I have a strategy attached to my primary chart and the symbol is NQ. I am entering a position on MNQ based on certain data points on my main NQ chart. When I do this in Playback I do not see any positions being entered
Sample code :
protected override void OnStateChange ()
{
else if (State == State.Configure)
{
AddVolumetric(Instrument.FullName, BarsPeriodType.Second, TimeFrame, VolumetricDeltaType.BidAsk, 1);
AddDataSeries(Data.BarsPeriodType.Tick, 1);
AddDataSeries("MNQ 09-23", BarsPeriodType.Minute, 1);
}
}
protected override void OnBarUpdate() {
if (BarsInprogress == 0) {
//if certain conditions on NQ chart are met enter long or short on MNQ
EnterLong(3, QUANTITY, "long");
}
}
The code above does not error in Playback . If I change EnterLong(3...) to just EnterLong(QUANTITY) I see it take a position on the current chart NQ.
Any help will be appreciated. Do I have to download the same day data for MNQ ?

Comment