Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
lock account selector in chart trader
Collapse
X
-
lock account selector in chart trader
Is there a way to lock or make the Account Selector unchangeable just like the Instrument Selector in the chart trader.Tags: None
-
Hello luxurious_04,
Thank you for your post.
That would be possible from NinjaScript, yes.
Please let us know if we may be of further assistance to you.Code:ChartControl.Dispatcher.InvokeAsync((Action)(() => { NinjaTrader.Gui.Tools.AccountSelector accountSelector = (Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector); accountSelector.IsEnabled = false; }));
- Likes 1
-
-
Hello luxurious_04,
Thank you for your reply.
You would need to detect the tab is selected and unlock/undo any changes made by the script. There's only one Chart Trader on the right of the chart, and changing tabs changes what is selected within it. Here are some examples a colleague of mine created that modify chart trader and undo changes when a different tab is selected:
https://ninjatrader.com/support/foru...ions#post96376
Please let us know if we may be of further assistance to you.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
606 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment