what is the Ninjascript to get my total account position in contracts? in the strategies tab on the control center, there is an 'account position' field that shows, say, 3L for 3 long contracts, even if I have several strategies running that show different contract sizes. I am looking for a way to use the "3L" total account position in a strategy to enter/exit by using that 3L in a calculation. What is the code line for this output? Do you have any tips on how to use this because it might have different syntax as far as outputting "3 Long" for instance? Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get Account Position
Collapse
X
-
Get Account Position
Hi NT 8 support,
what is the Ninjascript to get my total account position in contracts? in the strategies tab on the control center, there is an 'account position' field that shows, say, 3L for 3 long contracts, even if I have several strategies running that show different contract sizes. I am looking for a way to use the "3L" total account position in a strategy to enter/exit by using that 3L in a calculation. What is the code line for this output? Do you have any tips on how to use this because it might have different syntax as far as outputting "3 Long" for instance? Thank you!Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
90 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
137 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
120 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
72 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment