PDA

View Full Version : Importing NinjaScript


howorb
07-13-2010, 02:24 PM
I am having difficulty importing a NinjaScript onto NT 7. When I attempt to import it I get the following message:

'Import failed. The NinjaScript Archive File may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the import archive.'

Please help!

NinjaTrader_Austin
07-13-2010, 02:30 PM
howorb, to see which script is causing the trouble, please go to Tools -> Edit NinjaScript -> Indicator, double-click on any indicator and then once the editor appears, right-click in the editor and select compile.

At this point, there will be errors at the bottom. You can double-click on the error to try and correct it, or you can go back to Tools -> Edit NinjaScript -> Indicator (or Strategy if it is a strategy) and then delete the offending script.

mgabriel01
08-10-2010, 04:18 PM
Hi - I just installed NT7 for the first time (NT 6.5 is already on my machine)
I am getting the same error. The archive file contains a .dll, a .cs and a .xml file.
Is there a way to unpack the .zip file manually and try to edit the .cs file?
I cannot seem to move the .cs into the indicators section or the .dll to bin/custom from the .zip file
just errors out

NinjaTrader_Austin
08-10-2010, 04:22 PM
mgabriel01, where did you get the script from? You can ask the author to provide you with an updated version. You should be able to just drop the .cs file into the My Documents/NinjaTrader 7/bin/custom/indicator folder and put the .dll into the the /bin/custom folder and compile it. Once you have the script in the /indicators folder, you can open it up either via Notepad or through NinjaScript and edit it however you want.

mgabriel01
08-10-2010, 04:46 PM
Yeah - I have done that in the past
Perhaps my archive (.zip) file is messed up?
I cannot open the .zip manually and move the files out of it
Is there a manual unzipper for that file?
the standard windows unzipper does not work on it

NinjaTrader_Austin
08-11-2010, 08:18 AM
mgabriel01, yes it does sound like the .zip archive could be corrupted, since you can't even open it. The .zip format is a standard and if the Windows unzipper can't open it, I doubt any other programs will be able to open it either.

mgabriel01
08-11-2010, 08:47 AM
Thanks
I'll get a fresh copy and try again