Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM template use for both LONG/SHORT ORDER without flatten opposite trade help

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

    ATM template use for both LONG/SHORT ORDER without flatten opposite trade help

    NinjaTrader_Emily- Hi Emily, u have been amazing to guide thru during previous issues. Thanks for that. I need another guidance in my code/strat developement

    Read example:

    Trading Instrument- NQ 03-2024

    Entry method - VIA ATM Template

    Example:

    I enter in trade LONG NQ @13500 at 10:00 AM. 1 Lot Long with 30 pts take profit and 50 pts Stop loss.

    Now, at 10:10 AM, I get short signal. So, I go short via ATM template with same 30 pts TP and 50 pts SL.

    -----
    Problem is: when I get opposite signal (means when my long trade is open and then i get short signal), via ATM template- my current long is flatten/closed.

    --
    WHAT I WANT IS- I WANT TO KEEP MY BOTH LONG AND SHORT NQ positions opened at the same time. AND I ALSO WANT TO KEEP ATM TEMPLATE'S ACTIVE TP/SL ACTIVE FOR BOTH SIDES Long and short.


    --

    How can i achieve this?

    how can I ensure that, when opposites signal comes, ATM Template WILL NOT FLATTEN MY current trade. and my Both ATM TEMPLATES and its TP/SL - BOTH STAYS ACTIVE AT THE SAME TIME?







    #2
    Hello manitshah915,

    Thanks for your post.

    It is not possible to have a long position and short position opened on the same instrument/account combination in NinjaTrader.

    If you are in a long position and then place a short order, the long position will be closed.

    Similarly, if you are in a short position and place a long order, the short position will be closed.

    Further, NinjaTrader does not support hedging.

    To have a long position and a short position opened on the same instrument, you would have to use two different account. One account to place the long position on, and a second account to place the short position on.

    See this forum thread for more information on this: https://ninjatrader.com/support/foru...tures-contract
    <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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X