Is there an fast way to update multiple indicators to a newer version…
On my laptop I have all my latest version custom coded indicators, but my desktop is out of date. Just wondering if there’s an easier method other than copy and pasting all the code into each file 1 by 1 and recompling>?
2 Likes
You can copy the files directly from Documents->NinjaTrader 8->bin->Custom and recompile all at once, or use the backup tool.
When you open the NinjaScript editor and compile, the compiler actually compiles every single .cs file inside your NinjaTrader user folder.
I mean every .cs file – all factory provided .cs files, your .cs files – all of them. Inside every folder, AddOns, BarTypes, Indicators, Strategies, etc – they all get recompiled, whether they need it or not.
Every compile. Every time.
So, just copy all your personal updated files into bin/Custom/Indicators, or wherever they need to go, and then compile. The compiler will see all of the new files you copied, and they’ll all be compiled with everything else.
-=o=-
In fact, I like to edit my .cs files with an external text editor (I’m a Unix/Linux guy, so I like to use gVIM), but I keep the NS editor open while editing. Why? Because when I save the file, and it’s written back to disk by gVIM, the NS editor automatically detects the file update and immediately compiles it – a completely hands free recompile on my part! Love that feature.
Just my 2¢.

Thanks, I could have sworn I already tried that and it didn’t work. But will try again.