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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment