ADO with tests (and fixed abstract)

This commit is contained in:
Miha Kralj
2022-11-07 11:49:33 -08:00
parent af33331d8c
commit d90e1ee9f1
3 changed files with 62 additions and 4 deletions
+8
View File
@@ -109,6 +109,14 @@ public class TA_LIB
Assert.Equal(Math.Round(this.TALIB[this.TALIB.Length - outBegIdx - 1], 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void ADO()
{
ADO_Series QL = new(this.bars, false);
Core.AdOsc(this.inhigh, this.inlow, this.inclose, this.involume, 0, this.bars.Count - 1, this.TALIB, out int outBegIdx, out _);
Assert.Equal(Math.Round(this.TALIB[this.TALIB.Length - outBegIdx - 1], 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void ATR()