ADL with tests

This commit is contained in:
Miha Kralj
2022-11-07 09:43:33 -08:00
parent 7456b4a401
commit af33331d8c
3 changed files with 64 additions and 0 deletions
+9
View File
@@ -99,6 +99,15 @@ public class Skender_Stock
Assert.Equal(Math.Round((double)SK.Last().Atr!, 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void ADL()
{
ADL_Series QL = new(this.bars, false);
var SK = this.quotes.GetAdl();
Assert.Equal(Math.Round((double)SK.Last().Adl!, 6), Math.Round(QL.Last().v, 6));
}
[Fact]
public void CCI()
{