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 kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
7 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
41 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment