Login Page - Create Account

Support Board


Date/Time: Mon, 17 Mar 2025 01:50:32 +0000



Post From: question on sc.UseTool() for DRAWING_HORIZONTALLINE

[2022-08-25 22:51:00]
User275839 - Posts: 61
Hello -

I'm using sc.UseTool() to draw horizontal lines at price levels. I set tool.BeginValue to the price at which I want to draw the line. That works fine. The line is drawn at that price, and the price value appears as text above the line. (Right aligned because I specify DT_RIGHT.)

In my study, I want to optionally set a text label for the line instead of showing the price. By setting the tool.Text to the desired string, I can get the text label to display.

HOWEVER, in the case where I display a text label, I want to suppress the price from showing as well. Is there a way to suppress the price display, while still enabling display of a text label?

Thanks for any pointers. :)