protected override void OnInit() { this.entries.Clear(); this.exits.Clear(); this.moneyManagers.Clear(); this.riskManagers.Clear(); this.HeHpDewVKD = Activator.CreateInstance(this.CX2pXhZQGN.GetType()) as CrossEntry; this.A6MpF2380O = Activator.CreateInstance(this.hP7pPwnfQ7.GetType()) as CrossExit; this.HeHpDewVKD.StrategyBase = (StrategyBase)this; this.A6MpF2380O.StrategyBase = (StrategyBase)this; this.SetProxyProperties((object)this.HeHpDewVKD, (object)this.CX2pXhZQGN); this.SetProxyProperties((object)this.A6MpF2380O, (object)this.hP7pPwnfQ7); this.HeHpDewVKD.Init(); this.A6MpF2380O.Init(); this.ayRpJCTRPY.Init(); foreach (Instrument instrument in (FIXGroupList)this.marketManager.Instruments) { this.activeInstruments.Add(instrument); Entry entry = Activator.CreateInstance(this.iTOpL59SMK.GetType()) as Entry; Exit exit = Activator.CreateInstance(this.KpSp3MfDuQ.GetType()) as Exit; MoneyManager moneyManager = Activator.CreateInstance(this.vicpsU5DyG.GetType()) as MoneyManager; RiskManager riskManager = Activator.CreateInstance(this.m8Hp4wyAlm.GetType()) as RiskManager; entry.StrategyBase = (StrategyBase)this; exit.StrategyBase = (StrategyBase)this; moneyManager.StrategyBase = (StrategyBase)this; riskManager.StrategyBase = (StrategyBase)this; entry.Instrument = instrument; exit.Instrument = instrument; moneyManager.Instrument = instrument; riskManager.Instrument = instrument; this.SetProxyProperties((object)entry, (object)this.iTOpL59SMK); this.SetProxyProperties((object)exit, (object)this.KpSp3MfDuQ); this.SetProxyProperties((object)moneyManager, (object)this.vicpsU5DyG); this.SetProxyProperties((object)riskManager, (object)this.m8Hp4wyAlm); entry.Init(); exit.Init(); moneyManager.Init(); riskManager.Init(); this.entries.Add(instrument, entry); this.exits.Add(instrument, exit); this.moneyManagers.Add(instrument, moneyManager); this.riskManagers.Add(instrument, riskManager); } }
protected override void OnInit() { this.entries.Clear(); this.exits.Clear(); this.moneyManagers.Clear(); this.riskManagers.Clear(); this.HeHpDewVKD = Activator.CreateInstance(this.CX2pXhZQGN.GetType()) as CrossEntry; this.A6MpF2380O = Activator.CreateInstance(this.hP7pPwnfQ7.GetType()) as CrossExit; this.HeHpDewVKD.StrategyBase = (StrategyBase) this; this.A6MpF2380O.StrategyBase = (StrategyBase) this; this.SetProxyProperties((object) this.HeHpDewVKD, (object) this.CX2pXhZQGN); this.SetProxyProperties((object) this.A6MpF2380O, (object) this.hP7pPwnfQ7); this.HeHpDewVKD.Init(); this.A6MpF2380O.Init(); this.ayRpJCTRPY.Init(); foreach (Instrument instrument in (FIXGroupList) this.marketManager.Instruments) { this.activeInstruments.Add(instrument); Entry entry = Activator.CreateInstance(this.iTOpL59SMK.GetType()) as Entry; Exit exit = Activator.CreateInstance(this.KpSp3MfDuQ.GetType()) as Exit; MoneyManager moneyManager = Activator.CreateInstance(this.vicpsU5DyG.GetType()) as MoneyManager; RiskManager riskManager = Activator.CreateInstance(this.m8Hp4wyAlm.GetType()) as RiskManager; entry.StrategyBase = (StrategyBase) this; exit.StrategyBase = (StrategyBase) this; moneyManager.StrategyBase = (StrategyBase) this; riskManager.StrategyBase = (StrategyBase) this; entry.Instrument = instrument; exit.Instrument = instrument; moneyManager.Instrument = instrument; riskManager.Instrument = instrument; this.SetProxyProperties((object) entry, (object) this.iTOpL59SMK); this.SetProxyProperties((object) exit, (object) this.KpSp3MfDuQ); this.SetProxyProperties((object) moneyManager, (object) this.vicpsU5DyG); this.SetProxyProperties((object) riskManager, (object) this.m8Hp4wyAlm); entry.Init(); exit.Init(); moneyManager.Init(); riskManager.Init(); this.entries.Add(instrument, entry); this.exits.Add(instrument, exit); this.moneyManagers.Add(instrument, moneyManager); this.riskManagers.Add(instrument, riskManager); } }