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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 ninza33, Today, 06:28 AM
|
3 responses
13 views
0 likes
|
Last Post Today, 12:00 PM | ||
Started by ScottWalsh, Yesterday, 04:29 PM
|
4 responses
18 views
0 likes
|
Last Post Today, 12:00 PM | ||
Started by 09try, 03-29-2024, 01:27 PM
|
7 responses
66 views
0 likes
|
Last Post
by ntcat
Today, 11:57 AM
|
||
Started by Gibranes, Today, 10:05 AM
|
4 responses
19 views
0 likes
|
Last Post
by Gibranes
Today, 11:54 AM
|
||
Started by f.saeidi, Today, 08:12 AM
|
2 responses
15 views
0 likes
|
Last Post
by f.saeidi
Today, 11:46 AM
|
Comment