NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-31-2008, 05:54 PM   #1
CashCache
Member
 
Join Date: Aug 2007
Posts: 90
Thanks: 0
Thanked 0 times in 0 posts
Default Importing Assembly

I just purchased RemotSoft's Protector to protect my custom strategy. However, after the export which seems to work just fine, I can't figure out how to "install" it on another computer.

I am trying to Import the strategy from File>Utilities>Import. I select the zip file that was created, but the import says there are no files in the archive.

What am I doing wrong here? Do I need to create a generic strategy that uses the reference to my assembly?

Thanks,

-Scott

By the way, thanks for working out special pricing for the Protector. That's a huge savings...
CashCache is offline  
Reply With Quote
Old 01-31-2008, 06:07 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Let's make sure we are on the same page:
- you created an export archive which definitely held at least 1 custom (!) indicator and/or strategy
- you then transfered this archive to a different machine
- as you there tried to import the archive it gave error below?

Note: import on the same machine does nothing since indicators/strategy already is there
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-31-2008, 06:11 PM   #3
CashCache
Member
 
Join Date: Aug 2007
Posts: 90
Thanks: 0
Thanked 0 times in 0 posts
Default

Ahh, maybe that's my problem. I exported the custom strategy using a different name than the original. Then I tried to import it on *the same* machine - then got the error that there were no files in the archive.

I can see my custom DLL in the archive file, but it is the only file in it. Does it know that it's already there even though I exported the strategy as a different name?

-Scott
CashCache is offline  
Reply With Quote
Old 01-31-2008, 06:13 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Not sure I follow: You can not export the strategy at a different name. The name you provide on export is the name of the hosting assembly but not of the startegy (strategy name is maintained).
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-31-2008, 06:15 PM   #5
CashCache
Member
 
Join Date: Aug 2007
Posts: 90
Thanks: 0
Thanked 0 times in 0 posts
Default

That's probably it then. If the steps I am taking to import the strategy are correct, then I will try on a different machine.

Thanks for the quick help...

-Scott
CashCache is offline  
Reply With Quote
Old 01-31-2008, 06:17 PM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

You're welcome.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-31-2008, 10:12 PM   #7
CashCache
Member
 
Join Date: Aug 2007
Posts: 90
Thanks: 0
Thanked 0 times in 0 posts
Default

Dierk,

I tried installing my strategy on a new machine. I got the exact same error - "The NinjaScript Archive File does not contain any NinjaScript files"

Why is this not working? Please walk me through the steps to import a compiled Strategy assembly onto another machine.

Thanks,

-Scott
CashCache is offline  
Reply With Quote
Old 02-01-2008, 05:31 AM   #8
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please mail your export archive to "christian AT ninjatrader DOT com" and reference this post.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 02-01-2008, 08:47 AM   #9
NinjaTrader_Christian
NinjaTrader Development
 
NinjaTrader_Christian's Avatar
 
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
Default

Hi CashCache !

Unfortunately there was an bug introduced, which doesn't allow the import of "strategy-only" export assemblies, exported with NT6.5B5 or later.

The bug is fixed and the fix will be available in the next beta of NT6.5.

In the meantime we recommend as workaround, to create and empty indicator (e.g. 'VoidInd') and include this to your export archive on export. This works on import.

Sorry for the inconvenience,
Christian
NinjaTrader_Christian is offline  
Reply With Quote
Old 02-01-2008, 09:37 AM   #10
CashCache
Member
 
Join Date: Aug 2007
Posts: 90
Thanks: 0
Thanked 0 times in 0 posts
Default

Christian,

That did the trick. Thanks for the workaround!!

-Scott
CashCache 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
Remove Ninjascript Assembly ATI user Historical NinjaTrader 6.5 Beta Threads 1 12-29-2007 08:34 AM
Unable to retrieve infos from assembly.. newbouldm Miscellaneous Support 5 11-22-2007 04:05 AM
Importing .csv files buderim Miscellaneous Support 1 07-10-2007 10:19 PM
importing variables from .txt sandro Indicator Development 1 05-15-2007 06:59 AM
importing bohurst Suggestions And Feedback 1 04-14-2005 06:13 PM


All times are GMT -6. The time now is 05:32 PM.