Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Modifications to chart WPF elements and tab considerations
Collapse
X
-
Hello Entwaze,
This would fall under undocumented. Modifying the NinjaTrader windows was not intentioned by the development team, but as it is WPF, our Engineering Support team has provided some examples of how this is possible.
Instead of providing a documented list of all automation ids, I can recommend using MSInspect to get any automation id you would like (for the most part).
Below is a link to a forum post that discusses.
- Likes 1
Leave a comment:
-
Love these names "ChartTraderControlQuickSellMarketButton" lol NinjaTrader_ChelseaB can i get a pamphlet with the names of all these ?
Leave a comment:
-
Finally got it working! Ended up outsourcing this part to someone more familiar with this.
I made this basic template with the fix, incase anyone in the future finds themselves looking for a similar Chart Trader Multi Grid example.
This is found under 'Strategies' because that is what I'm working with. Just copy and paste the code to an indicator if that is what you need.
Last edited by TradeSaber; 05-18-2023, 08:31 AM.
- Likes 1
Leave a comment:
-
Thank you so much for this example Chelsea!
I will have to sit down tonight and dissect this a bit.
The reason I added lowerButtonsGrid2 was so the 2nd row would be just 1 column rather than the 2.
(I can make it work when all the rows have the same number of columns. But I want some rows with different amount of columns)
It is very likely I'm just going about this the wrong way. WPF is not my strong suit at all.
I will play with this example you provided and see if I can make it work before asking any follow up questions!
Thank you again. Appreciate your help!
Leave a comment:
-
Hello TradeSaber,
I would recommend that you remove the lowerButtonsGrid2 and add 1 additional row to lowerButtonsGrid, and set the columnspan on the objects to 2.
The SampleWPFModifications reference sample has a working example that does not reproduce this behavior.
https://ninjatrader.com/support/help...ui)-modifi.htm
Leave a comment:
-
-
I've used Chrome on both Win7 and Win11 but I can't see your image.
Can you try to attach it again?
Leave a comment:
-
Hello Everyone!
Looks like I'm reviving an old thread but figured it is better asked here.
I've modified the Chart Trader Template in order to fit multiple buttons in the lower part of the Chart Trader panel in a strategy.
The goal was to make different sized buttons in different rows(different amount of columns). So for this example I made 2 different grids. This allows me to modify the 'Close' button to be 1 big button instead of having a bunch of small buttons. (See Pic Below)
Everything seems to work as intended, unless I have the strategy enabled on multiple charts stored in TABS.
It will move the top buttons(Buy/Sell) to the same row as the 'Close Position' Button.
This only happens depending on which tab it's switched from. (See Video Below)
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
It seems like when I switch to the older Tab (With the strat loaded) It Inserts everything to the lower grid. (Puts all buttons where the Close Position button is)
I've gone through the example more times than I can count but I seem to come up short with a solution.
I know it's not in your policy to find problems in the code. But if there is a way I could get a suggestion on where or how to handle this tab change.
I'd be very grateful!
I included the Zip file with the bare stripped down template.
Thank you in advance!Attached Files
Leave a comment:
-
Check this thread it should be helpful.Originally posted by RubenCazorla View Postok solved, now i need more help, need ad a toolbox to select orderqty for a strategy, cand sow a example like a same toolbox of chart trader order qty? TY
QuantityUpDown Control - NinjaTrader Support Forum
Leave a comment:
-
ok solved, now i need more help, need ad a toolbox to select orderqty for a strategy, cand sow a example like a same toolbox of chart trader order qty? TYLast edited by RubenCazorla; 07-08-2022, 08:50 AM.
Leave a comment:
-
Hello RubenCazorla,
For a bool you will want to add a CheckBox. Consider the .IsChecked property as the bool for true or false.
https://docs.microsoft.com/en-us/dot...owsdesktop-6.0
Below is a link to an example addon that uses a CheckBox element.
https://ninjatrader.com/support/foru...egy#post759830
See lines 242 through 265 in the SampleWPFModifications reference sample for sample code on adding an image.
https://ninjatrader.com/support/help...ui)-modifi.htm
Leave a comment:
-
Hello, would you be so kind to help me, I need to add a selectable Boolean box and an image to the chart trader, and it is very difficult for me, seeing the experience you have, I wonder if it would be possible
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
51 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
31 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
165 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
100 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
160 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Leave a comment: