• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suggestion on NtDirect dll and OrderStatus

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

    Suggestion on NtDirect dll and OrderStatus

    One of the functions that uses this dll is the NTOrderStatus, which returns one of the following strings:

    Initialized
    PendingSubmit
    Accepted
    Working
    PendingChange
    PendingCancel
    Cancelled
    Rejected
    PartFilled
    Filled

    This is fine except that repeated calls of the OrderStatus function will drive a memory leak which can eventually crash the TradeStation platform. Functions that return an integer do not have this problem or if they do, it is negligible. I suggest either modifying the NtDirect dll to use integers for the order status function return or provide your client with an alternate version which would use integers instead of strings. For existing users the conversion of the integer back to string can be done in the order status function so their existing code will continue to work.

    Thanks.

    #2
    Hello Atomic,

    Thank you for providing us with this enhancement request. I've sent it into our development team and they will be tracking this request using ID # #2501

    Please let me know if there is anything else I can do for you.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hello,
      My 3rd-party program crashes after many repeated calls to OrderStatus (for a limit order in the working state), I assume due to this memory leak.

      I'm using NT 7.0.1000.31.

      Is there a workaround? Is the leak fixed in NT 8?

      Thanks,

      Comment


        #4
        Hello N4Apound,

        Thank you for writing in.

        I will be checking with development in regards to ID 2501 as mentioned previously in the thread.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Hello N4Apound,

          There have been no changes made in regards to this functionality.

          Please, let us know if we may be of further assistance.
          Zachary G.NinjaTrader Customer Service

          Comment


            #6
            Hi Zachary,
            Thanks for checking. If I understand correctly then, there have been no changes to NT8 that would address this memory leak.

            Is there then a recommended workaround?

            Comment


              #7
              Hello N4Apound,

              Outside applications would be outside the realms of platform support, however, I would suggest calling OrderStatus less frequently in your application to see if this resolves your memory leak.
              Zachary G.NinjaTrader Customer Service

              Comment


                #8
                Thanks Zachary, I'll try that.

                Comment


                  #9
                  If I understand correctly then, there have been no changes to NT8 that would address this memory leak. I assume due to this memory leak

                  Comment


                    #10
                    Hello mrduongonline1,

                    Thank you for writing in and welcome to the NinjaTrader Support Forum!

                    There has been no change to the functionality of OrderStatus when used with outside applications in NinjaTrader 8.

                    Please note that outside application functionality would be outside the realms of platform support.
                    Zachary G.NinjaTrader Customer Service

                    Comment


                      #11
                      Is there anybody there finding a solution to fix this issue? i am using tradestation, and going to use ninjartrader as broker since cheap commission and multi accounts. If there is no sulution, we have to use market order always which is not good.

                      Thanks,

                      ccl3093

                      Comment


                        #12
                        Hello ccl3093,

                        Thank you for your post.

                        Can you detail what you are seeing that is not resolved in regards to the context of this thread?
                        Patrick H.NinjaTrader Customer Service

                        Comment


                          #13
                          Users below compliant the NTOrderStatus causing memory leaks when call it from Tradestation to check order's status. The support team said which is not fixed in NT 8.0 since it beyonds the realm of support.

                          Thanks,

                          ccl3093

                          Comment


                            #14
                            Platform technical support

                            I will try it

                            Comment


                              #15
                              I don't understand why the issue is beyond the realm of support. The purpose of NTOrderStatus is for TS users to send order to NT which NT can make commissions from. Plus, memory leak is not tough to fix these days.

                              Thanks,

                              ccl3093

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by jimjoe123, Today, 09:28 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post jimjoe123  
                              Started by tgn55, Today, 08:57 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post tgn55
                              by tgn55
                               
                              Started by chartish, Today, 04:43 PM
                              1 response
                              10 views
                              0 likes
                              Last Post NinjaTrader_EricB  
                              Started by Trader17, Today, 04:07 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post Trader17  
                              Started by GussJ, Today, 01:30 PM
                              2 responses
                              20 views
                              0 likes
                              Last Post GussJ
                              by GussJ
                               
                              Working...
                              X