As soon as I fireup the indicator the data for the current bar prints fine. But when the next bar starts the screen becomes messed up.
I am attaching two screenshots one that shows how it prints correctly and the other one shows overlapping text (the messed up one.)
Below is the code snippet that does DrawText. Note that the Tags are unique for each bar and price level.
for (i=0;i<rows.Count;i++) { netVolume += rows[i].askVolume - rows[i].bidVolume; DrawText(CurrentBar.ToString()+rows[i].tradePrice,false,rows[i].bidVolume.ToString()+" "+rows[i].askVolume.ToString(),Time[0],rows[i].tradePrice,0,Color.White,new Font("Arial",15,FontStyle.Regular),StringAlignment.Center,Color.Transparent,Color.Black,0); }
Comment