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

			return newStrategy;
		}