Signed-off-by: Miha Kralj <miha@kraljfamily.net>

workflow

workflow

Signed-off-by: Miha Kralj <miha@kraljfamily.net>

Refactor charts


KAMA


build

build

build

build
This commit is contained in:
Miha Kralj
2022-04-23 20:10:30 -07:00
parent ee8b07bb37
commit 2a73615161
36 changed files with 599 additions and 288 deletions
-5
View File
@@ -37,9 +37,6 @@ public class SDEV_chart : Indicator
this.indicator = new(source: bars.Select(this.DataSource),
period: this.Period, useNaN: true);
}
protected void OnNewData(bool update = false) { this.indicator.Add(update); }
protected override void OnUpdate(UpdateArgs args)
{
bool update = !(args.Reason == UpdateReason.NewBar ||
@@ -48,8 +45,6 @@ public class SDEV_chart : Indicator
this.GetPrice(PriceType.High), this.GetPrice(PriceType.Low),
this.GetPrice(PriceType.Close),
this.GetPrice(PriceType.Volume), update);
this.OnNewData(update);
double result = this.indicator[this.indicator.Count - 1].v;
this.SetValue(result, 0);