Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addon assembly import and usage

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

    Addon assembly import and usage

    Hi,

    I'm developing my own set of indicators on my computer and I'm packaging them as an assembly to transfer to my VPS.

    Is there a way to install the new package without removing the older version?
    Also, is there a way to read the "product" name and version that I used in the export window?
    Lastly, it would be nice if I could save the list of items in the export window - I have several indicators that I need to collect from the long list every time I want to update the version - any tip here?

    Thanks,
    Haim

    #2
    Hello haimcn,

    When importing you can select yes during the import process to replace the item. If it is not bringing up that screen that is likely due to how you coded or exported the items. The alternative is to just remove them and then import the new version after restarting.

    There is not a way to read the version, you would need to hard code the version as part of the items name using the DisplayName override. https://developer.ninjatrader.com/do...or_displayname

    There is not a way to save a list of items in the export window, you would need to select them each time you export.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks, Jesse, for the reply.

      Regarding the first part - I cannot import the same package (with a different version).
      I get the an error due to having duplicate method names.

      Click image for larger version

Name:	image.png
Views:	15
Size:	14.6 KB
ID:	1338621

      Thanks​

      Comment


        #4
        Hello haimcn,

        Yes in that case due to how the item is coded you will need to first uninstall it then restart before importing the new version.
        JesseNinjaTrader Customer Service

        Comment


          #5
          So, the question is whether there is a way to implement it in a way that it will not happen?
          Obviously, if I update the same indicator I will have the same function name...

          Thanks

          Comment


            #6
            Hello haimcn,

            That highly depends on what you made and what it references. For example if you create a simple indicator like an SMA that just plots a value and export it, you should see that you can import and replace it. To find out what is causing that you would have to deconstruct what you made by commenting out logic until you get down to just the base indicator or strategy class and export it, make sure that works. Then uncomment bits of the logic at a time and repeat the test until you find what code is causing that. Depending on the code the solution would vary.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Thanks again.
              I guess it will not work - my indicators are pretty complex, they include many functions, so I guess I'll have to remove the script before installing a new version.

              BTW, regarding my third question in the original post - I've created a "package" class with members for each one of the indicators that I need to export, that way I only select the package class and all the indicators are being exported.

              Thanks

              Comment


                #8
                Hello haimcn,

                The only supported way for the import to pull in indicators would be if a strategy or indicator is using another indicator. If you made a custom class that likely won't work to have that happen and you will likely need to select each file during the export.
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  Hi Jesse,

                  You may be right in theory, but it works, so I don't complain...

                  Thanks

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by rajeshks1988, 01-13-2021, 12:00 PM
                  10 responses
                  1,255 views
                  0 likes
                  Last Post konganda  
                  Started by M_ichel, 04-22-2025, 02:21 PM
                  7 responses
                  57 views
                  1 like
                  Last Post brucerobinson  
                  Started by michelz, 02-18-2025, 08:30 AM
                  33 responses
                  1,054 views
                  0 likes
                  Last Post MiCe1999  
                  Started by volIQ, 04-23-2025, 05:43 PM
                  4 responses
                  38 views
                  0 likes
                  Last Post volIQ
                  by volIQ
                   
                  Started by algospoke, 04-21-2025, 06:44 PM
                  2 responses
                  48 views
                  0 likes
                  Last Post MiCe1999  
                  Working...
                  X