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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment