I used the SampleMultiInstrument to build a strategy but it doesn't work (I get no trades).
I added two instruments:
Add("ES 03-09", PeriodType.Minute, 1);
Add("NQ 03-09", PeriodType.Minute, 1);
Then in OnBarUpdate() I used (I want to trade only the primary bar object, which in my case is SPY 1min)
if (BarsInProgress != 0)
return;
Then I create my DataSeries (from the two added instruments) and so on (maybe it's here my mistake)?
The the conditions, for instance:
if (Signal1[0] < Low && Signal2[0] > 0.5)
{
EnterLong(DefaultQuantity, "Long");
}
(Signal1 and Signal2 are custom DataSeries generated in OnBarUpdate).
What is wrong?
Many thanks

Comment