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 yertle, Today, 08:38 AM
|
6 responses
24 views
0 likes
|
Last Post
by ryjoga
Today, 09:17 PM
|
||
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
24 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
15 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
46 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
23 views
0 likes
|
Last Post Today, 06:16 PM |
Comment