Importing scripts

Hi

anybody know what is this error’s it wont letting me import anything.

thanks

Try opening Ninjascript Editor from New…. drop down menu in Control Center. Then hit F5 to compile and look for errors, take it from there.

Alternatively (or use both approaches), go into your Documents folder, Ninjatrader 8\Custom\Bin\Indicators and remove all .cs files whose names do not begin with @….

Then, add the custom ones back one at a time recompiling F5 in Editor until you find the offender

Best,

That error means one/multiple of the custom script files on your pc dosent compile. NT compiles everrything in your custom folder together, so it blocks all imports until the existing file/s build cleanly. The 2nd popup just means NT rolled back to your last working stat, so nothing damaged.

This is quick and easy to fix:

  1. Go to “Control Center” click “New” click “NinjaScript Editor”.
  2. The editor opens up blank (no scripts highlighted, this is fine), press F5 or the compile button on top of window.
  3. Takes 10-15sec to compile, at bottom of window it names exact file/s and errors.

You can then just remove the file/s or fix them. To remove them, go to your file explorer find “NinjaTrader 8” click “Bin”, click “Custom”, click indicator, add-on, strategi or whatever the error file was then scroll down or search for the file and remove/delete it. If you want the file/s and need them fixed post the code.

There is actually official guidance about this, which you should follow first, before taking any further steps.

One caution: do not delete every non-@ .cs file as a first step. That can remove valid custom indicators and shared dependency files.

Compile once in the NinjaScript Editor and use the error grid at the bottom as the source of truth. Start with the first reported file and line, because one missing type or namespace can create many secondary errors in other scripts. Before removing anything, copy Documents\NinjaTrader 8\bin\Custom to a backup folder. Then either fix the first real compiler error or move only the named third-party script and its related files out of Custom, compile again, and repeat.

The import gate should reopen when the full Custom assembly compiles with zero errors. If the error grid names a dependency, restore or reinstall that dependency rather than deleting the script that references it.

you have some code that you may he previously coded it does not compile successfuly.

custom assembly ,you may have c:\Ninjatrader8\bin\custom…

delete db and restart computer and NT8.

All well guys I Uninstaller all NT garbage and install new

Thanks again