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.
Code:ChartControl.Dispatcher.InvokeAsync((Action)(() => { NinjaTrader.Gui.Tools.AccountSelector accountSelector = (Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector); accountSelector.IsEnabled = false; }));
Kate W.NinjaTrader Customer Service
- 1 like
-
-
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.Kate W.NinjaTrader Customer Service
- 1 like
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by guenni7, Today, 09:43 PM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by guenni7
Today, 09:43 PM
|
||
Started by jonfan45, Today, 06:06 PM
|
0 responses
10 views
0 likes
|
Last Post
![]()
by jonfan45
Today, 06:06 PM
|
||
Started by rustyspring, Today, 05:15 PM
|
0 responses
13 views
0 likes
|
Last Post
![]()
by rustyspring
Today, 05:15 PM
|
||
Started by xulu13, Today, 05:01 PM
|
0 responses
17 views
0 likes
|
Last Post
![]()
by xulu13
Today, 05:01 PM
|
||
Started by Pbarrionuevo, Today, 04:30 PM
|
0 responses
13 views
0 likes
|
Last Post
![]()
by Pbarrionuevo
Today, 04:30 PM
|
Comment