Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

"speed" of Pending orders = slow?

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

    "speed" of Pending orders = slow?

    Hi,

    I did some performance tests and I discovered the following:

    Even when I run 30 + simple crossover Strategies at the same time, memory usage is below 600MB and cpu usage almost nothing. (about 0-5% maximum load) (Intel 975i Extreme, Windows xp for now)

    I changed the parameters so that I had plenty of executions - about 40-80 per Minute (only MARKET buy and sell orders for a certain crossover were submitted, no additional stop loss etc)

    I watched the ExecutionsTab - sometimes there were 5-10 or more orders "pending" at the same time -

    1) Every time when there were orders "pending" - Ninja trader almost got stuck
    - I was unable to do anything with the program but wait for the orders to get filled !

    These "Pending" MARKET orders seemed to "hang" for a long time, sometimes up to 10 seconds, although they are market orders???? (CPU or Memory usage did not change noticeably that time) Other programs etc. still behaved normal and I could work with them during that time.

    What is the reason for this behavior? What is the hold up for the Application while submitting multipe orders at the same time / during the "pending" order state?

    Is this showing only in simulated trading or also during live trading?

    Is there any workaround for this? Or is it a bug/programming flaw of NT6.5?
    Will this problem be gone in NT7?


    It ultimately leads to a very instable NT - in the end it destroyed my Installation - after start comes immediatelly a messagethat NT needs to be shut down

    you have a great program with great features, but unfortunatelly rather instable in this version. Placing Orders should be much much faster, instantly basically.
    Its NOT the calculation for triggering the orders (=very fast) but the order handling itsself that is VERY slow somehow.

    greetings
    Last edited by azuul; 09-01-2009, 10:38 AM.

    #2
    You should not be using NT6. This has been discontinued a long time ago. Please use NT6.5.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Sorry I meant NT 6.5, I am using the latest version!

      Do you have any idea what the source of my observations might be?

      Comment


        #4
        Orders can be in a pending state for any number of reasons. You would need to use TraceOrders = true to decipher what is happening.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I actually had traceorders on true and I could not find anything unusual, no errors.

          Maybe the reason for the crash was traceorder, since I have around 50 entries per second in the trace file - maybe the writing /reading of the trace filed caused the orders /NT to slow down?

          I discovered that every few minutes, there are plenty of the following processes coming, always 4 in a row:
          CBJ.AccountUpdateEventArgs.Process checking for : BuyingPower, CashValue, ExcessEquity, InitialMargin.

          Then there are dozens of orders /executions for minutes without that this kind of process is being called once.

          When is the CBJ.AccountUpdateEventArgs.Process called ?

          Comment


            #6
            Only thing I can suggest for you is for you to decrease the load.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              I agree but I am not happy with this "solution" -

              as I mentioned, the CPU is almost doing nothing, so its not a question of calculation power. About 95-99% is unused at any give time. There seem to be some very inefficient processes going on in NT6.5 - it becomes slow in itsself without using the available CPU Power? !

              I really hope that NT7 will be a lot different from this!

              Comment


                #8
                NT7 will have performance improvements across the board.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Thanks,
                  make it using up all available CPU Power bevor slowing down!
                  I am really looking forward to it!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by mgco4you, Today, 09:46 PM
                  1 response
                  3 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by wzgy0920, Today, 09:53 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post wzgy0920  
                  Started by Rapine Heihei, Today, 08:19 PM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by Rapine Heihei, Today, 08:25 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Rapine Heihei  
                  Started by f.saeidi, Today, 08:01 PM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Working...
                  X