NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 11-30-2011, 08:39 PM   #1
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default CliSecure Protecting Your Code

Hello to All:
I am new to this forum.
I want to know the correct version and install it.

Protecting Your Code
CliSecure .NET code protection module offers better protection for your .NET code by providing a protection that goes beyond standard obfuscation methods., .....

1. Before
public bool VerifyLicense()
{

string file = GetLicenseFile();
Trace.WriteLine("License file path:{0}",file);
if (File.ReadAllText(file)!=this.licenseKey)
{
throw new LicenseException(null,null,"Invalid license");
}
return true;
}


2.After
public bool VerifyLicense()
{
return false;
}

thank you very much
MarianoMA is offline  
Reply With Quote
Old 12-01-2011, 06:27 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the note and welcome to the forum.

Please use these instructions located here for protection.

http://www.ninjatrader.com/support/h...l_security.htm

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Old 12-01-2011, 08:04 PM   #3
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

Hi
If this procedure do not let me import it and that's fine, but I also want a certain program, if I put it on another PC, do not see the algorithm to run the export compiled assembly. How to do it, thanks.
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 06:43 AM   #4
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Sorry i don't understand. It will import into another PC no problem when it is protected no problem.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Old 12-02-2011, 09:28 AM   #5
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

Hi
Will not let me import it gives me error.
thank
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 10:29 AM   #6
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Can you please let me know what error you are getting on import.

I look forward to assisting you further.
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Old 12-02-2011, 02:21 PM   #7
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

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.
Thanks,
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 02:43 PM   #8
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Mariano,

Please go to tools > edit ninjascript > select a random file.

Then, please hit the compile button at the top of the screen. From here, please report any error messages generated.

I look forward to helping you solve your issue.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 12-02-2011, 02:46 PM   #9
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

Does not fail, I can change what you want. thanks
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 02:57 PM   #10
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Mariano,

This means your NinjaTrader directories are in a compilable state so there is nothing wrong with your setup. It most likely means the indicator you are attempting to import either has programming errors in it or its for the wrong version of NinjaTrader. If you want me to check, please attach the indicator to a forum post and give me your version number. You can find this in Help > About.

Please let me know if I may assist further.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 12-02-2011, 03:01 PM   #11
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

Import from forum SimpleHighLowCross.zip
Then I used export compiled assembly / * Protect compiled assemblies, and then not let me import it to another PC.Thanks
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 03:06 PM   #12
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Mariano,

Do you perhaps have a direct link to this or have it available to send to support@ninjatrader.com?
Last edited by NinjaTrader_AdamP; 12-02-2011 at 03:10 PM.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 12-02-2011, 03:12 PM   #13
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

06.09.2007, 20:52
NinjaTrader_Josh
NinjaTrader Product Manager

Strategy: Trading crossovers
...........
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file
Attached Files
SampleHighLowCross.zip (1.2 KB, 1697 views
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 03:19 PM   #14
MarianoMA
Junior Member
 
Join Date: Nov 2011
Location: Elche.Alicante.Espaņa
Posts: 16
Thanks: 14
Thanked 0 times in 0 posts
Send a message via Skype™ to MarianoMA
Default

If I have compiled exported in the first PC, then the second PC will not let me import it?
MarianoMA is offline  
Reply With Quote
Old 12-02-2011, 03:21 PM   #15
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Mariano,

What version of NinjaTrader is on the second PC?

The second PC could also have compiling errors from some indicators, you will need to check the PC you are trying to import the strategy onto for compiling errors, as the one you export from has no bearing on whether or not the second PC is in a compilable state.

You can check using Tools > Edit NinjaScript > Select a file > Hit compile > report any errors.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
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
What CliSecure options are being used? koganam Installation and Licensing 10 03-21-2011 07:37 AM
Locking or Protecting Code lawyse Strategy Development 4 12-10-2010 04:55 PM
One paranoid thought: protecting our code and automatic email notification TakisTakis Version 7 Beta General Questions & Bug Reports 3 07-09-2010 06:42 AM
Protecting code ssg10 General Programming 5 06-01-2009 08:44 AM
Protecting new code JohnnyR Automated Trading 1 01-02-2009 11:29 AM


All times are GMT -6. The time now is 07:20 AM.