Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use Agile.net with exporting indicators

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

    How to use Agile.net with exporting indicators

    Hello,
    I have purchased Agile.net and have it loaded on my computer. Is there anyone who can explain how to use it to obfuscate my indicators? I've read the quick start and it seems I can't load any indicators into the module. Do I even need to or do I just select the "Agile.net" option when exporting?
    I'm a complete novice here and apologize for my lack of knowledge here.
    Any help would be greatly appreciated.
    Thank you for your time.
    James

    #2
    Hello laoshr,

    After you have installed/setup agile.net you won't need to interact with the agile software any longer, during the NinjaScript export you would just select the protected export. The platform uses the installed agile.net software during the export process to protect the dll.

    I look forward to being of further assistance.

    Comment


      #3
      Jesse,
      Thank you. Do you know if I need to change any settings in the Agile.net application or just run it as is?
      Thanks again for any help. You guys on this support have been awesome.
      Thank you.
      James

      Comment


        #4
        Hello laoshr,

        The platform has pre-configured settings which it uses with the agile process so you don't have to do anything additional.

        I look forward to being of further assistance.

        Comment


          #5
          Jesse,
          I check the Agile box when exporting but when I open the zip file and open the .cs file the code is all there and viewable. I assume there are some settings I need to possibly add on the Agile side. Any help is appreciated.
          Thank you again.
          James

          Comment


            #6
            Hello laoshr,

            You should still get a .cs file that contains some necessary code when doing a compiled export. The dll in the zip would be the code you are trying to protect. If you see that the DLL file is in the zip then it should be protected.

            I look forward to being of further assistance.

            Comment


              #7
              Thank you, Jesse.
              You have been a tremendous help. I did review the .cs file and everything looks as you said.
              Thank you very much for all your help.
              James

              Comment


                #8
                Hello Jesse,
                I figured I could just ask here. Let me know if I should always make a new thread.
                I exported the indicator and loaded it on another computer. The indicator uses calls on a 3rd party indicator (GomiOrderFlowPack) for values. The indicator imports fine but when I try and load it on a chart it has an error. I don't get this error when loading it on my main computer/account.
                I do get the message for the 3rd party indicator that the license is expired but nothing else shows on the chart.
                The error is error message.txt
                Thank you for your time. Let me know if you need more.
                James

                Edit: Jesse - I think it has something to do with the OnBarUpdate for the swingrays. I attached that part of the code. Again, I don't get any error on my main computer but when trying to load on another computer this error comes up.
                Thanks again for any help.
                James
                Attached Files
                Last edited by laoshr; 09-23-2021, 05:17 PM.

                Comment


                  #9
                  Hello Jesse,
                  I contacted the developer of the OrderFlow software and put a license for the orderflow on the laptop and then the error went away. Question: could that error be because of not having the orderflow license? Thanks again.

                  When I open my platform I do get this message and it seems my indicator is automatically taken off the chart. Then I have to reapply it and it works fine.
                  Thank you for your time.
                  James
                  Attached Files
                  Last edited by laoshr; 09-24-2021, 07:14 AM.

                  Comment


                    #10
                    Hello laoshr,

                    This is Jim responding on behalf of Jesse who is out of the office at this time.

                    It is possible, but to really be sure, we would have to understand where exactly in the code the index out of range error was. This would involve using debugging prints to see how far the code gets when the error is hit to see what is exactly throwing the error.

                    Generally that sort of error is seen when testing a specific set of data where the code references X bars ago when the script has not yet processed that many bars.

                    Comment


                      #11
                      Thank you, Jim.
                      I loaded a license for the OrderFlow software and then loaded my signal indicator and there was no error. So, it seems it is connected to the GomOrderFlow software license.
                      There is a weird thing that happens when I restart my platform. The indicator is removed from the chart automatically and I get that log entry I posted above (#9). I load the indicator back on and it runs perfectly. Do you know why this might be?
                      Thanks again Jim for any help with this.
                      James

                      Comment


                        #12
                        Do you have [XmlIgnore()] in properties where serialization is required so that the indicator can be saved in a workspace or template?
                        eDanny
                        NinjaTrader Ecosystem Vendor - Integrity Traders

                        Comment


                          #13
                          Hello laoshr,

                          To elaborate on eDanny's comment, serialization takes place on public properties. Nothing special has to be done for common types like int, double, and string, but if you are have more complex public properties (for example, a Brush) a serializable backing field would be needed to convert the non-serializable public type to something that can be serialized. The non-serializable type would then need to have [XmlIgnore()] added so it is not written to XML (template, workspace, etc.)

                          We would want to worry about serialization for properties that are needed in the construction of that NinjaScript object (stuff needed to build the object from saved properties in a a template or workspace.)

                          If the public property is just meant for other objects to access, just use [XmlIgnore()], and don't worry about serialization.

                          The example/tip linked below describes serializing brushes and using a serializable backing field.


                          Comment


                            #14
                            Thank you eDanny and Jim. The XLMIgnore was the issue. It seems I forgot one and that was causing the log error for failing to restore the indicator.
                            I have a question regarding licensing.
                            If I have an indicator that I want to attach to 2 different licenses is this possible?. Example: I have an indicator that is used for 2 different strategies and each strategy has its own license.
                            So, is it possible to add multiple products to the licensing verification code in the indicator?
                            Thanks again for all your help and time.
                            James

                            Comment


                              #15
                              Hello laoshr,

                              Each indicator will have the product name applied within its own vendor licensing code, so I may suggest then to distribute a DLL which would contain the indicator needed by both strategies, and then have the strategies on separate licenses. When a user needs authorization to use a strategy, they would need a license for the 1) The indicators needed by the strategy, and 2) the specific strategies them selves that would need authorization.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              558 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              324 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              101 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              545 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              547 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X