View Full Version : Problems with NTConnected
muthaf
03-30-2006, 09:10 PM
Guys,
I am trying to write my ATI and can seemingly place an order but I am not getting the right returns from functions such as NTOrders etc. When looking at NTConnected I keep getting that my EFS is not connected to NT5.
Also the order I place does not seem to have the OrderID I supplied to it. Are all these issues related to the same thing? Can someone send me a sample EFS that truly works?
TIA
MuthaF
NinjaTrader_Ray
03-30-2006, 11:48 PM
See the sample NT EFS in the Help Guide (also installed on your PC) that does work.
muthaf
03-31-2006, 01:13 AM
Thanks for the reply. If I modify that script to represent the NTConnected status in the formula output window I get "false".
NinjaTrader_Ray
03-31-2006, 02:51 AM
Is Automated Trading Enabled via the File menu in the Control Center window?
muthaf
03-31-2006, 05:33 AM
Hi,
Yes the Automated Trading is enabled, the ATI at the bottom right is green and the log says that NT has established a connection to the eSignal Data Manager.
Since I posted last I have downloaded the very latest version and still have the same problem.
Regards,
MuthaF
NinjaTrader_Ray
03-31-2006, 05:53 AM
For clarification, when you call this function, it returns a value of "-1" ?
muthaf
03-31-2006, 05:54 AM
Yes
NinjaTrader_Ray
03-31-2006, 06:09 AM
Will get back to you Monday morning, have escalated this.
muthaf
03-31-2006, 06:10 AM
Many thanks
NinjaTrader_Ray
04-03-2006, 02:06 AM
Please try the the sample script unaltered. Does this work as intended?
muthaf
04-04-2006, 05:55 AM
It loads but does not buy any contracts which is why I started to look into the reasons why and the state of NTConnected
NinjaTrader_Ray
04-04-2006, 06:17 AM
On what instrument?
muthaf
04-04-2006, 06:19 AM
FDAX instrument. I've retried the NTSample.efs script and this time it seems to be trying to reinstall NinjaTrader. It's trying to install (very slowly) but will let you know what happens. It seems to be a DLL registration issue which would make sense except I was able to run NT by itself and it's only he ATI interface that seems to be the issue.
NinjaTrader_Ray
04-04-2006, 06:26 AM
FDAX is not supported out of the box since the instrument mapping will not work since eSignal has a "-d" at the end of the instrument. You have to create a new wrapper function for NTCommand() that passes in the correct instrument name for FDAX which is "FDAX 06-06". Trythat. If you use the script on another instrument like ES you will that it works as designed.
muthaf
04-04-2006, 06:29 AM
I've found that out and changed my code for NTCommand. What is still the issue is NTConnected. For NTCommand I've got an EFS object that is loading all the stuff I need into that structure.
muthaf
04-04-2006, 07:55 AM
The attempt by NT to install something from the MSI gave the clues. I've had to reinstall the package twice but after doing that it seems to work! Onwards and upwards, going to restart the machine and try again to make sure.
Thanks for the support, it seems to have been an install issue.
UPDATE: After reboot it still seems to work... :D
NinjaTrader_Ray
04-04-2006, 12:54 PM
Thanks for lettting me know.
Ray