Two independent strategies entered into opposite position. One took long trade and other one took short trade. I don't want to enter or place entry order in opposite direction, when some other strategy already opened a position on one direction. How to achieve this ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to Avoid Opposite Orders Across Strategies.
Collapse
X
-
How to Avoid Opposite Orders Across Strategies.
Hi,
Two independent strategies entered into opposite position. One took long trade and other one took short trade. I don't want to enter or place entry order in opposite direction, when some other strategy already opened a position on one direction. How to achieve this ?Tags: None
-
Hello nandhumca,
Typically we wouldn't recommend running two strategies on the same instrument and account.
This thread discusses this.
That said, you can check the PositionAccount is flat before allowing an entry order to be submitted.
Note, this would not prevent the strategies from both placing a working entry order at the same time when the position is flat.Chelsea B.NinjaTrader Customer Service
-
Thanks for the quick reply. Can I use Account.Position / Acccount.Orders to see current position direction of Account and Pending entry order direction right ? based on that, my other strategy will not place opposite order. if that works, how to get the associated Account object reference from Strategy ?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
89 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment