public void SetTradingStrategy(TSCoreLib.Strategy.Strategy myStrategy) { myStrategy_ = myStrategy; myStrategy_.pricelist_dic_ = this.price_dic; myStrategy_.baseDate_ = this.startDate_; myStrategy_.InitializedPortfolio(this.currencyPair_list); }
public Strategy MakeStrategy(string strategyName) { Strategy newStrategy; switch (strategyName) { case "SMA Strategy": newStrategy = new MAStrategy(); break; default: newStrategy = new Strategy(); break; } return newStrategy; }