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

Importing DLL in indicator

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

    Importing DLL in indicator

    Hello I've a problem with this dll

    permvar.zip

    Dll is in Documents\Ninjatrader 7\bin\Custom folder, and i add a reference in my indicator (Right Click-->References) but when I try to compile an error occurred:

    Metadata file 'c:\....\Custom\permvar.dll' could not be opened

    Can you help me?

    #2
    Hello Peperlizio,

    Thank you for your post.

    This error indicates that it is more than likely a corrupt DLL file and will need to get a new one.
    However, are there other resources that are suppose to come with this DLL, that weren't in your .Zip file?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Dll is used to write and read value in system registry

      Here you are my indicator, it saves current price to a registry key.

      If i use DllImport command without reference dll all works fine but in this case i've to specify dll folder path (c:\ in this case) and using Export Ninja Script dll is not included in zip file.
      Attached Files

      Comment


        #4
        Peperlizio,

        Please send me a note to support[at]ninjatrader[dot]com
        Put ATTN Cal in the subject and a reference to this thread in the body.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rocketman7, Today, 02:12 AM
        5 responses
        23 views
        0 likes
        Last Post rocketman7  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        7 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by samish18, 04-17-2024, 08:57 AM
        17 responses
        66 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by briansaul, Today, 05:31 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by PaulMohn, Today, 03:49 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X