/// <summary> /// Initializes a new instance of the <see cref="VolumeWeightedMovingAverage"/>. /// </summary> public Trix() { _ema1 = new ExponentialMovingAverage(); _ema2 = new ExponentialMovingAverage(); _ema3 = new ExponentialMovingAverage(); _roc = new RateOfChange { Length = 1 }; }
/// <summary> /// Initializes a new instance of the <see cref="MovingAverageConvergenceDivergence"/>. /// </summary> /// <param name="longMa">Long moving average.</param> /// <param name="shortMa">Short moving average.</param> public MovingAverageConvergenceDivergence(ExponentialMovingAverage longMa, ExponentialMovingAverage shortMa) { if (longMa == null) { throw new ArgumentNullException(nameof(longMa)); } if (shortMa == null) { throw new ArgumentNullException(nameof(shortMa)); } ShortMa = shortMa; LongMa = longMa; }
/// <summary> /// Создать <see cref="ChaikinVolatility"/>. /// </summary> public ChaikinVolatility() { Ema = new ExponentialMovingAverage(); Roc = new RateOfChange(); }
/// <summary> /// Создать <see cref="MovingAverageConvergenceDivergenceHistogram"/>. /// </summary> /// <param name="macd">Схождение/расхождение скользящих средних.</param> /// <param name="signalMa">Сигнальная скользящая средняя.</param> public MovingAverageConvergenceDivergenceHistogram(MovingAverageConvergenceDivergence macd, ExponentialMovingAverage signalMa) : base(macd, signalMa) { }
/// <summary> /// Создать <see cref="MovingAverageConvergenceDivergenceSignal"/>. /// </summary> /// <param name="macd">Схождение/расхождение скользящих средних.</param> /// <param name="signalMa">Сигнальная скользящая средняя.</param> public MovingAverageConvergenceDivergenceSignal(MovingAverageConvergenceDivergence macd, ExponentialMovingAverage signalMa) : base(macd, signalMa) { Macd = macd; SignalMa = signalMa; Mode = ComplexIndicatorModes.Sequence; }