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:	472
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:	384
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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        477 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        256 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        340 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        308 views
        0 likes
        Last Post CarlTrading  
        Working...
        X