Reworked KAMA & Charts

This commit is contained in:
Miha Kralj
2022-04-23 20:10:58 -07:00
parent 2a73615161
commit 438449f5c0
32 changed files with 127 additions and 287 deletions
+3 -2
View File
@@ -17,7 +17,7 @@ public class HMA_chart : Indicator
#endregion Parameters
private readonly TBars bars = new();
private TBars bars;
///////
private HMA_Series indicator;
@@ -35,7 +35,8 @@ public class HMA_chart : Indicator
{
this.ShortName =
"HMA (" + TBars.SelectStr(this.DataSource) + ", " + this.Period + ")";
this.indicator = new(source: bars.Select(this.DataSource),
this.bars = new();
this.indicator = new(source: bars.Select(this.DataSource),
period: this.Period, useNaN: false);
Debug.WriteLine("Send to debug output.");
}