예제 #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);
        }