public Martingale(TradeHistoryRepository tradeHistoryRepository, TradeConfigRepository tradeConfigRepository, ExchangeInfo exchangeInfo) { this.tradeHistoryRepository = tradeHistoryRepository; this.tradeConfigRepository = tradeConfigRepository; this.exchangeInfo = exchangeInfo; logService = new LogService(); }
public CentralPanelScrinCalculator(Martingale martingale, CurrentGridStatistics currentGridStatistics, TradeHistoryRepository tradeHistoryRepository) { this.martingale = martingale; this.currentGridStatistics = currentGridStatistics; this.tradeHistoryRepository = tradeHistoryRepository; GeneralSettingsView = new GeneralSettingsView(); BackTestResultView = new BackTestResultView(); }
public TradesHistory(string pair, DateTime?dateStart, DateTime?dateEnd, TradeHistoryRepository repository) { LoadStateEvent = delegate { }; this.pair = pair.ToUpper(); this.dateStart = dateStart; this.dateEnd = dateEnd; this.repository = repository; tradeHistoryBuffer = new TradeHistoryBuffer(repository); fromId = GetFromId(); }
public TradeHistoryBuffer(TradeHistoryRepository repository) { this.repository = repository; TradeHistories = new List <TradeHistory>(); }