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