![]() |
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 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
NTDirect.dll requires a complete NinjaTrader installation.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
and I still would like to know if the DLL requires .net 2 or not?
thanks |
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You need NinjaTrader installed to use it. To have NinjaTrader installed you are required to have .NET 2.0 installed.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
NinjaTrader must be running on BOTH machines?
|
|
|
|
|
|
#7 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You need it installed on both.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#10 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |