public void ComparesAgainstExternalDataAfterReset() { var variance = new Variance("VAR", 10); RunTestIndicator(variance); variance.Reset(); RunTestIndicator(variance); }
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); }