Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use my own dll when i develop my own indicator?

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

    How to use my own dll when i develop my own indicator?

    I try to develope a indicator, and this indicator needs to call my own dll. so how to use it? just add reference as same as what a normal c# project does?
    thanks

    #2
    Hello UMLer,

    Yes if you made a C# dll then you can add it as a reference using the NinjaScript editors right click -> references menu. The dll needs to be placed in the folder: Documents\NinjaTrader 8\bin\Custom

    You would need to place the dll in that folder along with any other dlls or resources that your dll requires. Once you have done that and referenced it you can use it in the NinjaScript editor.

    If you plan to use this dll in a future export there are some considerations to make. One is to never use using statements and always use yourr namespace when accessing types from your dll.
    Code:
    MyNamespace.MyTypeFromMyDll myVariableName = new MyNamespace.MyTypeFromMyDll();
    If you export the indicator that uses the dll you need to select references from the drop down list during the export and select your DLL. After exporting you need to open the zip in windows explorer and drag your dll into the zip. https://ninjatrader.com/support/help...esOrNativeDlls

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    54 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    25 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    17 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X