Esempio n. 1
0
 public ExponentialMovingAverageFunction(int period)
 {
     this._period = period;
     this._ema    = null;
     this._c      = 2m / (period + 1);
     this._sma    = new SimpleMovingAverageFunction(period);
 }
Esempio n. 2
0
 public DoubleSimpleMovingAverageFunction(int period1, int period2)
 {
     this._sma1 = new SimpleMovingAverageFunction(period1);
     this._sma2 = new SimpleMovingAverageFunction(period2);
 }
Esempio n. 3
0
 public RelativeStrengthIndexFunction(int period)
 {
     this._U = new SimpleMovingAverageFunction(period);
     this._D = new SimpleMovingAverageFunction(period);
 }