NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-13-2010, 02:24 PM   #1
howorb
Junior Member
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Importing NinjaScript

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!
howorb is offline  
Reply With Quote
Old 07-13-2010, 02:30 PM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

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.
NinjaTrader_Austin is offline  
Reply With Quote
Old 08-10-2010, 04:18 PM   #3
mgabriel01
Member
 
Join Date: Oct 2008
Posts: 70
Thanks: 1
Thanked 2 times in 2 posts
Default

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
mgabriel01 is offline  
Reply With Quote
Old 08-10-2010, 04:22 PM   #4
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

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.
NinjaTrader_Austin is offline  
Reply With Quote
Old 08-10-2010, 04:46 PM   #5
mgabriel01
Member
 
Join Date: Oct 2008
Posts: 70
Thanks: 1
Thanked 2 times in 2 posts
Default

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
mgabriel01 is offline  
Reply With Quote
Old 08-11-2010, 08:18 AM   #6
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

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.
NinjaTrader_Austin is offline  
Reply With Quote
Old 08-11-2010, 08:47 AM   #7
mgabriel01
Member
 
Join Date: Oct 2008
Posts: 70
Thanks: 1
Thanked 2 times in 2 posts
Default

Thanks
I'll get a fresh copy and try again
mgabriel01 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error when back up and seems similar error when importing ninjascript .zip file MoreYummy Miscellaneous Support 6 06-22-2010 04:30 PM
Error importing Ninjascript on NT 6.5 shadowfax General Programming 1 06-13-2010 06:53 PM
Importing NinjaScript File Trouble CRCatNinja General Programming 14 06-03-2010 08:44 AM
Trouble importing Ninjascript from v6.5 cassb Version 7 Beta General Questions & Bug Reports 3 10-20-2009 11:45 AM
importing bohurst Suggestions And Feedback 1 04-14-2005 06:13 PM


All times are GMT -6. The time now is 11:40 PM.