SampleEmulationTesting версия 4.0.8

SampleEmulationTesting версия 4.0.8
Atom
12/11/2011
russ


При запуске примера тупо падает в строчке
Code

// создаем заявку
var order = this.CreateOrder(direction, base.Security.GetMarketPrice(direction), base.Volume);




Thanks:


Alexander

Avatar
Date: 12/11/2011
Reply


Полный стэктрэйс привидите
Thanks:

russ

Avatar
Date: 12/11/2011
Reply


Alexander Mukhanchikov
Полный стэктрэйс привидите

Code
в StockSharp.BusinessEntities.Unit.CreateResult(Unit u1, Unit u2, Func`3 operation, Func`3 percentOperation)
   в StockSharp.BusinessEntities.Unit.op_Subtraction(Unit u1, Unit u2)
   в StockSharp.Algo.TraderHelper.GetMarketPrice(Security security, OrderDirections direction, Unit priceDelta, MarketPriceTypes priceType)
   в SampleEmulationTesting.SmaStrategy.OnProcess() в E:\Market\S#\4.0.8\Samples\Testing\SampleEmulationTesting\SmaStrategy.cs:строка 93
Thanks:

Mikhail Sukhov

Avatar
Date: 12/11/2011
Reply


Будет фикс. Пока нужно писать так:

Code

// создаем заявку
var order = this.CreateOrder(direction, base.Security.GetMarketPrice(direction), base.Volume, new Unit());
Thanks:


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy