EmulationStrategyManager + ActionStrategy

EmulationStrategyManager + ActionStrategy
Atom
5/20/2011
roman


Запускаю с помощью EmulationStrategyManager ActionStrategy.

Код стратегии такой:

    public class TestActionStrategy : ActionStrategy
    {
        public TestActionStrategy()
        {
        }
        protected override void OnRunning()
        {
            base.When(base.Security.LastTradePriceLess(new Unit(0.01m))).Do(new Action(Test));
            base.OnRunning();
        }
        void Test()
        {
            decimal price = Security.LastTrade.Price;
        }
    }

Процедура Test срабатывает и price равен 77.25 Ожидалось что она сработает когда price будет меньше 0.01 [sad] Версия 3.1.9




Thanks:




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

loading
clippy