![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Dec 2006
Location: , ,
Posts: 79
Thanks: 0
Thanked 0 times in 0 posts
|
I tried adding a Ninjatrader COM Client reference to a C# project and got an error message saying that the activex type library was exported from a .NET assembly and that I should reference the .NET Assembly. I have a reference to NinjaTrader.Core.dll but this doesn't seem to contain the DLL interface functions
I was able to get a DLL function to work using the following code: Code:
[DllImport("NtDirect.dll")]
public extern static int Connected(int showMessage);
public static int _ATIConnected()
{
int ShwMsg = 0;
return Connected(ShwMsg);
}
The COM interface & sample code didn't work on my PC when I tried using VB6 or .NET |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Futures_Shark,
We will respond to this shortly once development returns. Ray
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
You need to follow the docs (which does NOT reference NinjaTrader.Core.dll, see Automated Trading Interface -> COM interface) to set up the COM interface.
The docs also hold info on the DLL interface in case the COM interface does not work for you, check out the eSignal sample implementation. Also: make sure you are on latest NT5 or NT6.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Member
Join Date: Dec 2006
Location: , ,
Posts: 79
Thanks: 0
Thanked 0 times in 0 posts
|
I found that the file NinjaTrader.Client.dll can be added as a reference to a c# project and includes all the functions of the NtDirect.dll.
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Perfect!
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|