public void StochasticOscilatorKParam14() { var sof = new StochasticOscillatorKIndicator(_data, 14); TaTestsUtils.AssertDecimalEquals(sof.GetValue(0), 313 / 3.5); TaTestsUtils.AssertDecimalEquals(sof.GetValue(12), 1000 / 10.81); TaTestsUtils.AssertDecimalEquals(sof.GetValue(13), 57.8168); }
public void stochasticOscilatorKParam14() { StochasticOscillatorKIndicator sof = new StochasticOscillatorKIndicator(data, 14); Assert.AreEqual(sof.GetValue(0), 313M / 3.5M); Assert.AreEqual(sof.GetValue(12), 1000M / 10.81M); Assert.AreEqual(sof.GetValue(13), 57.816836262719703977798334880M); }