KAMA w. SMA warmup

This commit is contained in:
Miha Kralj
2022-04-24 13:45:17 -07:00
parent 24793f432f
commit 6b9aa85aa1
3 changed files with 110 additions and 64 deletions
+11 -2
View File
@@ -1,7 +1,7 @@
using Xunit;
using System;
using Skender.Stock.Indicators;
using QuanTAlib;
using Skender.Stock.Indicators;
using Xunit;
namespace Validation;
@@ -108,4 +108,13 @@ public class Skender_Stock
Assert.Equal(Math.Round((double)SK.Last().Atrp!, 8), Math.Round(QL.Last().v, 8));
}
[Fact]
public void KAMA()
{
KAMA_Series QL = new(this.bars.Close, this.period, useNaN: false);
var SK = this.quotes.GetKama(this.period);
Assert.Equal(Math.Round((double)SK.Last().Kama!, 8), Math.Round(QL.Last().v, 8));
}
}