This only happens on the last bar. After we put the indicator on the chart.
protected override void Initialize() { CalculateOnBarClose=false; Overlay= true; Add(PeriodType.Tick,1); } protected override void OnBarUpdate() { if(BarsInProgress==1) Print(Times[1][0]); if(BarsInProgress==0 && FirstTickOfBar) Print(Times[0][0]); }
Comment