diff --git a/Tests/test_updates_statistics.cs b/Tests/test_updates_statistics.cs index e53fbd65..a5d901fc 100644 --- a/Tests/test_updates_statistics.cs +++ b/Tests/test_updates_statistics.cs @@ -26,6 +26,15 @@ public class StatisticsUpdateTests return new TBar(DateTime.Now, open, high, low, close, 1000, IsNew); } + private TBar GetRandomBar(bool IsNew) + { + double open = GetRandomDouble(); + double high = open + Math.Abs(GetRandomDouble()); + double low = open - Math.Abs(GetRandomDouble()); + double close = low + (high - low) * GetRandomDouble(); + return new TBar(DateTime.Now, open, high, low, close, 1000, IsNew); + } + [Fact] public void Curvature_Update() {