Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a button to a chart on a specific price & time

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

    Adding a button to a chart on a specific price & time

    Hi;

    I'm trying to add a button that follows a specified rectangle (drawing object) on my chart.
    I have no issue to create, add, and didsplay the button on the chart but I do not find a way to place if on the top corner left of my rectangle.

    Do you have any tips for it please?

    Best regards

    #2
    Hello TradeForge,

    This would need to be a custom rendered rectangle in OnRender(), and you would be able to control the x and y coordinate.

    The attached test script demonstrates clicking a rectangle.
    RectToMouseXYTest_NT8.zip

    The example linked below demonstrates rendering an a shape that scrolls with the chart.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This is exactly what I was looking for, thanks Chelsea

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      56 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      35 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      95 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      57 views
      0 likes
      Last Post PaulMohn  
      Working...
      X