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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
79 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
63 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