28 private readonly
int _period;
29 private readonly decimal _volumeFactor;
43 _volumeFactor = volumeFactor;
54 : this($
"DEMA({period})", period, volumeFactor)
61 public override bool IsReady => Samples > 2 * (_period - 1);
78 return _ema1.Current.Value;
80 _ema2.Update(_ema1.Current);
82 return (_volumeFactor + 1) * _ema1.Current.Value - _volumeFactor * _ema2.Current.Value;