mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-12 23:58:04 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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})";
|
||||
|
||||
@@ -78,9 +78,6 @@ public class FlowIndicator : Indicator, IWatchlistIndicator
|
||||
gr.DrawLine(dottedPen, barX2, barY2, barX0, barY0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@ public class JvoltyIndicator : Indicator, IWatchlistIndicator
|
||||
jma!.Calc(input);
|
||||
|
||||
JvoltySeries!.SetValue(jma.Volty);
|
||||
|
||||
}
|
||||
|
||||
public override string ShortName => $"JVOLTY ({Periods})";
|
||||
|
||||
Reference in New Issue
Block a user