Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter only 1 trade with two strategies

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 you

    #2
    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.

    Comment


      #3
      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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X