Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
question about current position size in the strategy
Collapse
X
-
question about current position size in the strategy
Hi, I have a question about current position size in the strategy. Suppose I manually long 3 contracts. If I apply a strategy, the strategy longs another 5 contracts. It seems position.quantity only shows 5 contracts that are initiated by the strategy. My question is how to get the total size of position in one account, so I don't have to hard code the position that is manually initiated and could use the strategy to exit all positionTags: None
-
Hello Playdc,
Thank you for your post.
Strategies cannot manage or "see" orders placed outside of that strategy, such as manual orders or orders placed from another strategy instance. Further, strategy positions are separate from account positions.
If you would like to manage all orders placed to the account, you might consider using the AddOn approach to place orders directly to the account and access all orders placed to the account from a single script.
Please let us know if you have any further questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment