Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simultaneous Buy/Sell Order Strategy

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

    Simultaneous Buy/Sell Order Strategy

    Hi NT support,

    I was wondering if:

    1.
    within the managed approach it is possible to simultaneously enter long and short stop entries within the same bar session. e.i.

    Code:
     If( ATR(14)[0] < voltrigger && entryOrderLong == null && entryOrderShort == null)
    {
        entryOrderLong = EnterLongStop(0, false, DefaultQuantity, High[0], "Long")
        entryOrderLong = EnterShortStop(0, false, DefaultQuantity, Low[0], "Short")
    }
    2.
    if 1. is true, how do I need to set EntryHandling to make sure my strategy can take both (long and short) entries? would the code below make the trick:

    Code:
    protected override void Initialize() 
    { 
        EntriesPerDirection = 1; 
        EntryHandling = EntryHandling.AllEntries; 
    }

    #2
    Helllo sburtt,

    Using the Managed Approach you would only be able to place an order in 1 Direction. The other order would get ignored.

    If you would like to place an order going Long and Short you would have to use the Unmanaged Approach.

    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    562 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X