Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Help with the Risk-Reward drawing tool customization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with the Risk-Reward drawing tool customization

    Hi,

    I need help, if is possible, to add a background to the text for this tool, please.

    This is a customization to the original drawing tool from Ninjatrader.

    I have attached an example to explain how it should see, and the custom script file.

    Thank you in advance!

    Click image for larger version  Name:	Risk-Reward example.png Views:	0 Size:	26.2 KB ID:	1201958
    Last edited by joselube001; 05-18-2022, 10:43 AM.

    #2
    Hello joselube001,

    Thank you for your reply.

    You'd want to create a rectangle, fill it, and then render the text on top of the rectangle. We've got a built in indicator that demonstrates this called Sample Custom Render that you can take a look at for an example of creating the rectangle to serve as the text background - section 1.7 within that indicator's OnRender method goes over this in detail with an number of comments explaining how that can be done.

    You can find that indicator in the NinjaScript Editor and that should give you some good direction on how you can achieve that within the drawing tool.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi Kate,

      Your indications was so good.
      Now I have what I was looking for!
      Thank you very much!!!

      This is the final result:
      Click image for larger version

Name:	Risk-Reward final.png
Views:	225
Size:	6.3 KB
ID:	1201981

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      61 views
      0 likes
      Last Post samish18  
      Started by jordanq2, Today, 03:10 PM
      2 responses
      9 views
      0 likes
      Last Post jordanq2  
      Started by traderqz, Today, 12:06 AM
      10 responses
      18 views
      0 likes
      Last Post traderqz  
      Started by algospoke, 04-17-2024, 06:40 PM
      5 responses
      48 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X