Пример #1
0
        public void ComparesAgainstExternalDataAfterReset()
        {
            var bop = new BalanceOfPower("BOP");

            RunTestIndicator(bop);
            bop.Reset();
            RunTestIndicator(bop);
        }
Пример #2
0
        public void ResetsProperly()
        {
            var bop = new BalanceOfPower("BOP");
            foreach (var data in TestHelper.GetTradeBarStream("spy_bop.txt", false))
            {
                bop.Update(data);
            }

            Assert.IsTrue(bop.IsReady);

            bop.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(bop);
        }