public MarketDepthSpreadAnaliserArb() { Tabs = new List <BotTabSimple>(); MaxSpread = 0.005m; maFast = new MovingAverageSimle() { Lenth = 5 }; maSlow = new MovingAverageSimle() { Lenth = 20 }; }
private void MarketDepthSpreadAnaliser_CandleFinishedEvent(List <Candle> candles) { CalcChanges(); if (CanChange) { maFast = new MovingAverageSimle() { Lenth = 5 }; maSlow = new MovingAverageSimle() { Lenth = 20 }; } }
private void MarketDepthSpreadAnaliser_PositionOpeningSuccesEvent(Position obj) { foreach (var el in _tabs) { Position p = el._tab.PositionsOpenAll.FindLast(x => x.Number == obj.Number); if (p != null) { el.Open = obj.EntryPrice; } } maFast = new MovingAverageSimle() { Lenth = 5 }; maSlow = new MovingAverageSimle() { Lenth = 20 }; }