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

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.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by maybeimnotrader, Yesterday, 05:46 PM
    2 responses
    20 views
    0 likes
    Last Post maybeimnotrader  
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    22 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X