• 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 psquare, Today, 03:11 PM
        4 responses
        18 views
        0 likes
        Last Post psquare
        by psquare
         
        Started by ballboy11, Today, 03:20 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by tonynt, Today, 02:18 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_JoshG  
        Started by denalek2419, Today, 01:46 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by REI140205, Today, 12:58 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X