KAMA, SMMA, ZLEMA

This commit is contained in:
Miha Kralj
2022-04-24 17:29:11 -07:00
parent 6b9aa85aa1
commit 0b57a75eb9
12 changed files with 284 additions and 69 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);
}