NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 10-23-2008, 12:54 PM   #1
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default does NTDirect.dll alone require .net platform ?

I am running tradestation 2000i on one machine along with NTDirect.dll and I want to use the remote feature to connect to Ninjatrader running on a seperate computer. I have .net installed and NT installed fine on the execution machine but on the tradestation machine I receive the following error when attempting to use your sample indicator
"Failed to initialize NinjaTrader DLL NtDirect.dll (ox80040154)

I want to confirm that this is due to needing the .net platform on my analysis computer before installing .net in case this is not the problem.

Can you confirm that your current NtDirect.dll is compatible with ts2000i.

Thanks

Joe
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 01:13 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

NTDirect.dll requires a complete NinjaTrader installation.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 10-23-2008, 01:29 PM   #3
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

I have a complete installation of NT alongside the broker platform on the execution machine. Are you saying that I need to have another full installation of NT on the tradestation machine as well?

I thought the purpose of your remote feature implemented something like this is to simply specify the ip address of the remote computer running NT

If Remote_NT = "TRUE" then begin
DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int;
if CurrentBar = 1 then begin
SetUp("REMOTE_MACHINE", 36973);
end;
end;

Please confirm your statement that I have to run NT on BOTH computers ?

Thanks

Joe
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 01:30 PM   #4
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

and I still would like to know if the DLL requires .net 2 or not?

thanks
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 01:33 PM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You need NinjaTrader installed to use it. To have NinjaTrader installed you are required to have .NET 2.0 installed.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-23-2008, 01:41 PM   #6
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

NinjaTrader must be running on BOTH machines?
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 01:52 PM   #7
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You need it installed on both.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-23-2008, 01:55 PM   #8
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Running NT on a different PC than TS

You can run NinjaTrader on different PC than where TradeStation is running via the DLL interface only.


1. Define the SetUp function by adding the following line to your EL script:


DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int


2. You must call the SetUp function before calling any other DLL function. Following is sample code on how to accomplish this.


if CurrentBar = 1 then begin
SetUp("remote-machine-name-or-ip", 36973);
end;


Where remote-machine-name-or-ip is the name or IP address of your PC.


* You can see the NTExternalFeed strategy for an example.
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 01:58 PM   #9
joeplaya
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Here is your own NT manual which states something quite different

Are you stating that your help file is incorrect at this point?

Could you please find out if the dll requires .net platform?
joeplaya is offline  
Reply With Quote
Old 10-23-2008, 03:11 PM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

joeplaya,

There is no conflict in what I said earlier and what is said in the Help Guide. "Running a software" and having "installed a software" are separate actions.

Please see the Setup page for DLL Interface pasted below:
Following is the installation procedure for installing the TradeStation EasyLanguage NinjaTrader functions.

1. NinjaTrader must be installed
2. Start TradeStation
3. Select the menu File-->Import/Export EasyLanguage
4. Select "Import EasyLanguage file (ELD, ELS or ELA)"
5. Click "Next"
6. Select the file <NinjaTrader Installation Folder>\bin\AutoTrade\NINJATRADER.ELD"
7. Click "Next"
8. Click "Next"
9. Click "Finish" and confirm any upcoming query box by clicking "OK"
10. When you actually start creating EL scripts that communicate with NinjaTrader, ensure that Automated Trading is enabled from within NinjaTrader via the File menu


A collection of NinjaTrader functions and a sample strategy named "NTSample" are imported and ready to be used.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NtDirect.dll and Third Parties WDieter Automated Trading 2 04-17-2012 08:20 PM
Require market data for order submission / Why? BCA Connecting 33 02-25-2009 09:29 AM
NTDirect reconnect? moscu Automated Trading 1 08-12-2008 01:46 PM
NTDirect DLL performance Eagle Automated Trading 1 09-30-2007 05:24 AM
Persistent Orders That Do Not Require Renewal whitmark Suggestions And Feedback 1 08-02-2007 06:17 AM


All times are GMT -6. The time now is 03:39 PM.