NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 12-21-2010, 09:10 PM   #1
kaywai
Senior Member
 
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 4 times in 4 posts
Default NT7 importing indicator error message

Hi,

I tried to import an indicator I had created using NT6.5 but this error came up.

Yes, the import failed but what do it mean "the ninjascript archive file may contain duplicate method names that already exist on your PC"?

i am running both NT7 and NT6.5 on the same PC but only NT7 is running when I tried to do the import.

Please help.

Regards

Kay Wai
Attached Images
File Type: gif NT7 error message.png (8.8 KB, 12 views)
kaywai is offline  
Reply With Quote
Old 12-21-2010, 11:41 PM   #2
NinjaTrader_Chip
NinjaTrader Customer Service
 
NinjaTrader_Chip's Avatar
 
Join Date: Dec 2009
Location: Denver, CO
Posts: 1,422
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello kaywai,

Thank you for your post.

Note that NinjaScript indicators & strategies cannot be migrated directly from NinjaTrader 6.5 to NinjaTrader 7. Please reference the Migration Guide at the following:
http://www.ninjatrader.com/migration-guide-v7.php

You may need to modify this script but note the code-breaking changes that took place in NinjaTrader 7:
http://www.ninjatrader.com/support/f...ad.php?t=21016

Please let me know if you have any additional questions.
NinjaTrader_Chip is offline  
Reply With Quote
Old 12-28-2010, 03:25 PM   #3
MrOrange
Member
 
Join Date: Oct 2010
Posts: 32
Thanks: 6
Thanked 2 times in 2 posts
Default

I'm receiving the same error message, for a custom indicator that i just exported from the same computer i'm trying to import it into.

Here's what i'm doing.

I have my script, compiled, on version 7.0.1000.1
I export my script using "Export compiled assembly of selected source files"
I then try to import the script back into Ninja 7.0.1000.1, on the same computer.
I get the error "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" - Same as Kay Wai.
I also tried importing it onto a different computer, also running Ninja 7 (but an older version) - i get the same error.

Any suggestions?

Thanks!
MrOrange is offline  
Reply With Quote
Old 12-28-2010, 04:08 PM   #4
NinjaTrader_Chip
NinjaTrader Customer Service
 
NinjaTrader_Chip's Avatar
 
Join Date: Dec 2009
Location: Denver, CO
Posts: 1,422
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello MrOrange,

Thank you for your post.

Just to clarify – are you trying to import an indicator that already exists on this target PC?
NinjaTrader_Chip is offline  
Reply With Quote
Old 12-28-2010, 04:24 PM   #5
MrOrange
Member
 
Join Date: Oct 2010
Posts: 32
Thanks: 6
Thanked 2 times in 2 posts
Default

Thanks for the quick response.

I was trying to do both. 1. Import it onto the PC i just exported it from, and 2. Import it onto my laptop, which did not have it.

I was able to resolve the problem by doing some more searching on the forums. It was this thread in particular, that did the trick: http://www.ninjatrader.com/support/f...ad.php?t=33652

As bobcat says in that thread, this should be a bit more well documented. The problem seems to simply be that if you export an assembly from a machine that has previously imported other (3rd party) assemblies, references to those 3rd party assemblies get exported into the assembly you're exporting!

Sorry that explanation is a mouthful, but from what i understand on the other thread, it's correct.

Cheers!
MrOrange is offline  
Reply With Quote
Old 12-28-2010, 06:46 PM   #6
kaywai
Senior Member
 
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 4 times in 4 posts
Default

MrOrange,

This is my workaround.

1. Open the indicator in an C# editor.
2. Copy the indicator's script to NT7
3. Compile the indicator.
4. Correct errors where necessary.

It's worked for me so far.

Regards

Kay Wai
kaywai 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 message after Installing NT7 New release with bug freewind Installation and Licensing 2 12-13-2010 04:55 AM
NT7 error message on adding a strategy to a chart SammyC Strategy Development 1 12-13-2010 03:03 AM
Error importing compiled indicator eDanny Indicator Development 14 04-03-2009 01:39 PM
Error importing a indicator xewoox General Programming 1 02-26-2009 02:01 PM
Data not importing with no error message Futures_Shark Charting 1 05-12-2008 11:05 PM


All times are GMT -6. The time now is 04:31 AM.