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 ScottWalsh, Today, 04:29 PM
      0 responses
      4 views
      0 likes
      Last Post ScottWalsh  
      Started by rtwave, 04-12-2024, 09:30 AM
      2 responses
      21 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by tsantospinto, 04-12-2024, 07:04 PM
      5 responses
      69 views
      0 likes
      Last Post tsantospinto  
      Started by cre8able, Today, 03:20 PM
      0 responses
      7 views
      0 likes
      Last Post cre8able  
      Started by Fran888, 02-16-2024, 10:48 AM
      3 responses
      49 views
      0 likes
      Last Post Sam2515
      by Sam2515
       
      Working...
      X