I'm writing my own external application using visual studio and the NinjaTrader.Client dll. I'm trying to create a list of all my ninja trader accounts so I can either select them all at once and simultaneously trade all accounts at the same time or select only one to trade and disable the rest. Does anyone know the command or function that will get the account information once a connection has been made between my application the Ninja trader host? Thanks in advance.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using NinjaTrader.Client dll to get and display all accounts
Collapse
X
-
Using NinjaTrader.Client dll to get and display all accounts
Hello all,
I'm writing my own external application using visual studio and the NinjaTrader.Client dll. I'm trying to create a list of all my ninja trader accounts so I can either select them all at once and simultaneously trade all accounts at the same time or select only one to trade and disable the rest. Does anyone know the command or function that will get the account information once a connection has been made between my application the Ninja trader host? Thanks in advance.Tags: None
-
Hello loskee,
There is no command to pull that type of information from the client dll, you can find the defined functions that work with that dll here:
For what you are trying to do it would be better to make an Addon within the platform so you could use all of the NinjaScript functions. The addon framework has a way that you can access the accounts and loop over them.
-
I am interested in collaborating on this.
Had other discussions about in another post and there is a feature request for it, but we have no visibility into the status of that feature request. https://forum.ninjatrader.com/forum/...66#post1255666
The show/hide account feature needs to work in a way that the show/hide selection of an account is also reflected in the ChartTrader and SuperDOM so that only accounts in "show" status in Accounts will be seen and available to trade from the Chart Trader or DOM.
There is an account filtering capability in the Trade Performance Tool... the classes associated with this filter could possibly be leveraged in some way.
Comment
-
Hello loskee,
The term addon is used in multiple ways, the way that I had described it last would be to use a type like an Indicator and then access the Addon framework account class. The term addon can also be used to describe custom tools that use the addon framework. To create a new item you can use the NinjaScript editor and then right click on the folder for the type you want to create.
In NinjaScript you can access the account collection like the following which uses the addon framework account class, this can be used in any type like an indicator.
Code:foreach(Account account in Account.All)
You can use visual studio with NinjaScript, you can click the toolbar button for visual studio in the NinjaScript editor to launch it. Visual studio is not used for building in that case, it is just used to edit and save files which the NinjaScript editor then compiles.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment