Compatibility with TALIB

This commit is contained in:
Miha Kralj
2022-11-22 18:32:58 -08:00
parent ae168ee345
commit 38d0c08b4e
9 changed files with 644 additions and 119 deletions
+3 -1
View File
@@ -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
{