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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X