Hi,
I would like to add a text label at a specific vertical position (for example, above the last candle) but aligned to the right-edge of the chart. I tried doing this with the following code, but the label is printed again with each new candle, causing it to duplicate the text. How can I ensure that the text is displayed only once, always at the last position (which could change with teh candle)?
IF islastbarupdate THEN
DRAWTEXT(" text", BarIndex, high, Dialog, Bold, 12) COLOURED(1,1,1)
endif
return
Hi! write this:
defparam drawonlastbaronly=true
IF islastbarupdate THEN
DRAWTEXT(" text", BarIndex, high, Dialog, Bold, 12) COLOURED(1,1,1)
endif
return