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 Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        2 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,771 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        945 views
        0 likes
        Last Post spwizard  
        Working...
        X