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 yertle, 04-18-2024, 08:38 AM
        9 responses
        40 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        9 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,615 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Yesterday, 05:56 PM
        0 responses
        10 views
        0 likes
        Last Post jaybedreamin  
        Working...
        X