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

Secure distribution of custom Indicators and Strategies

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

    Secure distribution of custom Indicators and Strategies

    I've tried following the directions in the help file for securely distributing custom indicators but the .cs file that I am supposed to distribute with the DLL that was created is CLEAR TEXT. What is the purpose of generating the DLL if you must still distribute the clear text version of the custom code?

    Am I missing something?

    Here are the steps I performed:

    1) Created a text file named NinjaTrader.myname.cs in .\Custom\Indicators

    2) Copied all of the text from the NinjaScript Editor (excl. declarations) for each custom indicator into this text file and saved it.

    3) Opened this vendor file in the NinjaScript Editor and compiled it.

    4) Renamed the DLL in .\Custom to NinjaTrader.myname.dll as instructed.

    Now what?How do I secure my code?

    Thank you.

    #2
    imported post

    The cs file you distribute is just a wrapper to your custom indicators. It needs to be clear text. Your actual indicator code is compiled into the DLL and is as safe or unsafe as any other compiled .NET code is.

    Comment


      #3
      imported post

      Is the compiling of the Vendor file supposed to change the NinjaTrader.myname.cs file to make it into a stub?

      All of my original source code remains in the file.

      Thanks again.

      Comment


        #4
        imported post

        What do you mean by stub?

        Ray
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          Sorry ... meant the wrapper functions


          Comment


            #6
            imported post

            The Vendor file contains wrapper methods that get added to the Strategy and Indicator classes.

            So if your custom strategy name is MyStrategy, when compiled with a Vendor file, the consuming user will be able to call from within their indicator, MyStrategy(). The actual indicator logic is contained in the DLL.

            Ray
            RayNinjaTrader Customer Service

            Comment


              #7
              imported post

              Can I place multiple indicators in one Vendor file? Do indicators and strategies need to be placed into separate Vendor files?

              Thank you.

              Comment


                #8
                imported post

                Yes, they can be contained in one Vendor file.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by alifarahani, Today, 09:40 AM
                4 responses
                19 views
                0 likes
                Last Post alifarahani  
                Started by gentlebenthebear, Today, 01:30 AM
                3 responses
                16 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by PhillT, Today, 02:16 PM
                2 responses
                7 views
                0 likes
                Last Post PhillT
                by PhillT
                 
                Started by Kaledus, Today, 01:29 PM
                3 responses
                11 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by frankthearm, Yesterday, 09:08 AM
                14 responses
                47 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Working...
                X