Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EXPORT - a lot of indicators

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

    EXPORT - a lot of indicators

    Hi there.

    When developing a strategy or indicator, I use many other indicators. Further, when I export this software, every time I have to add all the indicators that are used by other indicators. This takes a considerable amount of time.

    Is there a way to programmatically (through code) add all the indicators to the project without adding them to the "Export NinjaScript" window?

    Click image for larger version

Name:	Screenshot_26.jpg
Views:	443
Size:	49.9 KB
ID:	1106269

    #2
    Hi webus, thanks for your question.

    If your custom code is using a dependency indicator, the system should detect that and add the script for you. E.g. when I export my strategy that uses the SMA indicator it will automaticaly add the SMA dependency. Try this and see if it works.

    There is not a programmatic way of exporting scripts built into the platform. One could write a C# program that can do it as all these exports are are .zip files.

    Please let me know if I can assist any further.

    Comment


      #3
      Hi NinjaTrader_ChrisL,

      Originally posted by NinjaTrader_ChrisL View Post
      Hi webus, thanks for your question.

      If your custom code is using a dependency indicator, the system should detect that and add the script for you. E.g. when I export my strategy that uses the SMA indicator it will automaticaly add the SMA dependency. Try this and see if it works.
      I think that I do not quite understand what you mean.
      If I try to export a strategy that uses for example the SMA indicator and I did not add it to the archive - I will get an error and I can’t assemble it:
      Click image for larger version

Name:	Screenshot_27.jpg
Views:	370
Size:	11.0 KB
ID:	1106360

      Could you pelase explain step-by-step what you meant?
      How can this "automaticaly add the SMA dependency"?

      Comment


        #4
        Hi webus, thanks for your reply.

        I attached my script that is exporting successfully. Copy the attached .cs file to Documents\NinjaTrader 8\bin\Custom\Strategies>compile>go to Tools>Export NinjaScript addon. After you pick the file name and export it will add the @SMA script. NinjaTrader will try to detect what is needed but if that is not working the needed script must be added. To do a manual export, you can take the host script, the dependencies, and a file named info.xml (see attached, version info is critical. Unzip to view)>select all the files>Send to>Compressed zip file

        Please let me know if I can assist any further.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X