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:
Miha Kralj
2024-09-23 22:08:40 -07:00
parent 846429eccf
commit 58d72c06ca
244 changed files with 621 additions and 14397 deletions
+7 -4
View File
@@ -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 })