public CentralPanelScrin1( AccountInfo accountInfo, TradeAccountInfo tradeAccountInfo, CurrentTrades currentTrades, UserStreamData userStreamData, TradeConfigRepository configRepository, Martingale martingale, KeyPanelScrin1 keyPanelScrin1, RightPanelScrin1 rightPanelScrin1) { StartButton = new StartButton(); StopButton = new StopButton(); TradeConfigurationView = new TradeConfigurationView(); this.accountInfo = accountInfo; this.tradeAccountInfo = tradeAccountInfo; this.currentTrades = currentTrades; this.userStreamData = userStreamData; this.configRepository = configRepository; this.martingale = martingale; this.keyPanelScrin1 = keyPanelScrin1; this.rightPanelScrin1 = rightPanelScrin1; SetConfigView(); SetPairs(); // получаем сохраненные конфиги для правых кнопок }
public Martingale(TradeHistoryRepository tradeHistoryRepository, TradeConfigRepository tradeConfigRepository, ExchangeInfo exchangeInfo) { this.tradeHistoryRepository = tradeHistoryRepository; this.tradeConfigRepository = tradeConfigRepository; this.exchangeInfo = exchangeInfo; logService = new LogService(); }
public TradeAccountInfo(APIKeyRepository keyRepo, TradeConfigRepository configRepository, TradeRepository tradeRepository) { this.keyRepo = keyRepo; this.configRepository = configRepository; this.tradeRepository = tradeRepository; logService = new LogService(); logService.CreateLogFile("TradeAccountInfo"); }
public RightPanelScrin1() { configRepository = new TradeConfigRepository(); BTCUSD_LONG = new BackgroundButton() { Name = ButtonName.BTCUSD_LONG }; BTCUSD_SHORT = new BackgroundButton() { Name = ButtonName.BTCUSD_SHORT }; ETHUSD_SHORT = new BackgroundButton() { Name = ButtonName.ETHUSD_SHORT }; colorButtons = new List <IColorButton>(); colorButtons.Add(BTCUSD_LONG); colorButtons.Add(BTCUSD_SHORT); colorButtons.Add(ETHUSD_SHORT); InicializeColor(); }
public CurrentGridStatistics(TradeConfigRepository tradeConfigRepository) { this.tradeConfigRepository = tradeConfigRepository; }