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 sidlercom80, 10-28-2023, 08:49 AM
                167 responses
                2,260 views
                0 likes
                Last Post jeronymite  
                Started by warreng86, 11-10-2020, 02:04 PM
                7 responses
                1,361 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by Perr0Grande, Today, 08:16 PM
                0 responses
                5 views
                0 likes
                Last Post Perr0Grande  
                Started by elderan, Today, 08:03 PM
                0 responses
                9 views
                0 likes
                Last Post elderan
                by elderan
                 
                Started by algospoke, Today, 06:40 PM
                0 responses
                10 views
                0 likes
                Last Post algospoke  
                Working...
                X