mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-05 04:27:43 +00:00
Squash
dotcover s1 .sln s1 s1 s2 s3 s4 s5 s1 s2 x x2 x3 x4 x5 x6 x1 sonarcube cleanup1 sonarcube cleanup2 sonarcube cleanup 3 fixes q q q q q q q q q1 q2 q q1 codacy 1
This commit is contained in:
@@ -21,7 +21,7 @@ public abstract class AbstractIndicatorBase : Indicator
|
||||
public PriceType SourcePrice { get; set; } = PriceType.Close;
|
||||
|
||||
[InputParameter(name: "Line smoothing", sortIndex: 19, minimum: 0.0, maximum: 1.0, increment: 0.1, decimalPlaces: 2)]
|
||||
public double Tension = 0.2;
|
||||
public double Tension { get; set; } = 0.2;
|
||||
|
||||
[InputParameter("Show cold values", sortIndex: 20)]
|
||||
public bool ShowColdValues { get; set; } = true;
|
||||
@@ -31,7 +31,7 @@ public abstract class AbstractIndicatorBase : Indicator
|
||||
protected LineSeries? Series;
|
||||
protected abstract AbstractBase MovingAverage { get; }
|
||||
|
||||
protected AbstractIndicatorBase() : base()
|
||||
protected AbstractIndicatorBase()
|
||||
{
|
||||
OnBackGround = true;
|
||||
SeparateWindow = false;
|
||||
@@ -71,7 +71,10 @@ public abstract class AbstractIndicatorBase : Indicator
|
||||
{
|
||||
base.OnPaintChart(args);
|
||||
List<Point> allPoints = new List<Point>();
|
||||
if (CurrentChart == null) return;
|
||||
if (CurrentChart == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Graphics gr = args.Graphics;
|
||||
var mainWindow = CurrentChart.MainWindow;
|
||||
@@ -102,7 +105,7 @@ public abstract class AbstractIndicatorBase : Indicator
|
||||
|
||||
private void DrawSmoothCombinedCurve(Graphics gr, List<Point> allPoints, int hotCount)
|
||||
{
|
||||
if (allPoints.Count < 2) return;
|
||||
if (allPoints.Count < 2) { return; }
|
||||
|
||||
using (Pen defaultPen = new(Series!.Color, Series.Width) { DashStyle = ConvertLineStyleToDashStyle(Series.Style) })
|
||||
using (Pen coldPen = new(Series!.Color, Series.Width) { DashStyle = DashStyle.Dot })
|
||||
|
||||
Reference in New Issue
Block a user