public CUserDealsPosBoxASTS(IClientUserDealsPosBox client) : base(client, CBaseVMCalc.CreateMOEXVMCalc(), bBuildNonSavedPositionsFromDealsLog: true) { _onlineDetector = new COnlineDetector(client.TriggerRecalcAllBots, EnmBotEventCode.OnUserDealOnline, parTimeAfterUpdateMs: 500, parTimeAfterObjectCreated: 10000); }
public CUserOrderBoxASTS(IClientUserOrdeBoxASTS client) { _client = client; mxListRawOrders = new Mutex(); _onlineDetector = new COnlineDetector(_client.TriggerRecalcAllBots, EnmBotEventCode.OnUserOrdersOnline, parTimeAfterUpdateMs: 500, parTimeAfterObjectCreated: 10000); }
public CPosistionsBoxASTS(IClientPositionsBoxASTS client) : base(client) { _client = client; _instruments = client.Instruments; _alarmer = client; _guiBox = client.GUIBox; //TODO to base class DictPos = new Dictionary <string, CRawPosition>(); foreach (var kvp in _instruments) { DictPos[kvp.instrument] = new CRawPosition(); } _onlineDetector = new COnlineDetector(client.TriggerRecalcAllBots, EnmBotEventCode.OnPositionOnline, parTimeAfterUpdateMs: 500, parTimeAfterObjectCreated: 8000); CreateListPos(_client.StockExchId, _instruments); }