/// <summary> /// Init every time upon starting. /// </summary> public bool Initialize() { _account.Initialize(this); _tradeEntities.Initialize(); _dataDelivery.QuoteUpdateEvent += new QuoteUpdateDelegate(_dataDelivery_QuoteUpdateEvent); _dataDelivery.DataHistoryUpdateEvent += new DataHistoryUpdateDelegate(_dataDelivery_DataHistoryUpdateEvent); ChangeOperationalState(OperationalStateEnum.Operational); return(true); }