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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X