This is the first time I've used this approach and is because my indicator is getting too big.
I have only 1 file that is the main indicator file with "public class Big_Indi : Indicator" and all other files are classes in the namespace but not inheriting Indicator.
I can compile all files and get clean compiles and the indicator works as expected, however, whenever there is a coding error then the "NinjaScript generated code" get generated at the bottom of the file. If I fix my error and then recompile before I delete the "NinjaScript generated code" at the bottom of the file then I get a compile error because Ninjatrader creates another copy of the "NinjaScript generated code" -- so i have 2 identical copies of the Nijatrader generated code and the compiler complains about it of course.
So, why are you generating 2 copies of this code at the bottom of my class file that's inheriting from Indicator?
I haven't ever seen this happen before and I've written dozens of indicators, however this is the first time that I've split my indicator into multiple files so I suspect that's the problem.
Is there a way to get Ninjatrader to behave more nicely with my multi-file approach?
Is there a Ninjatrader preferred multifile indicator setup?
Do you have any suggestions on how I can inhibit this double copy of your generated code at the bottom of my indicator?.
The "NinjaScript generated code" only happens in the class that is inheriting Indicator.

Comment