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