Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to protect a piece of code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to protect a piece of code

    Good morning,
    I developed an Algorithm over the past few years, first with Ninja 7 and now with Ninja 8 which, in addition to providing the input signal (Long / Short) tells you, above all, when to exit (Profit / StopLoss). I was asked to sell it or use it for rent. How can I protect the algorithm I should give to others, considering that the user should be able to modify the entry condition but not see the rest of the code that manages the outputs (Profit / StopLoss). Attached the image showing the 2 Region that should not see the user (to be protected). Thank you.
    Roberto
    Attached Files

    #2
    Hello Italy,

    Thank you for the post.

    You can find directions on how to protect an export in the following link. You have a few options, you can compile the assembly which essentially just makes a dll, this is no longer user readable but is also not a protected dll. You can optionally purchase the agile.net to further protect exports.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I tried the link to figure out how to compile a non-readable version of a script but the page was not found. Is there a new link that could be posted? I don't want to have to give myself a license so generally, what is the best practice when a vendor is creating products for others but doesn't want to have to add their machine ID in order to use the script? Do most vendors just create two copies of their indicators/strategies, one without readable code that just sits for clients and one version for themselves?

      Thanks for the help.

      Comment


        #4
        Hello Ymcapital,

        Thanks for your notes.

        Please see the 'Exporting NinjaScript as Assembly' section of this help guide for information about how to protect an export.


        The link above details how to export the script as an assembly (dll) which makes the code of the script no longer user-readable but is also not a protected dll.

        You can optionally purchase the Agile.NET to further protect exports. This is noted on the help guide page linked above.

        Yes, an option could be to export the script as source files for you to be able to view and modify the script and to export the script as an assembly (dll) which could be shared with others.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          I read through that page but as a vendor, what code needs to be added to the indicator or strategy so that it can be given access only to specific machine ID's? That's the part I'm not finding documentation on.

          Comment


            #6
            Hello Ymcapital,

            Thanks for your notes.

            The vendor licensing service we provide is for members of the NInjaTrader Ecosystem only.

            If you are already a vendor, please contact our Vendor Support team directly at vendorsupport[at]ninjatrader[dor]com​ regarding your inquiry and one of our technicians will be happy to assist you with this.

            If you are not already a vendor and would like to become one, please contact info[at]ninjatraderecosystem[dot]com and one of our technicians will be happy to assist you.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Already done. Thanks Brandon.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ScottWalsh, Today, 06:52 PM
              3 responses
              19 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by trilliantrader, Today, 03:01 PM
              2 responses
              18 views
              0 likes
              Last Post helpwanted  
              Started by cre8able, Today, 07:24 PM
              0 responses
              1 view
              0 likes
              Last Post cre8able  
              Started by Haiasi, Today, 06:53 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by ScottW, Today, 06:09 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X