• 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

Way around restarting NT with change of dll reference?

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

    Way around restarting NT with change of dll reference?

    Hi,

    I'm working with some DLL's referenced by Ninjatrader and at the early stages, so lots of changes being made. Is there a way to avoid having to shut down and restart Ninjatrader every time the dll is updated?

    Thanks.

    #2
    Hello pjsmith, and thank you for your question. While I am unsure how you are referencing .dll files in your code, Ninja recompiles its own internal .dlls every time you make a code change and press compile in the NinjaScript editor. If you are using C#'s DllImport (linked documentation publicly available) then your .dll file will be reloaded every time your code is reloaded. The only NinjaScript you will have to restart for is an Add-On, and that is only the first time you load it; thereafter, your code changes will be immediately available upon recompile. Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      Thanks for the quick response. This is a dll I developed in visual studio and added as a reference to an NT8 indicator. If I update the dll (externally via ninjatrader) and refresh the chart, it seems it still uses the old dll? I have to exit and re-load ninjatrader to get the new version?

      Does that make sense?

      I was just looking for a way to cut down dev time by not reloading nt each time I updated it, if that was possible?

      Comment


        #4
        Thank you for this additional information. Since you are developing this outside the NinjaScript editor, Ninja's compile environment is going to be unaware of your dll, and as such, you will need to close NinjaTrader and reopen it again to reload your dll. The only way around this would be to write code in the NinjaScript editor that used a DllImport call, and then accessed your code through this secondary tool. Developing such a testbench would be beyond the scope of the support we may provide.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by levikNT, Today, 04:39 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by chartish, Today, 08:36 AM
        2 responses
        14 views
        0 likes
        Last Post chartish  
        Started by login_dejavu, Yesterday, 04:58 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Started by NinjaTrader_PaulH, Today, 07:40 AM
        0 responses
        4 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by awesometrader, Today, 06:59 AM
        2 responses
        9 views
        0 likes
        Last Post awesometrader  
        Working...
        X