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

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 swestendorf, Today, 11:14 AM
        2 responses
        5 views
        0 likes
        Last Post NinjaTrader_Kimberly  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        4 responses
        13 views
        0 likes
        Last Post xiinteractive  
        Started by Mupulen, Today, 11:26 AM
        0 responses
        2 views
        0 likes
        Last Post Mupulen
        by Mupulen
         
        Started by Sparkyboy, Today, 10:57 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by TheMarlin801, 10-13-2020, 01:40 AM
        21 responses
        3,917 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X