Having used the Text Tool manually to anchor a block of text to a point on the chart, I am wondering if there is an equivalent that I can use within a study to do the same thing?
Using drawTextAbsolute() once per line seems to me to be a little too complex, and not actually quite the same since each line would be anchored to a different coordinate. This would require the developer to determine multiple X and Y values that are consistent with the scaling and/or font size. Unfortunately, it seems that distance between lines varies if scaling is altered (e.g. when price axis is dragged) unless anchored relative to LEFT and TOP/BOTTOM (not always what one would want to do).
Also, since there is no Text.RELATIVETORIGHT option, is it possible to keep rows or columns of text located to the right of the current bar, from moving if the price or time scale is altered?
Hope that's not too unclear.
Assistance greatly appreciated.
G.
Using drawTextAbsolute() once per line seems to me to be a little too complex, and not actually quite the same since each line would be anchored to a different coordinate. This would require the developer to determine multiple X and Y values that are consistent with the scaling and/or font size. Unfortunately, it seems that distance between lines varies if scaling is altered (e.g. when price axis is dragged) unless anchored relative to LEFT and TOP/BOTTOM (not always what one would want to do).
Also, since there is no Text.RELATIVETORIGHT option, is it possible to keep rows or columns of text located to the right of the current bar, from moving if the price or time scale is altered?
Hope that's not too unclear.
Assistance greatly appreciated.
G.
Comment