mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 02:58:05 +00:00
Tests and QT cleanup
This commit is contained in:
@@ -28,10 +28,10 @@ public class CCI_chart : Indicator
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
this.ShortName = "CCI (" + this.Period + ")";
|
||||
this.bars = new();
|
||||
this.indicator = new(source: bars, period: this.Period, useNaN: false);
|
||||
}␍
|
||||
}
|
||||
|
||||
protected override void OnUpdate(UpdateArgs args)
|
||||
{
|
||||
bool update = (args.Reason != UpdateReason.NewBar && args.Reason != UpdateReason.HistoricalBar);
|
||||
|
||||
Reference in New Issue
Block a user