Announcement

Collapse
No announcement yet.

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.
    DierkNinjaTrader Customer Service

    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.
                DierkNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by PanicTrades, 05-10-2020, 08:45 AM
                6 responses
                67 views
                0 likes
                Last Post damon_achey  
                Started by soon123, Yesterday, 11:44 PM
                0 responses
                7 views
                0 likes
                Last Post soon123
                by soon123
                 
                Started by Hyper, Yesterday, 11:10 PM
                0 responses
                5 views
                0 likes
                Last Post Hyper
                by Hyper
                 
                Started by soon123, Yesterday, 10:20 PM
                0 responses
                5 views
                0 likes
                Last Post soon123
                by soon123
                 
                Started by cjcj2323, Yesterday, 09:37 PM
                0 responses
                9 views
                0 likes
                Last Post cjcj2323  
                Working...
                X