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

NTDirect.dll memory leak

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello Atomic,

    I was seeing the application close when using the NTDirect.dll. I will look further into this.

    Using the NinjaTrader.Client.dll was successful, and after running this method 3 times a second for 4 minutes I was not seeing any uncontrolled memory growth.

    Below is a link to a video of the test.
    https://drive.google.com/file/d/1-CQ...w?usp=drivesdk

    Testing the same on your end are you getting different behavior?
    I don't question your test results. However, in the original version of NtDirect that I got, there were these functions:
    SetAllocReturnString(1); { alloc memory for returned string, TS will free that memory }
    SetMaxReturnStringLength(500); { limit the max length of return string to 500​

    The comments were from Ninjatrader (or the developer).
    My problem is with virtual memory leaking in Tradestation, and it only happens on the version where I am heavily using Ninjatrader
    and using the NtDirect function calls from Easylanguage. The comments above suggest that the developer assumed that
    Tradestation would clean up the memory, but it isn't. The above functions still work in the current version of NtDirect, so, in my
    view, the problem could still be there as it was in NT7.

    I think we are at an impasse on this because Tradestation has no interest in modifying its software to accommodate a third party
    application, and I think it is fair to say the same of Ninjatrader (or the NtDirect developer).

    I apologize for taking up so much of your time.

    Comment


      #17
      Hello Atomic,

      The test was to see if the issue is with the NinjaTrader API being interfaced with an external application causing that application to grow in memory. As in, if this is something NinjaTrader is causing, it should be promptly reported to our development.

      As the test application is not able to reproduce and does not have an uncontrolled memory leak, but is able to interface with the API and request order ids from an external custom application, this would indicate the issue is with TradeStation and should be reported to TradeStation. There could be a possibility of how the orders are being stored and classes being made internally in TradeStation.

      Just as a reminder, we cannot support the EasyLanguage files for NinjaTrader 8 and these are not available from the NinjaTrader 8 help guide.

      There is another way. Use the email interface with NinjaTrader instead of the NtDirect route.

      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by adeelshahzad, Today, 03:54 AM
      4 responses
      25 views
      0 likes
      Last Post adeelshahzad  
      Started by merzo, 06-25-2023, 02:19 AM
      10 responses
      823 views
      1 like
      Last Post NinjaTrader_ChristopherJ  
      Started by frankthearm, Today, 09:08 AM
      5 responses
      17 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      43 views
      0 likes
      Last Post jeronymite  
      Started by yertle, Today, 08:38 AM
      5 responses
      17 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X