/// <summary> /// Создать <see cref="Acceleration"/>. /// </summary> /// <param name="ao">Чудесный осцилятор.</param> /// <param name="sma">Cкользящая средняя.</param> public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma) { if (ao == null) throw new ArgumentNullException("ao"); if (sma == null) throw new ArgumentNullException("sma"); Ao = ao; Sma = sma; }
/// <summary> /// Initializes a new instance of the <see cref="Acceleration"/>. /// </summary> /// <param name="ao">Awesome Oscillator.</param> /// <param name="sma">The moving average.</param> public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma) { if (ao == null) { throw new ArgumentNullException(nameof(ao)); } if (sma == null) { throw new ArgumentNullException(nameof(sma)); } Ao = ao; Sma = sma; }
/// <summary> /// Создать <see cref="Acceleration"/>. /// </summary> /// <param name="ao">Чудесный осцилятор.</param> /// <param name="sma">Cкользящая средняя.</param> public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma) : base(typeof(Candle)) { if (ao == null) { throw new ArgumentNullException("ao"); } if (sma == null) { throw new ArgumentNullException("sma"); } Ao = ao; Sma = sma; }
/// <summary> /// Initializes a new instance of the <see cref="Acceleration"/>. /// </summary> /// <param name="ao">Awesome Oscillator.</param> /// <param name="sma">The moving average.</param> public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma) { Ao = ao ?? throw new ArgumentNullException(nameof(ao)); Sma = sma ?? throw new ArgumentNullException(nameof(sma)); }