Exception in GetTheoreticalTrades
Уважаемые разработчики!
столкнулся с проблемой. При вызове
MarketDepth md = Trader.GetMarketDepth(RI);
md.GetTheoreticalTrades(OrderDirections.Buy, 5);
вылетает исключение:
System.ArgumentException was unhandled
Message=Портфель не был найден.
Parameter name: order
Source=StockSharp.Algo
ParamName=order
StackTrace:
at StockSharp.Algo.TraderHelper.#=q0Nqd_EYKUm_qSUT3KX_XPe01U$tp1RZ3oGIfSQxpens=(Order #=qob1Cy8VdI6c2Xz9lAJh2_Q==)
at StockSharp.Algo.Testing.MarketEmulator.#=qWdg4lAUxdmq5XUmbYi0Zrw==(Order #=qgtz9uuueTianlRNGoA_UHg==)
at StockSharp.Algo.Testing.MarketEmulator.RegisterOrder(Order order)
at StockSharp.Algo.TraderHelper.GetTheoreticalTrades(MarketDepth depth, Order order)
at StockSharp.Algo.TraderHelper.GetTheoreticalTrades(MarketDepth depth, OrderDirections orderDirection, Int32 volume, Decimal price)
at StockSharp.Algo.TraderHelper.GetTheoreticalTrades(MarketDepth depth, OrderDirections orderDirection, Int32 volume)
Буду благодарен за фикс!