Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Button on Main Toolbar - NT8

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

    Button on Main Toolbar - NT8

    Dear Support,

    I am looking for an example or code snippet for placing a button on main toolbar to draw an object such as a trend channel or a line (just one of the drawing tools).

    Thanks.

    #2
    Hello aligator,

    I have two examples you may find useful.

    The first example is an incomplete replacement for the drawing tool shortcuts indicator (attached).

    The second example is how to add a button to the Chart toolbar (linked).
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello aligator,

      I have two examples you may find useful.

      The first example is an incomplete replacement for the drawing tool shortcuts indicator (attached).

      The second example is how to add a button to the Chart toolbar (linked).
      http://ninjatrader.com/support/forum...346#post486346
      Thank you ChelseaB,

      Before I burn my brain, your "incomplete" indicator places a drawing toolbar shortcut as part of the chart? It would be great if there is any script to place it as part of main toolbar. That is what I am really looking for.

      Thanks agin!
      Last edited by aligator; 02-27-2017, 12:46 PM.

      Comment


        #4
        Hello aligator,

        No, the DrawingToolsShortcuts makes its own toolbar and places it in the UserControlCollection.

        The ChartToolBarCustomMenuExample, however, does add a button to the existing chart toolbar at the top.

        But with the information about how to create a button in ChartToolBarCustomMenuExample and how to trigger a drawing object with DrawingToolsShortcuts, you could combine these to create your goal indicator.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X