I wrote a custom indicator that is set to show intrabar (Calc on bar closed=false). The indicator draw on the char intrabar, but the drawn elements are shown on the closed bar before the current intra bar. Attached is the screen and below is the code:
protected override void OnBarUpdate() { //... if (longValue > 0) this.DrawTriangleUp(this.High[0].ToString() +" "+Time[0].TimeOfDay.ToString(), true, 0, Close[0], Color.White); if (shortValue < 0) this.DrawTriangleDown(this.Low[0].ToString() +" "+Time[0].TimeOfDay.ToString(), true, 0, Close[0], Color.White); //... }
Same thing happen on a 3 min chart, where the price of 2049 does not exists at the bar it shown (See the 2 images shown the min char)
Comment