Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script to Load Drawing Template via Right Click Context Menu

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

    Script to Load Drawing Template via Right Click Context Menu

    Hello,

    I’m looking for guidance on implementing a feature to allow me to load a saved drawing object template directly from the right-click context menu in NinjaTrader 8. The goal is to streamline the process of applying templates to drawing objects by providing quick access without navigating through multiple windows.

    Desired Functionality:
    • When a user right-clicks on a drawing object, the context menu should display a "Templates" option.
    • Hovering over "Templates" should reveal a list of available templates for that specific drawing object type (e.g., "Template1," "Template2," etc.).
    • Selecting a template from the list should immediately apply it to the drawing object.
    I found a drawing object where this function was implemented as shown in the image https://ninjatraderecosystem.com/use...e-drawingtool/

    Could someone provide the piece of script I need to add to the drawing object to implement this feature?
    Attached Files
    Last edited by diegomezhur; 01-13-2025, 02:46 PM.

    #2
    Hello diegomezhur,

    Doing a search for the word 'template' I am seeing relevant sections in 53, 54, 226 - 250, 480 - 519, 820 - 848, 935 - 956, 1183 - 1220, 1802 - 1806, 1836, 1857, 2338 - 2434, 2507 - 2614.

    This looks to be a really elegant custom solution of custom C#.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    85 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    256 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X