Exemplo n.º 1
0
        protected override void OnStarted()
        {
            _candleManager
            .WhenCandlesFinished(_series)
            .Do(ProcessCandle)
            .Apply(this);

            // запоминаем текущее положение относительно друг друга
            _isShortLessThenLong = ShortSma.GetCurrentValue() < LongSma.GetCurrentValue();

            base.OnStarted();
        }
Exemplo n.º 2
0
        protected override void OnStarted()
        {
            _candleManager
            .WhenCandlesFinished(_series)
            .Do(ProcessCandle)
            .Apply(this);

            // store current values for short and long
            _isShortLessThenLong = ShortSma.GetCurrentValue() < LongSma.GetCurrentValue();

            base.OnStarted();
        }