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
@@ -5,7 +5,7 @@ namespace QuanTAlib;
public class SmaIndicator : Indicator, IWatchlistIndicator
{
[InputParameter("Periods", sortIndex: 1, 1, 1000, 1, 0)]
[InputParameter("Period", sortIndex: 1, 1, 1000, 1, 0)]
public int Period { get; set; } = 14;
[InputParameter("Data source", sortIndex: 2, variants: [
@@ -67,6 +67,5 @@ public class SmaIndicator : Indicator, IWatchlistIndicator
{
base.OnPaintChart(args);
this.PaintSmoothCurve(args, Series!, ma!.WarmupPeriod, showColdValues: ShowColdValues, tension: 0.2);
this.DrawText(args, error!.Value.ToString());
}
}