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:	435
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:	362
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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X