Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compile Time Slow

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

    Compile Time Slow

    I understand when I am compiling a strategy or indicator that all of them in the database are compiled not just the one I am working on.

    Unfortunately as my library of strategies and indicators grows it is taking a very long time to compile the simplest change. (2 to 3 minutes to compile)

    Is there anyway to speed this up.

    #2
    Hello sdauteuil,

    Thanks for your post.

    Compiling requires referencing all scripts and dependencies so all must be included when we compile.

    If the number of custom scripts is causing additional compile time that is bothersome, you could set up a separate "clean" environment that can be used for developing. This environment would then only include what you want to work on so additional scripts do not have to be compiled.

    Setting up a clean environment:

    Creating a clean environment can be done by following the steps below:
    1. Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
    2. Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from http://ninjatrader.com/PlatformDirect
    3. Add the scripts you want to work on and continue developing in that environment.
    If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.

    For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.

    We look forward to assisting.

    Comment


      #3
      Something else that may help... is if you have indicators that you do not plan on working on or potentially using, you right-click the indie to "exclude from compilation" in the NinjaScript Explorer. I have done this for a few indicators I no longer use but want to keep in my codebase.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      67 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      95 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      53 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      108 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      63 views
      0 likes
      Last Post PaulMohn  
      Working...
      X