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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      603 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      349 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      104 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      560 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X