ChartControl.Dispatcher.InvokeAsync((Action)(() =>
{
//You have to put the stuff below within this ChartControl.Dispatcher.InvokeAsync((Action)(() =>, because you are trying to access something on a different thread.
xAlselector = Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector;
//Print(xAlselector.SelectedAccount.ToString());
Draw.TextFixed(this, "Account Name", TopPadding_String + xAlselector.SelectedAccount.ToString() + BottomPadding_String, TextPosition, MyBrush, MyFont, Brushes.Transparent, MyBackground, MyBackgroundOpacity);
}));
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Account Selector
Collapse
X
-
Account Selector
I have a workspace arrange with windows so small I cannot see the Account which is selected in the account selector. To combat this I wrote an indicator which displays the account name on the actually chart. I got the code from the forum search:
The problem is, the text doesn't update if the account is changed. I have to reload the chart. is there way to detect the account has been changed and update the text`? Having the code inside onBarUpdate with onEachTick doesn't update the account fixed text.Code:Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
44 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
54 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
34 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
94 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
56 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment