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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        45 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        21 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        31 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X