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