Ejemplo n.º 1
0
 public Martingale(TradeHistoryRepository tradeHistoryRepository, TradeConfigRepository tradeConfigRepository, ExchangeInfo exchangeInfo)
 {
     this.tradeHistoryRepository = tradeHistoryRepository;
     this.tradeConfigRepository  = tradeConfigRepository;
     this.exchangeInfo           = exchangeInfo;
     logService = new LogService();
 }
Ejemplo n.º 2
0
 public CentralPanelScrinCalculator(Martingale martingale, CurrentGridStatistics currentGridStatistics, TradeHistoryRepository tradeHistoryRepository)
 {
     this.martingale             = martingale;
     this.currentGridStatistics  = currentGridStatistics;
     this.tradeHistoryRepository = tradeHistoryRepository;
     GeneralSettingsView         = new GeneralSettingsView();
     BackTestResultView          = new BackTestResultView();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 public TradeHistoryBuffer(TradeHistoryRepository repository)
 {
     this.repository = repository;
     TradeHistories  = new List <TradeHistory>();
 }