Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bracket Order entry attempt via strategy

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

    Bracket Order entry attempt via strategy

    I am trying to enter a bracket order via strategy

    i.e. I have attempted this and had no luck

    entryLOrder = EnterLongStop(0,true,1,GoLongPrice, "LE");
    entrySOrder = EnterShortStop(0,true,1,GoShortPrice, "SE");

    The long entry works well however the short entry is always ignored

    I believe this might be due to ninjatrader helpfile mentioning:
    Methods that generate orders to enter a position will be ingonred if:
    The Strategy position is flat and and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction

    is there any way I can enter two stop orders at the same time or if not is there any workaround?

    #2
    Hello Flick,
    Welcome to the forum and I am happy to assist you.

    The Internal order handling rules of Managed approach will reject the 2nd order.

    To submit a bracket order please use the Unmanaged approach. Please refer to our help files to know more about it
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X