Exemple #1
0
        public void ResetsProperly()
        {
            var roc = new RateOfChange(50);
            foreach (var data in TestHelper.GetDataStream(51))
            {
                roc.Update(data);
            }
            Assert.IsTrue(roc.IsReady);

            roc.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(roc);
        }
Exemple #2
0
        public void ResetsProperly()
        {
            var roc = new RateOfChange(50);

            foreach (var data in TestHelper.GetDataStream(51))
            {
                roc.Update(data);
            }
            Assert.IsTrue(roc.IsReady);

            roc.Reset();

            TestHelper.AssertIndicatorIsInDefaultState(roc);
        }
Exemple #3
0
 /// <summary>
 /// Resets this indicator to its initial state
 /// </summary>
 public override void Reset()
 {
     _sharpeRatio.Reset();
     _roc.Reset();
     base.Reset();
 }
Exemple #4
0
 /// <summary>
 /// Resets all indicators of this object to its initial state
 /// </summary>
 public void Reset()
 {
     _roc.Updated -= OnRateOfChangeUpdated;
     _roc.Reset();
     _window.Reset();
 }