how do I make it that only one position is trading, , for example, if Long is already open, that it would not enter short until everything is closed or apposite , thank you
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Enter only 1 trade with two strategies
Collapse
X
-
Enter only 1 trade with two strategies
Hi, I'm trying to run 2 strategies at once, one short and one long,
how do I make it that only one position is trading, , for example, if Long is already open, that it would not enter short until everything is closed or apposite , thank youTags: None
-
Welcome to the forums!
If you want "to run 2 strategies at once, one short and one long", you need
to use two physically separate accounts.
Or, if you want to use the same account, you'll need to code some kind of
lock mechanism so that only one position is active at a time.
Why two accounts?
It has to do with 'account position vs strategy position' and keeping these
in sync -- it's discussed in many different places on these forums.
Last edited by bltdavid; 12-17-2023, 07:01 AM.
-
Hello doniela,
Welcome to the Forums and thanks for your post.
bltdavid has provided some great information on this topic.
Please see this forum thread detailing running multiple strategies on the same instrument/account combination for more information: https://forum.ninjatrader.com/forum/...tures-contract
The Strategy Position is separate from the Account Position. This means that if one strategy has taken a long position and is showing long 1, and the other has taken a short position and is showing short 1, the account position would be flat and neither strategy would be in sync with the account.
See this help guide page as well for more information about Account Position vs Strategy Position: Strategy vs. Account Position — https://ninjatrader.com/support/help..._account_p.htm
You could consider combining the logic of both strategies into one single strategy that places long or short orders when the conditions to do so become true.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment