Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Long and Short

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

    Strategy Long and Short

    Hi guys

    I have a strategy that can open both Long and Short trades when the condition is true.
    But it only open 1 trade at a time, if there is a current Long trade, the strategy doesn't start a Short trade even if the Short condition is true.
    I want the strategy to be able to open opposite trade even if there is a current trade ongoing.
    How can I make that possible

    #2
    Hello onlinebusiness,

    Thanks for your post.

    It would not be possible to have a strategy place a long order and short order simultaneously on the same instrument and same account.

    Say the strategy calls EnterLong() to place an order and you are in a position of 1 Long. Then the strategy called EnterShort() to submit a short order. This will reverse the position and you will end up in a position of 1 Short.

    From the Managed Approach help guide page: "Entry() methods will reverse the position automatically. For example, if you are in a 1 contract long position and now call EnterShort() -> you will see 2 executions, one to close the prior long position and the other to get you into the desired 1 contract short position."

    Managed Approach: https://ninjatrader.com/support/help...d_approach.htm

    Further, NinjaTrader does not support hedging.

    To place a long order and short order on the same instrument at the same time, the long order would need to be placed on one account and the short order must be placed on a separate account.

    See this forum thread for more information about going long and short at the same time: https://ninjatrader.com/support/foru...tures-contract

    Let me know if I may assist further.
    <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, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    131 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X