Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Modifications to chart WPF elements and tab considerations
Collapse
X
-
Hello Ducman_nl,
Yes if you are setting a variable it would be done from the controls changed type event (like Click, Checked, SelectionChanged, etc).
- Likes 1
-
Okay, and then you update the Strategy variable using a to be created VariableX_ValueChanged event?
Leave a comment:
-
Hello Ducman_nl,
Yes, this is possible.
Using the SampleWPFModifications as an example, add your own UIElement Controls to the chart trader grid instead of buttons.
For any text input you will need to suppress the instrument overlay selector with unsupported code.
Leave a comment:
-
Chelsea, is there a way to add fields to the Chart Trader to manipulate Strategy integer variables on the fly? I have seen the "shell" example where you open a window to transfer values via an Add-on but I would like to have it integrated together with my Buttons and Check Boxes.
Leave a comment:
-
Wonderful, thank You so much.Originally posted by NinjaTrader_ChelseaB View PostHello Pabulon,
You can try changing the AtmStrategySelector.SelectedValue.
https://support.ninjatrader.com/s/ar...Automation-IDs
Btw. This should be built in in the core NinjaTrader code in my opinion. Picking ATM strategy with buttons together with water mark on the chart.
Leave a comment:
-
Dear ChelseaB
Is it possible to attach ATM Strategy to the button in ChartTrader? So that when I press for example button "4", it will select ATM Strategy named "4 contracts". Which means the next trade I take it will use 4 contracts and place TP and SL according to that ATM Strategy?
I'm using your piece of code to help me being aware of how many contracts I'm playing with but it lacks automatization. It would be so cool if actualy clicking a button would also select ATM Strategy. Just select, no trigger.
Last edited by Pabulon; 11-30-2024, 03:51 AM.
Leave a comment:
-
Hi ChelseaB
thanks for the prompt reply.
I had done that and realised that it is placing my stack2panel over my stack1 panel.
I can get the buttons sort of aligned by changing the margins but it's finicky.
Is there anyway to get the code to automate the size of the button according to the content?
Leave a comment:
-
Hello Mindset,
Are you referring to adding objects to the toolbarTopHorizontalStackPanel in the example?
Create the button object and use toolbarTopHorizontalStackPanel.Add(UIElement) to add the button.
Leave a comment:
-
Anyone know how to add more buttons to the toptoolbar (NOT the titlebar)?
thanks in anticipation.
Leave a comment:
-
Hey Chelsea.Originally posted by NinjaTrader_ChelseaB View PostHello rare312,
This would not be possible. The chart rendering area is a SharpDX RenderTarget and is not WPF. The UserControlCollection is a WPF area that is just layered on top of the chart renderer.
You can render things in OnRender() under the chart bars or other chart objects.
https://ninjatrader.com/support/help...ndertarget.htm
Thank you for response.
Yes. I know it. That's why I was asking about some other collection or Control. Not UserControlCollection.
So I checked every child, starting from Chart and down to ChartControl.
I was able to add my control to every of it. But it was on top of ChartObjects every time.
Leave a comment:
-
Hello community.
I'm looking for a way to place wpf/winform Control behind the ChartBars and any other ChartObject.
UsercontrolCollection/ChartControl.Children and all their parents are always on top of all ChartObjects. Doesn't work in this case.
Any help will be much appreciated. Thank you.
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: