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

Add trial to code

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

    Add trial to code

    Hello, I realized a simple ninjatrader indicator.now I'm having fun to edit the source code.
    If I wanted to add a trial mode (for example 3 days) , is it possible?
    Thanks

    #2
    Hello pioilbello,

    Thanks for your post.

    I'm not sure I understand what you are asking.

    Are you asking how to add code to your indicator to allow someone else to use it for 3 days?

    Are you asking how to extend your live data trial?
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      I'm asking how to add code to my indicator to allow someone eslse to use it for 3 days

      Comment


        #4
        Hello pioilbello,

        Thanks for your clarification.

        Please see this forum thread on the same topic: https://ninjatrader.com/support/foru...ad.php?t=50356
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          I read the topic, but It is not simple. When I export my indicator to assembly , this is the error:


          My indicator is composed of 3 .cs files. No dll
          Last edited by pioilbello; 10-02-2017, 06:30 AM.

          Comment


            #6
            Hello pioilbello,

            Thanks for your reply.

            Can you compile your indicator without errors?

            If you cannot, or if there are any error generated, these would need to be resolved before exporting can occur. Reference: https://ninjatrader.com/support/help...t_problems.htm
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Yes, I compile my indicator without errors

              Comment


                #8
                Hello pioilbello,

                Thanks for your reply.

                With reference to my prior post, in the helpguide link, review the .Net Referencing section.

                You will need to manually add the TEMA indicator in the same way as the helpguide example shows adding the @SMA. First, select "System Indicators" then > @TEMA.
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Now the error is:
                  Error in export process: C:\Program Files (x86)\SecureTeam\\CliSecure.Console.exe
                  I have installed agile.net but this directory din't exit
                  Last edited by pioilbello; 10-02-2017, 07:34 AM.

                  Comment


                    #10
                    Hello pioilbello,

                    Thanks for your reply.

                    Have you installed the CLI/secure software?
                    Reference: https://ninjatrader.com/support/help...l_security.htm
                    Paul H.NinjaTrader Customer Service

                    Comment


                      #11
                      Ok, I exported it as zip file.Now How can I open it with clisecure? It don't open zip file.
                      It open only cls file

                      Comment


                        #12
                        Hello pioilbello,

                        Thanks for your reply.

                        To export as a protected assembly you will need to check the box, "export as compiled assembly", reference: https://ninjatrader.com/support/help...l_security.htm
                        Paul H.NinjaTrader Customer Service

                        Comment


                          #13
                          If I export as a protected assembly, it is always a zip file.How can I open it with clisecure?

                          Comment


                            #14
                            Hello pioilbello,

                            Thanks for your reply.

                            That is correct, it will be exported as a zipped file containing the DLL and the obfuscated code. At this point you could import to use the indicator in the DLL.
                            Paul H.NinjaTrader Customer Service

                            Comment


                              #15
                              I exctract the ,dll from the zip file, then I open it with clisecure. I add .dll file. select "licensing-Trial" then build, and the dll is changed. Them I put the changed dll file into the original zip?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by gm7_forum, Today, 05:51 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post gm7_forum  
                              Started by cre8able, Today, 03:20 PM
                              1 response
                              9 views
                              0 likes
                              Last Post cre8able  
                              Started by fiddich, Today, 05:25 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post fiddich
                              by fiddich
                               
                              Started by gemify, 11-11-2022, 11:52 AM
                              6 responses
                              804 views
                              2 likes
                              Last Post ultls
                              by ultls
                               
                              Started by ScottWalsh, Today, 04:52 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post ScottWalsh  
                              Working...
                              X