• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
    https://ninjatrader.com/support/help...esOrNativeDlls

    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.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by johnnybegoode, Today, 11:35 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by NickyD, Today, 09:07 AM
    3 responses
    14 views
    0 likes
    Last Post NickyD
    by NickyD
     
    Started by 7robert, Today, 06:46 AM
    3 responses
    62 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by ElMagoR, Today, 07:49 AM
    4 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Nabil, 09-13-2019, 11:44 AM
    5 responses
    35 views
    0 likes
    Last Post Nabil
    by Nabil
     
    Working...
    X