mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 18:48:05 +00:00
Reworked KAMA & Charts
This commit is contained in:
@@ -16,7 +16,7 @@ public class MAD_chart : Indicator
|
||||
|
||||
#endregion Parameters
|
||||
|
||||
private readonly TBars bars = new();
|
||||
private TBars bars;
|
||||
|
||||
///////
|
||||
private MAD_Series indicator;
|
||||
@@ -34,7 +34,8 @@ public class MAD_chart : Indicator
|
||||
{
|
||||
this.ShortName =
|
||||
"MAD (" + 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: true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user