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, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
356 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
277 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment