![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
|
|
#3 |
|
Junior Member
|
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. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Sorry i don't understand. It will import into another PC no problem when it is protected no problem.
-Brett
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
|
|
#5 |
|
Junior Member
|
Hi
Will not let me import it gives me error. thank |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Can you please let me know what error you are getting on import. I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
|
|
#7 |
|
Junior Member
|
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, |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#9 |
|
Junior Member
|
Does not fail, I can change what you want. thanks
|
|
|
|
|
|
#10 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#11 |
|
Junior Member
|
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 |
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
Mariano,
Do you perhaps have a direct link to this or have it available to send to support@ninjatrader.com?
Adam P.
NinjaTrader Customer Service
Last edited by NinjaTrader_AdamP; 12-02-2011 at 03:10 PM.
|
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#13 |
|
Junior Member
|
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 |
|
|
|
|
|
#14 |
|
Junior Member
|
If I have compiled exported in the first PC, then the second PC will not let me import it?
|
|
|
|
|
|
#15 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |