Code Quality

This commit is contained in:
Miha Kralj
2022-11-11 11:42:06 -08:00
56 changed files with 48 additions and 268 deletions
-3
View File
@@ -1,5 +1,3 @@
using Xunit;
using System;
using QuanTAlib;
@@ -120,5 +118,4 @@ public class PandasTA
Assert.Equal(System.Math.Round((double)pta.tail(1), 7), Math.Round(QL.Last().v, 7));
}
*/
}
-2
View File
@@ -3,7 +3,6 @@ using QuanTAlib;
using Skender.Stock.Indicators;
using Xunit;
namespace Validation;
public class Skender_Stock
{
@@ -177,7 +176,6 @@ public class Skender_Stock
Assert.Equal(Math.Round((double)SK.Last().ZScore!, 8), Math.Round(QL.Zscore.Last().v, 8));
}
[Fact]
public void RSI()
{
-5
View File
@@ -75,7 +75,6 @@ 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 SMA()
{
@@ -215,11 +214,8 @@ public class TA_LIB
Assert.Equal(Math.Round(outUpper[outUpper.Length - outBegIdx - 1], 7), Math.Round(QL.Upper.Last().v, 7));
Assert.Equal(Math.Round(outMiddle[outMiddle.Length - outBegIdx - 1], 7), Math.Round(QL.Mid.Last().v, 7));
Assert.Equal(Math.Round(outLower[outLower.Length - outBegIdx - 1], 7), Math.Round(QL.Lower.Last().v, 7));
}
[Fact]
public void HL2()
{
@@ -255,5 +251,4 @@ public class TA_LIB
Assert.Equal(Math.Round(this.TALIB[this.TALIB.Length - outBegIdx - 1], 8), Math.Round(QL.Last().v, 8));
}
}