mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
Compatibility with TALIB
This commit is contained in:
@@ -42,7 +42,9 @@ public class EMA_Series : Single_TSeries_Indicator
|
||||
if (this.Count < this._p)
|
||||
{
|
||||
Add_Replace(_buffer, TValue.v, update);
|
||||
_ema = _buffer.Average();
|
||||
_ema = 0;
|
||||
for (int i = 0; i < _buffer.Count; i++) { _ema += _buffer[i]; }
|
||||
_ema /= _buffer.Count;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user