Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Custom Buttons in Tool Bar - Add Functionality

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

    Custom Buttons in Tool Bar - Add Functionality

    Hello,

    I would like to add custom Buttons to the tool bar, I used the script based on the NT8 Help (Link: https://ninjatrader.com/support/help...th_buttons.htm).
    It works well.
    How can I assign the action when I hit the buttons? Right now - I click on the button, nothing happens - except color change from orange to light blue. I Would like to contol some functionality in my curstom Indicator - How to do ist?

    Thanks
    Attached Files

    #2
    Hello Tradix,

    Thanks for your post.

    You will need to subscribe to the button's Click event in order to give some sort of action with that button.

    I have included a link to an example that adds buttons to the chart which also subscribes an OnButtonClick method to each buttons Click event.



    As buttons are WPF controls, external resources like MSDN documentation and StackOverflow can be referenced where other programmers share their experiences.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Please let us know if we can be of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks Jim for the hint. I was able to solve the issue with some additional Microsoft input and mainly the example provided form Ninjatrader Chelsea on adding Chart Trader buttons.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by geddyisodin, Today, 05:20 AM
      2 responses
      16 views
      0 likes
      Last Post geddyisodin  
      Started by hazylizard, Today, 08:38 AM
      0 responses
      6 views
      0 likes
      Last Post hazylizard  
      Started by Max238, Today, 01:28 AM
      5 responses
      42 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by giulyko00, Yesterday, 12:03 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by habeebft, Today, 07:27 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Working...
      X