moar Chart indicators

This commit is contained in:
Miha Kralj
2024-11-07 21:40:02 -08:00
parent 2a72b2881b
commit 351214ed31
49 changed files with 697 additions and 42 deletions
+1 -2
View File
@@ -55,7 +55,7 @@ public class HwmaIndicator : Indicator, IWatchlistIndicator
protected override void OnInit()
{
if (NA == 0 && NB == 0 && NC == 0)
if ((NA, NB, NC) == (0, 0, 0))
{
ma = new Hwma(Periods);
}
@@ -80,6 +80,5 @@ public class HwmaIndicator : Indicator, IWatchlistIndicator
{
base.OnPaintChart(args);
this.PaintSmoothCurve(args, Series!, ma!.WarmupPeriod, showColdValues: ShowColdValues, tension: 0.2);
this.DrawText(args, Description);
}
}