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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X