If I have two identical instruments in a multi-strategy (see below). Entering a EnterLong on PLUG (even though I specify the index as 0,) creates identical long on index 3 that has the same name as PLUG, but different index. EnterLong(0, 100, "PLug1") creates two position one for 0 and another for bar 3.
AddDataSeries("PLUG", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
AddDataSeries("AAPL", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
AddDataSeries("XOM", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
AddDataSeries("PLUG", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
Regards,
Comment