I try compile strategies all the time in NinjaTrader. Whenever errors pop up, they are usually directly related to the file that I’m working on. 時折, I get the dreaded orange errors referencing files that have nothing to do with what I’m working on. Life quickly turns to misery if 20+ indicators all use the problematic file.
If you’ve ever wondered why it takes NinjaTrader so long to compile a simple indicator, it’s because it compiles all indicators and strategies every single time you push the compile button. Instead of compiling one files, it does something more like 100 files.
A quick way to avoid this nightmare situation is to get rid of the file in question and deal with it later. Especially when I’m under deadline, the last thing I want to do is to spend several hours hunting bugs in unrelated files. The steps involved are very simple.
- Identify the name of the problem file. 時々, the file name is directly mentioned in the File Name. 時々, the files share dependencies with a common file like SMA or another common indicator that you accidentally modified. When that’s the case, you’ll have to spend a bit of time going through the source of some of the files identified to see which indicators they share.
- Navigate to My Documents\NinjaTrader 7\bin\Custom\Indicator
- Remove the problem file. You could delete it. It’s probably better to move it somewhere like Desktop where you will remember to deal with it later
- Push compile. If you identified the true source of the problem, the compile errors disappear.
ジム 言う
ポストをありがとう. それは非常に有用だった
ショーンオバートン 言う
どういたしまして!