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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      52 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X