KAMA, SMMA, ZLMA

This commit is contained in:
Miha Kralj
2022-04-24 16:53:16 -07:00
parent 6b9aa85aa1
commit 54a7e4a196
9 changed files with 238 additions and 63 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ public class HMA_Series : TSeries
this._buf1.Add(data.v);
this._buf2.Add(data.v);
}
if (this._buf1.Count > (int)(Math.Ceiling((double)this._p / 2)))
if (this._buf1.Count > (int)((double)this._p / 2))
{
this._buf1.RemoveAt(0);
}