Подскажите, поддерживает ли EmulationTrader стоп-ордера? При попытке зарегистрировать ордер получаю NotImplementedException в StockSharp.BusinessEntities.dll!StockSharp.BusinessEntities.StopCondition.TryActivate(StockSharp.BusinessEntities.MarketDepth depth) + 0x37 bytes
Создаю ордер так:
private Order CreateStopLimit(OrderDirections Direct, decimal stopPrice, decimal ProtectiveSpread, int Vol)
{
return new Order
{
Type = OrderTypes.Conditional,
Volume = Vol,
Security = this.Security,
Portfolio = this.Portfolio,
Direction = Direct,
StopCondition = new QuikStopCondition
{
Type = QuikStopConditionTypes.StopLimit,
StopPrice = stopPrice,
Spread = ProtectiveSpread,
},
};
}
Регистрировать пытался обоими методами из сэмплов. И так:
// регистрируем заявку (обычным способом - лимитированной заявкой)
this.RegisterOrder(_shortOrder);
И так:
// регистрируем заявку (через котирование)
var strategy = new MarketQuotingStrategy(_shortOrder, new Unit(), new Unit());
base.ChildStrategies.Add(strategy);
Оба выдают этот exception.