I'm determined to clean up my charts and as part of that I want to have labels for horizontal lines which my strategy draws appear in white space (i.e. not obscured by bars). I have now set up my default chart with a right margin of 150 pixels (Chart Properties | Right Side Margin) so I have my white space available.
My question is, how can I use DrawText to access that space?
For example: my strategy has created a line which shows my entry price. I'd like it to be labelled as "Entry=100.99". Currently, I'm using the following code:
DrawText(stub + "Text",true,"Entry=" + value,0,value,10,Color.Black,new Font("Arial",12),StringAlignment.Far,Color.Transpa rent,Color.Transparent,0);
This puts the text 10 bars back, but inevitably it is buried in other bars or markings.
How can I move that to the RIGHT of the current bar (and into the margin that I have created expressly for that purpose)?
Thanks as always.
Comment