![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2008
Location: Maryland, USA
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
It is possible, but it is beyond the scope of what we can offer support for here on the forums.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2008
Location: Maryland, USA
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you, Josh, for your prompt response. Does it mean that I still can find some documentation on how to do that?
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Unfortunately there is no documentation available.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2008
Location: Maryland, USA
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you. This helps me to save time searching for it.
|
|
|
|
|
|
#6 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Hyppo,
Google is your friend. Search for "import DLL .net" and you will find a wealth of information. |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2008
Location: Maryland, USA
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#8 | |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
using System.Runtime.InteropServices; ... [DllImport("c:/MyFilePath/MyDLL.dll")] public static extern double MyGetDouble(int myInput); ... double myDouble = MyGetDouble(10); |
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Jul 2008
Location: Maryland, USA
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you, greentrader, for responding. Do you know what actually stands behind "C#-based script"? Is it a full-fledged C# or some proprietary subset of it? I don't remember seeing in the documentation any requirements for .NET framework.
|
|
|
|
|
|
#10 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Is it a full-fledged C#
Correct. See our website for installation requirements (includes .NET framework).
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| external data | pgabriel | Charting | 12 | 05-10-2009 11:41 AM |
| external interactions | Burga1 | General Programming | 2 | 05-13-2008 10:01 AM |
| External DLL | mgbloomfield | Automated Trading | 1 | 04-18-2008 10:39 PM |
| external API | Futures_Shark | General Programming | 1 | 08-11-2007 11:08 PM |
| Using DLL's in NinjaScript | SigmaTrader | Indicator Development | 5 | 09-24-2006 04:23 PM |