Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Submitting a Buy Limit at the same time as Sell Limit (Problem)

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

    Submitting a Buy Limit at the same time as Sell Limit (Problem)

    I am building a spread strategy for trading futures. I place a buy and sell simultaneously on Instrument1, based off of Instrument2's bid/ask.

    When I do this during MarketDepthUpdates:
    ------------------------------------------------------------------------
    ////////////////////////// ENTRY LOGIC ///////////////////////////////////
    //Submit the Orders
    if (Instr1MP == 0 && Instr1BuyOrder == null)
    {
    Instr1BuyOrder = EnterLongLimit(0, true, 1, LEInstr1LimitPrice, "");
    Print("Submit Buy");
    }
    if (Instr1MP == 0 && Instr1SellOrder == null)
    {
    Instr1SellOrder = EnterShortLimit(0, true, 1, SEInstr1LimitPrice, "");
    Print("Submit Sell");
    }
    ------------------------------------------------------------------------

    NT will only submit the Buy Order. In the output window, the "Submit Sell" just rolls, so I know the " if (Instr1MP == 0 && Instr1SellOrder == null) " condition is true, which means there must be a problem with my order?

    If I put the sell stuff above the buy stuff the "Submit Buy" rolls in the output window. So obviously I have a conflict somewhere once one order is submitted.

    Any suggestions?

    #2
    You can't submit two simultaneous entry orders on a single instrument. This violates the current order handling limitations.

    More information on this at the link below, sroll down to the "Internal Order Handling Rules..." section.

    RayNinjaTrader Customer Service

    Comment


      #3
      OK,
      that's all I need to know.
      THANKS!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 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
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X