From 17c0e981864339d38ae4c9f85b0def9ad36f6cb7 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Wed, 21 Dec 2022 18:52:34 -0800 Subject: [PATCH] tests update --- Tests/Validations/TA_LIB.cs | 2 +- Tests/Validations/Trends/Skender.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Validations/TA_LIB.cs b/Tests/Validations/TA_LIB.cs index ae900fbe..d3b30387 100644 --- a/Tests/Validations/TA_LIB.cs +++ b/Tests/Validations/TA_LIB.cs @@ -214,7 +214,7 @@ public class TA_LIB [Fact] public void ADOSC() { - ADOSC_Series QL = new(bars, false); + ADOSC_Series QL = new(bars ); Core.AdOsc(inhigh, inlow, inclose, involume, 0, bars.Count - 1, TALIB, out int outBegIdx, out _); Assert.Equal(Math.Round(TALIB[TALIB.Length - outBegIdx - 1], 6, MidpointRounding.AwayFromZero), Math.Round(QL.Last().v, 6, MidpointRounding.AwayFromZero)); diff --git a/Tests/Validations/Trends/Skender.cs b/Tests/Validations/Trends/Skender.cs index 6d89cc78..32c14f53 100644 --- a/Tests/Validations/Trends/Skender.cs +++ b/Tests/Validations/Trends/Skender.cs @@ -453,7 +453,7 @@ public class Skender { WMA_Series QL = new(bars.Close, period, false); var SK = quotes.GetWma(period).Select(i => i.Wma.Null2NaN()!); - for (int i = QL.Length; i > skip; i--) + for (int i = QL.Length; i > skip*2; i--) { double QL_item = Math.Round(QL[i - 1].v, digits: digits); double SK_item = Math.Round(SK.ElementAt(i - 1), digits: digits);