Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating new context menu items

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

    Creating new context menu items

    Hello, I am trying to add "Extend Right" option to the right click menu for fib retracement and fib extension drawing tools. I have been exploring the "extendable line" drawing tool (user created) and it builds a new context menu.

    Do i have to build a new menu, or is it possible to add to existing menu.

    Thanks in advance,

    BeachTrader

    #2
    Hi BeachTrader11807

    Maybe you can take a look into the code of the "Zoom Reset" indicator, maybe it would be useful for you!
    This indicator adds to the right-click the buttons "Save Zoom A" and "Save Zoom B".


    https://ninjatraderecosystem.com/use...ad/zoom-reset/
    Last edited by joselube001; 01-06-2022, 11:48 AM.

    Comment


      #3
      Hello BeachTrader11807,

      Thank you for your post.

      Yes, you can add to the existing context menu. I'd take a look at the attached sample script that illustrates adding items to the existing context menu.

      Please let us know if we may be of further assistance to you.
      Attached Files
      Last edited by NinjaTrader_Kate; 01-06-2022, 11:49 AM. Reason: Forgot to attach script...

      Comment


        #4
        joselube001

        Thanks for suggesting the zoom reset indicator! I will definitely take a look at it.


        I want to thank you NinjaTrader_Kate i have learned, and continue to learn a lot from you examples.

        Cheers!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        333 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        211 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        196 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        287 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        242 views
        0 likes
        Last Post CarlTrading  
        Working...
        X