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
+9
View File
@@ -117,4 +117,13 @@ public class Skender_Stock
Assert.Equal(Math.Round((double)SK.Last().Kama!, 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void SMMA()
{
SMMA_Series QL = new(this.bars.Close, this.period, useNaN: false);
var SK = this.quotes.GetSmma(this.period);
Assert.Equal(Math.Round((double)SK.Last().Smma!, 8), Math.Round(QL.Last().v, 8));
}
}