mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
moar Chart indicators
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user