I know you can disable a currently running strategy; take for instance you have two strategies called SimpleMA and ComplicatedMA and you want to disable complicated from simple.
Account.Strategies[i].Disable(); //i is the index in the StrategiesCollection of your ComplicatedMA strategy
Period test = new Period(PeriodType.Minute,1,MarketDataType.Last); DoNothing nts = new DoNothing(); nts.Account = Acct; nts.SetBarsPeriodInstrument(test,position.Instrument); Acct.Strategies.Add(nts); InstrumentDictionary.Add(position.Instrument.FullName,Acct.Strategies.Count-1); InstrumentNames.Add(position.Instrument.FullName);
Is there anyway I can do such a thing? Maybe something I'm missing?

Comment