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