mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-17 18:18:04 +00:00
Tests and QT cleanup
This commit is contained in:
@@ -32,13 +32,11 @@ public class SMA_chart : Indicator
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
this.bars = new();
|
||||
this.ShortName =
|
||||
"SMA (" + TBars.SelectStr(this.DataSource) + ", " + this.Period + ")";
|
||||
this.bars = new();
|
||||
this.indicator = new(source: bars.Select(this.DataSource),
|
||||
period: this.Period, useNaN: false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected override void OnUpdate(UpdateArgs args)
|
||||
{
|
||||
bool update = !(args.Reason == UpdateReason.NewBar ||
|
||||
|
||||
Reference in New Issue
Block a user