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
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
What is the click handler for the chart trader Sell Ask button?
Collapse
X
-
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:Tags: None
-
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.
-
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
-
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
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment