This commit is contained in:
Miha Kralj
2022-04-29 12:35:45 -07:00
parent 50ae1d4917
commit a6ed7c78eb
6 changed files with 127 additions and 2 deletions
+9
View File
@@ -152,4 +152,13 @@ public class Skender_Stock
Assert.Equal(Math.Round((double)SK.Last().Rsi!, 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void ALMA()
{
ALMA_Series QL = new(this.bars.Close, this.period, useNaN: false);
var SK = this.quotes.GetAlma(this.period);
Assert.Equal(Math.Round((double)SK.Last().Alma!, 8), Math.Round(QL.Last().v, 8));
}
}