public TPManager(CurrencyPair pair, Strategies.Strategy strategy) { this.pair = pair; invokeQueue = new TSList <InvokePair>(); if (pair.BaseCurrency == "USDT" && pair.QuoteCurrency == "BTC") { strategy = new Strategies.BaseTrendMonitor(pair); } else { this.strategy = strategy; } }
public TPManager(CurrencyPair pair) { this.pair = pair; invokeQueue = new TSList <InvokePair>(); switch (pair.BaseCurrency) { case "USDT": strategy = new Strategies.BaseTrendMonitor(pair); break; default: strategy = new Strategies.MeanRevADX(pair); break; } }