Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market replay filling orders 1 unit at a time

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

    Market replay filling orders 1 unit at a time

    I've come across a real weird one. I'm on NT 7.14, connected to market replay and when my strategy tries to enter a trade, NT starts to submit orders 1 unit at a time. So basically the following line of code:

    quickScalpOrder = EnterShortLimit(0, true, 100000, Low[1], "RedRatReversal");

    causes NT to create a 100000 orders instead of 1 order with 100000 units! Ouch!!! Each order goes through it's own state change cycle (accepted, pending, filled etc.) so as you can imagine we get stuck in an almost infinite loop.

    This only happens on market replay, the strategy works perfectly in live market conditions. Any idea why? I'm basically incapable of using market replay right now because of these limitations. Please advise on what I could do to fix this issue.

    #2
    another quick thing that I want to mention is that I've remote debugged in VS and I know that the line that opens the trade

    quickScalpOrder = EnterShortLimit(0, true, 100000, Low[1], "RedRatReversal");

    is only executed once... just fyi, in case you thought that the strategy logic was causing the infinite loop condition.

    Comment


      #3
      Hello Nitro,

      Thank you for your post. Someone will get back to you a bit later on this.
      Ryan M.NinjaTrader Customer Service

      Comment


        #4
        You can try setting simulator options under Tools > Options Simulator tab. You could uncheck "enforce partial fills" and check "enforce immediate fills"
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          same problem but...

          even inforcing imediate fills does not correct it (running V6.5..15)

          Comment


            #6
            Hello Fx_Pete,


            Can you provide code snippets you're working with so we can try to reproduce? Is it reproducible anywhere you run the strategy or only market replay?
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            66 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            59 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X