Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the click handler for the chart trader Sell Ask button?

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

    What is the click handler for the chart trader Sell Ask button?

    I want to remove it and add my own click event. For example:

    Code:
    sellAskButton = chartTraderGrid.FindFirst("ChartTraderControlQuickSellAskButton") as System.Windows.Controls.Button;
    sellAskButton.Click -= DefaultNinjaSellAskButton_Click;   // I need the name of this
    sellAskButton.Click += MySellAskButton_Click;                  // My own click event which will echo some debug before it place the sell ask order

    #2
    Hello TradingRocks,

    The syntax you provided seems to be NT8 code, is this an NT8 question? If so I will move this to the correct forums. For NT7 this type of development was not supported so I am unsure if it would be possible to resubscribe the button. That would be something you can research in contrast to WindowsForms development.

    For NT8 it would not be suggested to modify any existing order button and I am unaware of a sample of re routing the event however we do have samples of adding your own custom buttons. https://ninjatrader.com/support/foru...ns?postcount=1


    I look forward to being of further assistance.

    Comment


      #3
      Balls, yes please move, this is for NT8.

      It's possible that this hasn't been done before but this is for myself only. I only need to know the name of the click event so I can replace with my own.

      Comment


        #4
        Hello TradingRocks,

        In this case its not as simple as knowing the name of the event so you can unsubscribe from it. The easiest solution is to just append a button into the chart trader. You could place those before the existing buttons and shift the others down if you wanted to or do any other number of WPF modifications to the existing chart trader controls. If you are trying to do UI modifications I would suggest to review the samples in the linked forum as they show some best practices when working with the UI and how to access the existing controls. External WPF/Xaml development guides/tutorials will help in this area as we are using WPF for the window framework in NinjaTrader 8.

        I look forward to being of further assistance.

        Comment


          #5
          Ok Jesse, cheers. I will go down that route.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X