public void ShouldBeZeroWhenTimeFrameIs1()
        {
            var se = new StandardErrorIndicator(new ClosePriceIndicator(_data), 1);

            TaTestsUtils.AssertDecimalEquals(se.GetValue(1), 0);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(3), 0);
        }
        public void shouldBeZeroWhenTimeFrameIs1()
        {
            StandardErrorIndicator se = new StandardErrorIndicator(new ClosePriceIndicator(data), 1);

            Assert.AreEqual(se.GetValue(1), 0);
            Assert.AreEqual(se.GetValue(3), 0);
        }
        public void UsingTimeFrame5UsingClosePrice()
        {
            var se = new StandardErrorIndicator(new ClosePriceIndicator(_data), 5);

            TaTestsUtils.AssertDecimalEquals(se.GetValue(0), 0);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(1), 3.5355);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(2), 4.714);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(3), 5.5902);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(4), 6.3246);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(5), 4.5607);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(6), 2.8284);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(7), 2.1909);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(8), 2.1909);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(9), 2.8284);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(10), 4.5607);
            TaTestsUtils.AssertDecimalEquals(se.GetValue(11), 6.3246);
        }
        public void usingTimeFrame5UsingClosePrice()
        {
            StandardErrorIndicator se = new StandardErrorIndicator(new ClosePriceIndicator(data), 5);

            Assert.AreEqual(se.GetValue(0), 0);
            Assert.AreEqual(se.GetValue(1), 3.5355339059327376220042218103M);
            Assert.AreEqual(se.GetValue(2), 4.714045207910316829338962414M);
            Assert.AreEqual(se.GetValue(3), 5.590169943749474241022934172M);
            Assert.AreEqual(se.GetValue(4), 6.3245553203367586639977870886M);
            Assert.AreEqual(se.GetValue(5), 4.5607017003965519165441961021M);
            Assert.AreEqual(se.GetValue(6), 2.8284271247461900976033774483M);
            Assert.AreEqual(se.GetValue(7), 2.1908902300206644538278791311M);
            Assert.AreEqual(se.GetValue(8), 2.1908902300206644538278791311M);
            Assert.AreEqual(se.GetValue(9), 2.8284271247461900976033774483M);
            Assert.AreEqual(se.GetValue(10), 4.5607017003965519165441961021M);
            Assert.AreEqual(se.GetValue(11), 6.3245553203367586639977870886M);
        }