public void WithSmaDefault()
        {
            var acceleration = new AccelerationDecelerationIndicator(_series);

            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(0), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(1), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(2), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(3), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(4), 0);
        }
        public void withSma()
        {
            AccelerationDecelerationIndicator acceleration = new AccelerationDecelerationIndicator(series);

            Assert.AreEqual(acceleration.GetValue(0), 0);
            Assert.AreEqual(acceleration.GetValue(1), 0);
            Assert.AreEqual(acceleration.GetValue(2), 0);
            Assert.AreEqual(acceleration.GetValue(3), 0);
            Assert.AreEqual(acceleration.GetValue(4), 0);
        }
        public void CalculateWithSma2AndSma3()
        {
            var acceleration = new AccelerationDecelerationIndicator(_series, 2, 3);

            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(0), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(1), 0);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(2), 0.08333333333);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(3), 0.41666666666);
            TaTestsUtils.AssertDecimalEquals(acceleration.GetValue(4), -2);
        }
        public void CalculateWithSma2AndSma3()
        {
            AccelerationDecelerationIndicator acceleration = new AccelerationDecelerationIndicator(series, 2, 3);

            Assert.AreEqual(acceleration.GetValue(0), 0);
            Assert.AreEqual(acceleration.GetValue(1), 0);
            Assert.AreEqual(acceleration.GetValue(2), 0.0833333333333333333333333335M);
            Assert.AreEqual(acceleration.GetValue(3), 0.4166666666666666666666666665M);
            Assert.AreEqual(acceleration.GetValue(4), -2);
        }