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 traderqz, Today, 12:06 AM
        2 responses
        3 views
        0 likes
        Last Post traderqz  
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DavidHP, Today, 07:56 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by kujista, Today, 06:23 AM
        3 responses
        11 views
        0 likes
        Last Post kujista
        by kujista
         
        Working...
        X