diff --git a/SyntheticVendor/SyntheticVendor.cs b/SyntheticVendor/SyntheticVendor.cs index bc61a736..a770055d 100644 --- a/SyntheticVendor/SyntheticVendor.cs +++ b/SyntheticVendor/SyntheticVendor.cs @@ -540,6 +540,7 @@ namespace SyntheticVendorNamespace openValue = 0.0001; closeValue = 100; } + else { } return new HistoryItemBar { diff --git a/lib/core/circularbuffer.cs b/lib/core/circularbuffer.cs index 56169bc9..2730c56e 100644 --- a/lib/core/circularbuffer.cs +++ b/lib/core/circularbuffer.cs @@ -79,7 +79,9 @@ public class CircularBuffer : IEnumerable public double Oldest() { if (_size == 0) + { ThrowInvalidOperationException(); + } return _buffer[_start]; } @@ -129,7 +131,9 @@ public class CircularBuffer : IEnumerable _current = default; } - public void Dispose() { } + public void Dispose() { + // not implemented + } } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/quantower/AbstractIndicatorBase.cs b/quantower/AbstractIndicatorBase.cs index 961cb0c7..734535d5 100644 --- a/quantower/AbstractIndicatorBase.cs +++ b/quantower/AbstractIndicatorBase.cs @@ -37,8 +37,6 @@ public abstract class AbstractIndicatorBase : Indicator SeparateWindow = false; Series = new(name: $"Name", color: Color.Orange, width: 2, style: LineStyle.Solid); AddLineSeries(Series); - - InitIndicator(); } protected virtual void InitIndicator()