Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender sharpDX drawing

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

    OnRender sharpDX drawing

    Hello, i wanted to check if there is a way with drawing in OnRender with sharpDX eg a rectangle area - if i can track when the mouse is over the object area and display some data/text information that i have stored?

    Like some context information depending on the object - is this possible with drawobjects generated in Onrender. Or are they different to drawing objects which can be listed in the Drawing Tools -> draw objects. I realise there is a distinction but wanted to check and if there is another way i need to approach this

    thanks

    #2
    Hello soulfx,

    This should be possible.

    If you are referring to having some information come up when your mouse is within the range of coordinates of your rectangle, you should be able to accomplish this by getting the mouse coordinates and seeing if they are within the range of your rectangle.

    You could subscribe to the ChartPanel.MouseMove event to get the coordinates from the mouse as it moves, and you can check if these coordinates are "above" the region you have drawn or described in OnRender().

    We don't have any documentation on ChartPanel.MouseMove and creating your own Mouse based events starts to fall into the General C# category rather than a NinjaScript item, so the amount of support we can provide you will be limited. IntelliPrompt will be your friend when using unsupported items that are not documented in our help guide.

    Some indicators on our forums implement similar interactions with a mouse to get coordinate data. These could be used as reference as long as the change to subscribing to ChartPanel.MouseMove is minded.

    Advanced Risk Reward (Uses ChartPanel.MouseUp and ChartPanel.MouseDown, see "Mouse" code region) - https://ninjatrader.com/support/foru...atid=7&lpage=1

    Please let me know if there is anything else I can do to assist.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X