Drawing Tool RiskReward

Several, THANK YOU VERY MUCH :smiley:

With the information you gave me, I was able to understand the logic behind the procedure so I could have the correct code to access the value of the Quantity box.

I’m not an expert in programming, nor in the NinjaScript environment, so this is twice as difficult or more. I’d like to ask you a couple more questions now:

  1. For the same drawing tool, I would like to be able to access the “Account” box to obtain the total value (CashValue or NetLiquidation) of the account selected in that box, and thus be able to calculate the percentage of the account at risk in the transaction.

  2. For the same drawing tool, I can’t manage, in the NinjaScript environment, to make some of its features visible only when it’s selected or when the mouse is hovered over it. The problem is that this shouldn’t affect the entire drawing, but only part of it.
    The drawing has two main parts: The background-colored rectangles, which don’t contain any information or text and should be visible at all times. The text rectangles, which do contain position information, are just the text rectangles. I want them to be visible only when the drawing is selected or when the mouse is hovered over it.

Thank you so much for the support you’ve already given me.

I hope you can help me with these two new questions as well.

Hugs.