/// <summary> /// Initializes a new instance of the <see cref="RangeActionVerificationIndex"/>. /// </summary> public RangeActionVerificationIndex() { ShortSma = new SimpleMovingAverage(); LongSma = new SimpleMovingAverage(); }
/// <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)); }
/// <summary> /// Initializes a new instance of the <see cref="StandardDeviation"/>. /// </summary> public StandardDeviation() { _sma = new SimpleMovingAverage(); Length = 10; }
/// <summary> /// Initializes a new instance of the <see cref="DetrendedPriceOscillator"/>. /// </summary> public DetrendedPriceOscillator() { _sma = new SimpleMovingAverage(); Length = 3; }
/// <summary> /// Initializes a new instance of the <see cref="QStick"/>. /// </summary> public QStick() { _sma = new SimpleMovingAverage(); Length = 15; }
/// <summary> /// Initializes a new instance of the <see cref="MeanDeviation"/>. /// </summary> public MeanDeviation() { Sma = new SimpleMovingAverage(); Length = 5; }
/// <summary> /// Создать <see cref="RangeActionVerificationIndex"/>. /// </summary> public RangeActionVerificationIndex() : base(typeof(decimal)) { ShortSma = new SimpleMovingAverage(); LongSma = new SimpleMovingAverage(); }
/// <summary> /// Initializes a new instance of the <see cref="AwesomeOscillator"/>. /// </summary> /// <param name="longSma">Long moving average.</param> /// <param name="shortSma">Short moving average.</param> public AwesomeOscillator(SimpleMovingAverage longSma, SimpleMovingAverage shortSma) { ShortMa = shortSma ?? throw new ArgumentNullException(nameof(shortSma)); LongMa = longSma ?? throw new ArgumentNullException(nameof(longSma)); MedianPrice = new MedianPrice(); }
/// <summary> /// Создать <see cref="StandardDeviation"/>. /// </summary> public StandardDeviation() : base(typeof(decimal)) { _sma = new SimpleMovingAverage(); Length = 10; }
/// <summary> /// Создать <see cref="MeanDeviation"/>. /// </summary> public MeanDeviation() : base(typeof(decimal)) { Sma = new SimpleMovingAverage(); Length = 5; }
/// <summary> /// —оздать <see cref="QStick"/>. /// </summary> public QStick() : base(typeof(Candle)) { _sma = new SimpleMovingAverage(); Length = 15; }