PDA

View Full Version : Compiling NinjaScript Files - How does it work?


NinjaTrader_Ray
01-24-2007, 03:00 AM
I received the following email below from a user:

If I am working on more than one strategy at a time, the errors from one
strategy(a) show up in the other one (strategy(b)) when I try to compile it,
even if I have closed Strategy(a). The only way I can get a clean compile
on strategy(b), is to open Strategy(a) and fix any errors there.Then
Strategy(b) compiles just fine.Also, when this occurs, the compiler errors
sometimes reference another strategy that I'm not even working on.

When compiling, NinjaTrader compiles all strategies and indicators into one DLL. It does NOT compile each individual strategy or indicator into a separate DLLs. Although it seems as if you are compiling an individual NinjaScript object, the compile process will fail if there are other NinjaScript files that have errors in it. The errors are listed at the bottom of the NinjaScript editor and when double clicked, it willl load the problem NinjaScript file into the Editor.

What does this mean? Make sure that if you are working on multiple NinjaScript files, that they are compilable.