Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RangeActionVerificationIndex"/>.
 /// </summary>
 public RangeActionVerificationIndex()
 {
     ShortSma = new SimpleMovingAverage();
     LongSma  = new SimpleMovingAverage();
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardDeviation"/>.
 /// </summary>
 public StandardDeviation()
 {
     _sma   = new SimpleMovingAverage();
     Length = 10;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DetrendedPriceOscillator"/>.
 /// </summary>
 public DetrendedPriceOscillator()
 {
     _sma   = new SimpleMovingAverage();
     Length = 3;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QStick"/>.
 /// </summary>
 public QStick()
 {
     _sma   = new SimpleMovingAverage();
     Length = 15;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeanDeviation"/>.
 /// </summary>
 public MeanDeviation()
 {
     Sma    = new SimpleMovingAverage();
     Length = 5;
 }
Пример #7
0
 /// <summary>
 /// Создать <see cref="RangeActionVerificationIndex"/>.
 /// </summary>
 public RangeActionVerificationIndex()
     : base(typeof(decimal))
 {
     ShortSma = new SimpleMovingAverage();
     LongSma  = new SimpleMovingAverage();
 }
Пример #8
0
 /// <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();
 }
Пример #9
0
 /// <summary>
 /// Создать <see cref="StandardDeviation"/>.
 /// </summary>
 public StandardDeviation()
     : base(typeof(decimal))
 {
     _sma   = new SimpleMovingAverage();
     Length = 10;
 }
Пример #10
0
 /// <summary>
 /// Создать <see cref="MeanDeviation"/>.
 /// </summary>
 public MeanDeviation()
     : base(typeof(decimal))
 {
     Sma    = new SimpleMovingAverage();
     Length = 5;
 }
Пример #11
0
 /// <summary>
 /// —оздать <see cref="QStick"/>.
 /// </summary>
 public QStick()
     : base(typeof(Candle))
 {
     _sma   = new SimpleMovingAverage();
     Length = 15;
 }