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); }
/// <summary> /// Resets this indicator to its initial state /// </summary> public override void Reset() { _sharpeRatio.Reset(); _roc.Reset(); base.Reset(); }
/// <summary> /// Resets all indicators of this object to its initial state /// </summary> public void Reset() { _roc.Updated -= OnRateOfChangeUpdated; _roc.Reset(); _window.Reset(); }