[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-11-03 23:47:53 +00:00
parent af42958c69
commit a0c99ef326
130 changed files with 0 additions and 141 deletions
-2
View File
@@ -103,7 +103,6 @@ public class MacdIndicator : Indicator, IWatchlistIndicator
public override void OnPaintChart(PaintChartEventArgs args)
{
Graphics gr = args.Graphics;
gr.SmoothingMode = SmoothingMode.AntiAlias;
var mainWindow = this.CurrentChart.Windows[args.WindowIndex];
@@ -138,7 +137,6 @@ public class MacdIndicator : Indicator, IWatchlistIndicator
Brush col = HistSlopeSeries![i] < 0 ? highRed : lowRed;
gr.FillRectangle(col, barX, barY0, HistBarWidth, Math.Abs(barY0 - barY));
}
}
this.PaintSmoothCurve(args, MainSeries!, slow_ma!.WarmupPeriod, showColdValues: ShowColdValues, tension: 0.3);
-4
View File
@@ -167,7 +167,6 @@ public static class IndicatorExtensions
using (Brush hist = new SolidBrush(Color.FromArgb(150, 0, 255, 0)))
{
gr.FillRectangle(hist, barX, barY, HistBarWidth, Math.Abs(barY - barY0));
}
}
else
@@ -175,12 +174,9 @@ public static class IndicatorExtensions
using (Brush hist = new SolidBrush(Color.FromArgb(150, 255, 0, 0)))
{
gr.FillRectangle(hist, barX, barY0, HistBarWidth, Math.Abs(barY0 - barY));
}
}
}
}
-1
View File
@@ -39,7 +39,6 @@ public class AtrIndicator : Indicator, IWatchlistIndicator
AtrSeries!.SetValue(result.Value);
AtrSeries!.SetMarker(0, Color.Transparent); //OnPaintChart draws the line, hidden here
}
#pragma warning disable CA1416 // Validate platform compatibility
-1
View File
@@ -55,7 +55,6 @@ public class CmoIndicator : Indicator, IWatchlistIndicator
CmoSeries!.SetValue(cmo.Value);
CmoSeries!.SetMarker(0, Color.Transparent); //OnPaintChart draws the line, hidden here
}
public override string ShortName => $"CMO ({Periods}:{SourceName})";
-3
View File
@@ -78,9 +78,6 @@ public class FlowIndicator : Indicator, IWatchlistIndicator
gr.DrawLine(dottedPen, barX2, barY2, barX0, barY0);
}
}
}
}
}
-1
View File
@@ -51,7 +51,6 @@ public class JvoltyIndicator : Indicator, IWatchlistIndicator
jma!.Calc(input);
JvoltySeries!.SetValue(jma.Volty);
}
public override string ShortName => $"JVOLTY ({Periods})";