コード例 #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
ファイル: QStick.cs プロジェクト: teddyDeveloper/Testing
 /// <summary>
 /// Initializes a new instance of the <see cref="QStick"/>.
 /// </summary>
 public QStick()
 {
     _sma   = new SimpleMovingAverage();
     Length = 15;
 }
コード例 #6
0
ファイル: MeanDeviation.cs プロジェクト: simiden/StockSharp
 /// <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;
 }