Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:	339
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.
    Chris L.NinjaTrader Customer Service

    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:	288
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
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by JonesJoker, 04-22-2024, 12:23 PM
        8 responses
        41 views
        0 likes
        Last Post JonesJoker  
        Started by timko, Today, 06:45 AM
        0 responses
        3 views
        0 likes
        Last Post timko
        by timko
         
        Started by Waxavi, 04-19-2024, 02:10 AM
        2 responses
        39 views
        0 likes
        Last Post poeds
        by poeds
         
        Started by chbruno, Yesterday, 04:10 PM
        1 response
        44 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Max238, Today, 01:28 AM
        1 response
        25 views
        0 likes
        Last Post CactusMan  
        Working...
        X