Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X