I only recently discovered that you can make DrawText a lot more sophisticated. The following code works very nicely in an indicator of mine:
DrawText("Text0", true, 0.ToString(), -2, P0, 0, Color.Black, new Font ("Arial", 10, FontStyle.Bold),
StringAlignment.Center, Color.Black, Color.Yellow, 10);
This produces a box, with a yellow background, into which the digit just fits.
What I'd like to do is widen the box, effectively putting a 'space' on either side of the '0' so the box is widened. I've experimented but to no avail.
I'd much appreciate any suggestions as to how to do this.
Comment