I have often found that placing DRAW elements a set distance away from the candle to be difficult to manage, as the ATR*n even when small, can make a huge difference due to the differing volatilities/price-levels on various instruments.
Goodness knows why, but I found that in the DRAWTEXT element, the HTML code ‘ <br> ‘ works.
The effect is that the vertical centre is where the relative position is set, so that the code for example
text with line breaks
1
2
3
IFFlag[1]=1ANDFlag=0THEN
DRAWTEXT("§<br>.<br>.",barindex,high)
ENDIF
keeps the text ‘ § ‘ at a reasonably relative position to the candle.
I mention this a I haven’t seen it mentioned elsewhere, and may be of some use to others?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok