Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shared Menu

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

    Shared Menu

    I have two indicators that need a custom Menu.

    I have added a toolbar menu from one indicator like described in this forum. Now the other indicator need to have a custom menu too but I do not want to add another toolbar menu to save space on the chart. Ideally I would like the second indicator to add menu items to the one created by the other indicator or visa versa if the other indicator is loaded first.

    Is there a way to do this ?


    #2
    Hello blar58,

    Thank you for the question.

    This may or may not be possible depending on the load order of the indicators and when the toolbar is being found. You can likely use an automation id with your toolbar to make it easily found with the other indicator, however, the load order will create a problem in case the indicator looking for the toolbar loads before the toolbar is added. You can test this to see how the result is and see if that will work for the goal you have. I would likely suggest taking the automation ID creation logic from the following sample:



    This shows both setting an automation id to a control and retrieving the control by its automation id. The indicator looking for the toolbar would use the code to retrieve the control by its automation ID to find the toolbar and then append its controls.

    I don't know of an existing sample which uses this type of logic as noted there are likely going to be issues surrounding loading. If you implement this type of logic and can't seem to get it working I would be happy to take a look at what you have to see if I can be of further assistance.




    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X