Exemplo n.º 1
0
        public void ComparesAgainstExternalDataAfterReset()
        {
            var variance = new Variance("VAR", 10);

            RunTestIndicator(variance);
            variance.Reset();
            RunTestIndicator(variance);
        }
Exemplo n.º 2
0
        public void ResetsProperly()
        {
            var date = DateTime.Today;
            var variance = new Variance("VAR", 10);
            foreach (var data in TestHelper.GetTradeBarStream("spy_var.txt"))
            {
                variance.Update(date, data.Close);
            }

            Assert.IsTrue(variance.IsReady);

            variance.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(variance);
        }
Exemplo n.º 3
0
        public void ResetsProperly()
        {
            var date     = DateTime.Today;
            var variance = new Variance("VAR", 10);

            foreach (var data in TestHelper.GetTradeBarStream("spy_var.txt"))
            {
                variance.Update(date, data.Close);
            }

            Assert.IsTrue(variance.IsReady);

            variance.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(variance);
        }