mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-15 00:58:04 +00:00
codacy
This commit is contained in:
@@ -540,6 +540,7 @@ namespace SyntheticVendorNamespace
|
||||
openValue = 0.0001;
|
||||
closeValue = 100;
|
||||
}
|
||||
else { }
|
||||
|
||||
return new HistoryItemBar
|
||||
{
|
||||
|
||||
@@ -79,7 +79,9 @@ public class CircularBuffer : IEnumerable<double>
|
||||
public double Oldest()
|
||||
{
|
||||
if (_size == 0)
|
||||
{
|
||||
ThrowInvalidOperationException();
|
||||
}
|
||||
return _buffer[_start];
|
||||
}
|
||||
|
||||
@@ -129,7 +131,9 @@ public class CircularBuffer : IEnumerable<double>
|
||||
_current = default;
|
||||
}
|
||||
|
||||
public void Dispose() { }
|
||||
public void Dispose() {
|
||||
// not implemented
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user