Please Add Price tag Display option to the DrawHorizontalLine method
Please Add Price tag Display option to the DrawHorizontalLine method
03 Apr 2025, 17:14
Hi Spotware team,
Could you add the option of printing a price tag on the price, Y-scale, when we draw horizontal line using DrawHorizontalLine method please? Similar tag to the one that appears on the price scale when we draw Horizontal line manually with drawing tools. That would make it much easier to see key levels on my custom Grid indicator. Please see picture attached as an example.
Hopefully when you add this option, it would be nice to also be able to turn off the prices on chart price scale to keep it clean so it shows just grid line prices.
Thank you in advance.

Replies
algostic
07 Apr 2025, 11:37
( Updated at: 07 Apr 2025, 12:15 )
RE: Please Add Price tag Display option to the DrawHorizontalLine method
firemyst said:
As a work around, you can draw the text on the chart using the algo API. just use the “DrawText” method and the y-axis value for the text.
Thank you firemyst for the suggestion. I already have that version too but don’t like it. Those labels cover some of my labels from other indicators that are more important and I don’t really want to make gap on the right of the charts bigger just to fit in these prices.
Cheers

@algostic
firemyst
07 Apr 2025, 00:36
As a work around, you can draw the text on the chart using the algo API. just use the “DrawText” method and the y-axis value for the text.
@firemyst