← Zurück

StopLimit NotImplementedException при тестировании на рейл-тайме

Тестирую на рейл-тайме Создаю стоп-ордер:

			Order order = new Order
			{
				Type = OrderTypes.Conditional,
				Volume = volume,
				Security = this.Security,
				Price = price,
				Direction =  direction,
				Portfolio = this.Portfolio,
				StopCondition = new QuikStopCondition
				{
					Type = QuikStopConditionTypes.StopLimit,
					StopPrice = triggerPrice,
				},
			};

Успешно (без эксепшнов) его регистрирую. И через долю секунды получаю в логах: 24.08.2011 13:28:42.341 Trader_ProcessDataError: System.NotImplementedException: The method or operation is not implemented. at StockSharp.BusinessEntities.StopCondition.TryActivate(MarketDepth depth) at StockSharp.Algo.Testing.MarketEmulator.#=qgKvDWPOBB7ObhiaHP7jce7lpsu5eVqNQfQhu441i_$s=(Order #=qghTCyYil3z9plTAIH0h7ZQ==) at StockSharp.Algo.Testing.MarketEmulator.#=qaJMk0fYqrJJLimDSONRqFg==(SynchronizedDictionary2 #=qfRrq$bOd7VwETPAhe7MxVA==) at Ecng.Collections.CollectionHelper.SyncDo[TCollection](TCollection collection, Action1 action) at StockSharp.Algo.Testing.MarketEmulator.Emulate() at StockSharp.Algo.Testing.MarketEmulator.UpdateQuotes(IEnumerable1 marketDepths) at StockSharp.Algo.Testing.RealTimeEmulationTrader1.#=qnZb_iUxWIG3iMpl0nVUI0AOWio8OvyiTxlJhdUR8tbU=(IEnumerable1 #=qURBlmcAjMgnbMDq30VUTsQ==) at Ecng.Common.DelegateHelper.SafeInvoke(Action1 handler, T arg) at StockSharp.Algo.BaseTrader.#=q9x4U4UlSOkyZ3QjrnoQk8CciLYdldVF7rYtOidPxVPc=.#=qyxxb3dzH9Y7veo3ugDxAoQ==(IEnumerable`1 #=qBCmpU1le4ErdfKR6lMTszQ==)

PS. версия 3.2.6

War dieses Thema hilfreich?

Thema teilen

Kommentare (1)

Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen

Church
Church

Как нам известно, EmulationTrader не поддерживает стоп-ордера. :(