Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Drawing Tools

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

    Custom Drawing Tools

    I would like to customize some of the drawing tools by being able to open them with different default values, e.g., a 27% Fib would automatically open using one hot key and a 78% Fib would open using a different hot key.

    It would seem to me that the easiest way to do this would be to duplicate the C# code for the tool, give it a different name, set the new default, and then create a hot key.

    Is something like this do-able?

    #2
    Hello sgordet,

    Thank you for your post.

    You can definitely create your own version of a drawing tool.

    Programming a NinjaScript to detect key presses to implement HotKeys would go outside of the scope of support we would be able to provide you with in the Support Department at NinjaTrader.

    That said, it would be possible to code an indicator (this hasn't been tested using drawing tools) using C# PreviewKeyUp and PreviewKeyDown for detecting key presses to perform your own actions.

    See this forum thread for more information on this topic and sample code: https://forum.ninjatrader.com/forum/...78#post1137778​​

    Here is a forum thread that discusses this topic which you might find helpful as well: https://forum.ninjatrader.com/forum/...tener-selector

    This forum thread will be open for other community members to share their insights on the topic.

    Comment


      #3
      Thanks,Gaby. Not being a programmer, I was hoping I could do something much less ambitious.
      Can I clone the fib tool, rename it, and then set the default to, let’s say, 27%, assign it a hot key, and use it that way?

      Comment


        #4
        Hello,

        You could try creating a copy and renaming yet, then create a default template for that copy to save that parameter.

        You could then save that to a hot key.

        Comment


          #5
          Originally posted by sgordet View Post
          I would like to customize some of the drawing tools by being able to open them with different default values, e.g., a 27% Fib would automatically open using one hot key and a 78% Fib would open using a different hot key.
          You could do this with AutoHotKey v2 and the FindText function. I've been using these to automate TWS Interactive Brokers, NT8, and TradingView. It's a "visual" approach where your looking for images and performing mouse clicks or keyboard shortcuts.

          You could create different templates for the 27%, 78% fib and automate which template is applied based on a hotkey you define in AutoHotKey.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          72 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          44 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          26 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          30 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          61 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X