• 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

Export NinjaScrip with System Reference

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

    Export NinjaScrip with System Reference

    I was exporting an Indicator I wrote that uses ACCORD .NET which required SYSTEM.DATA.DLL be added to the references to compile.

    Once I tried to export the "system.data" reference to properly setup the next system for import, I got the following error:
    WARNING: Error compiling export assembly: error CS0006: Metadata file 'C:\Users\Greg\Documents\NinjaTrader 8\bin\Custom\System.Data.dll' could not be found
    This file is in the "Windows\Microsoft.NET\Framework64\V4.0.30319\ " folder. How Can I export this reference?

    Also, why doesn't the export add the DLLs to the ZIP export file? I assume I need to add my \Custom\Accord.***" files to the ZIP to import. I certainly don't want to import the System.Data.DLL though...

    Thanks

    #2
    Hello NJA_MC,

    Thank you for your post.

    Does the reference to System.Data.dll list the full directory? Does it list NinjaTrader 8\bin\Custom?
    You can check this by right clicking in your NinjaScript Editor and selecting References.

    I am assuming NinjaTrader is looking for System.Data.dll in the Documents\NinjaTrader 8\bin\Custom folder instead of the needed directory.


    The export process is only to add .cs files to a .zip for import or to create a .dll from select .cs sources. It is not intended to include any other outside referenced libraries.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hi Patrick,

      It is the entire path listed in the References box:
      Attached Files

      Comment


        #4
        Hello NJA_MC,

        You would make a copy of the System.Data.dll and paste it into Documents\NinjaTrader 8\bin\Custom. Change the reference in the NinjaScript Editor and then export.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rtwave, Today, 04:40 AM
        0 responses
        2 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by pollard89143, Today, 04:21 AM
        0 responses
        4 views
        0 likes
        Last Post pollard89143  
        Started by Lisa Marshall, 01-25-2020, 04:17 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by HiddenPhilosopher, Yesterday, 11:24 PM
        0 responses
        3 views
        0 likes
        Last Post HiddenPhilosopher  
        Started by akuntysh, 01-25-2020, 08:42 AM
        2 responses
        12 views
        0 likes
        Last Post akuntysh  
        Working...
        X