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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            65 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            41 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            23 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            26 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            52 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X