I am evaluating the NinjaTrader and trying to find out its major capabilities. I have a question, for which I couldn't find an explicit answer in documentation. Can I use in NinjaTrader scripts external .NET libraries like we do in regular .NET solutions simply by referencing them? I have DLL's with methods for time series analysis, which I'd like to use while scripting custom strategies. Is it possible?
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!
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
NinjaTrader
Using external .NET DLL's.
Collapse
X
-
Using external .NET DLL's.
Hi,
I am evaluating the NinjaTrader and trying to find out its major capabilities. I have a question, for which I couldn't find an explicit answer in documentation. Can I use in NinjaTrader scripts external .NET libraries like we do in regular .NET solutions simply by referencing them? I have DLL's with methods for time series analysis, which I'd like to use while scripting custom strategies. Is it possible?Tags: None
-
Thank you, mrlogic, for you tip. I suspect you are talking about .net DLL's in general (I've been doing that for years), but I was trying to find out how to use them in NT. Out of curiosity I still searched Internet for DLL's in conjunction with NinjaTrader, but didn't see anything relevant to what I'm looking for. And even if I did, I am usually pretty cautious about using "undocumented" features. Too much at stake and not enough time! Today there is no lack of other products that do that.
Comment
-
Originally posted by Hyppo View PostThank you, mrlogic, for you tip. I suspect you are talking about .net DLL's in general (I've been doing that for years), but I was trying to find out how to use them in NT. Out of curiosity I still searched Internet for DLL's in conjunction with NinjaTrader, but didn't see anything relevant to what I'm looking for. And even if I did, I am usually pretty cautious about using "undocumented" features. Too much at stake and not enough time! Today there is no lack of other products that do that.
using System.Runtime.InteropServices;
...
[DllImport("c:/MyFilePath/MyDLL.dll")]
public static extern double MyGetDouble(int myInput);
...
double myDouble = MyGetDouble(10);
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RDTrader16, Yesterday, 10:19 PM
|
1 response
14 views
0 likes
|
Last Post Today, 07:33 AM | ||
Started by f.saeidi, Today, 12:11 AM
|
1 response
11 views
0 likes
|
Last Post Today, 07:33 AM | ||
Started by merc410, Today, 03:41 AM
|
3 responses
20 views
0 likes
|
Last Post Today, 07:31 AM | ||
Started by RaddiFX, Yesterday, 09:55 PM
|
1 response
21 views
0 likes
|
Last Post Today, 07:29 AM | ||
Started by elirion, Yesterday, 10:03 PM
|
1 response
8 views
0 likes
|
Last Post Today, 07:27 AM |
Comment