I cannot get rectangles to draw on my charts if using DateTimes in the call to Draw.Rectangle (anymore - recently it was working fine). Rectangles are drawn correctly if I use barsAgo indexing. What have I done?
protected override void OnBarUpdate() { if (CurrentBar < 1) return; // this does not work Draw.Rectangle(this, CurrentBar.ToString(), Time[1], Open[0], Time[0], Close[0], Brushes.Red); // this does work // Draw.Rectangle(this, CurrentBar.ToString(), 1, Open[0], 0, Close[0], Brushes.Red); }
Comment