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:	218
Size:	6.3 KB
ID:	1201981

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cls71, Today, 04:45 AM
      0 responses
      1 view
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      213 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      544 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      12 views
      0 likes
      Last Post XXtrader  
      Working...
      X