Пример #1
0
        public override void Assign(IndicatorBase ind)
        {
            base.Assign(ind);
            MinMaxIndicator mima = ind as MinMaxIndicator;

            if (mima != null)
            {
                Mode = mima.Mode;
            }
        }
Пример #2
0
        public override void Calculate()
        {
            MinIndicator = new MinMaxIndicator()
            {
                Ticker = Ticker, Length = Length, Mode = MinMaxIndicatorMode.Min, SuppressUpdateOnDataChanged = true
            };
            MaxIndicator = new MinMaxIndicator()
            {
                Ticker = Ticker, Length = Length, Mode = MinMaxIndicatorMode.Max, SuppressUpdateOnDataChanged = true
            };
            MaIndicator = new MaIndicator()
            {
                InputData = Result, Length = Length, Source = IndicatorSource.StochK, SuppressUpdateOnDataChanged = true
            };

            base.Calculate();
        }