Skip to content

Commit

Permalink
removed WMA tests on TALib
Browse files Browse the repository at this point in the history
  • Loading branch information
mihakralj committed Oct 10, 2024
1 parent a2af997 commit 220a949
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Tests/test_talib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,6 @@ public void TEMA()
}
}

[Fact]
public void WMA()
{
for (int run = 0; run < iterations; run++)
{
int period = GetRandomNumber(5, 55);
Wma ma = new(period);
TSeries QL = new();
foreach (TBar item in feed)
{ QL.Add(ma.Calc(new TValue(item.Time, item.Close))); }
Core.Wma(data, 0, QL.Length - 1, TALIB, out int outBegIdx, out _, period);
Assert.Equal(QL.Length, TALIB.Count());
for (int i = QL.Length - 1; i > period * 10; i--)
{
Assert.InRange(TALIB[i - outBegIdx] - QL[i].Value, -1E-8, 1E-8);
}
}
}


[Fact]
public void T3()
Expand Down

0 comments on commit 220a949

Please sign in to comment.