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

External reference compiles but doesn't work

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

    External reference compiles but doesn't work

    I've used Sqlite in my custom indicator for almost ten years starting back in the NT7 days. When the early NT8 betas came out, I updated my ninjascript successfully and was able to continue Sqlite access from my indicator. I ended up sticking with NT7 for a while but am now giving NT8 a try again and I'm having a problem referencing this dll in 8.0.5.2.

    I added the reference by right-clicking in the ninjascript editor. It gets added without any errors and compilation also seems to work as well. However once I open the indicator list on a chart, I see the "Could not load file or assembly" error in the console output.

    I'm using the same dll that I've always used before. Any ideas on this? Am I adding the reference incorrectly?

    #2
    Hi NinjaTrader_ChrisL,

    This is in response to your reply on the post I accidentally made in the NT7 forum:


    Hello,
    Thank you for the note.
    Please first ensure that you copy the sqlite.dll into C:\Users\<user name>\Documents\NinjaTrader 8\bin\Custom.
    Your SQLite dll might be a 32 bit dll since you were using it with NinjaTrader 7. If you are running NinjaTrader 8 as a 64 bit application the dll will not load. Try to obtain the 64 bit version of the dll and see if that works.
    Note that the latest version on NinjaTrader is 8.0.6.1 and most importantly that Indicators developed for NinjaTrader 7 will not run on NinjaTrader 8 unless they are ported by the vendor or yourself.
    If we may be of any further assistance, please let us know.

    ----------------------------------------------------------------------------------------------

    The dll is in the \bin\Custom folder and is also 64 bit (I was using NT7 64 before). I also ported it successfully in the early NT8 betas as I mentioned so either I'm doing something different now or something changed in NT8 since then. I'll upgrade to the latest version and see if that helps.

    Thank you

    Comment


      #3
      Hello,
      Thank you for the reply.
      Can you please link me to the dll you are trying to use? I have found several different SQLite libraries.
      I look forward to your reply.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Ugh realized I mixed up the dll and it was for the wrong .NET version

        Comment


          #5
          Hello,
          Thank you for the reply.
          May I confirm, did you resolve your inquiry?
          I look forward to your reply.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Yes the indicator works now. I just wish the error would have caught at compile time. It was a weird time to fail (loading the indicator list on a chart) and I had to open the console output to see it. Anyway, glad it's working now and thanks for your help!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by haas88, 03-21-2024, 02:22 AM
            18 responses
            207 views
            0 likes
            Last Post haas88
            by haas88
             
            Started by Board game geek, Today, 02:20 AM
            0 responses
            1 view
            0 likes
            Last Post Board game geek  
            Started by knighty6508, Today, 01:20 AM
            2 responses
            14 views
            0 likes
            Last Post knighty6508  
            Started by franatas, Today, 01:53 AM
            0 responses
            2 views
            0 likes
            Last Post franatas  
            Started by knighty6508, Today, 01:17 AM
            0 responses
            9 views
            0 likes
            Last Post knighty6508  
            Working...
            X