Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add References automatically when user imports a strategy?

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

    How to add References automatically when user imports a strategy?

    A strategy uses some UI standard NinjaTrader controls and requires to add references manually through editor.
    Also any user of the strategy have to do this manually even he imports it.
    How can I avoid this?

    #2
    Hello fut_practic,

    The first step would be during the export where you select your script that you are exporting.

    Select the drop-down list and select "References".
    Find the reference and check the box next to it.
    Export the script as you would normallly after doing this.

    After the export, you will see a note that the user needs to have X assembly loaded to import this file. You will additionally need to add the dll to the zip file, you can find instructions on how to do this in the following link:


    In windows, if you don't have a program associated with .zip files you should be able to double click the zip file to open it with windows explorer. You can then drag the .dll files into your zip and just X the window out when you are complete. If you use other .zip software, please consult with the .zip software manual to find how to zip files using that software.

    By doing the checkbox next to the reference during the export, that will automatically generate the AdditionalReferences.txt file which is mentioned in the help guide so that step can be skipped if you did the export correctly.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    55 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X