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?
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue