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 synthhokie, Today, 12:00 PM
|
0 responses
1 view
0 likes
|
Last Post
by synthhokie
Today, 12:00 PM
|
||
Started by moneyexe, Today, 11:22 AM
|
1 response
11 views
0 likes
|
Last Post Today, 11:32 AM | ||
Started by stevec1824, Today, 11:00 AM
|
2 responses
7 views
0 likes
|
Last Post
by stevec1824
Today, 11:32 AM
|
||
Started by sofortune, Today, 10:05 AM
|
2 responses
10 views
0 likes
|
Last Post
by sofortune
Today, 10:58 AM
|
||
Started by sofortune, 05-10-2024, 10:28 AM
|
6 responses
47 views
0 likes
|
Last Post
by sofortune
Today, 10:07 AM
|
Comment