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 04-18-2011, 09:15 AM   #1
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default Use of smtp and NtDirect on same computer

I have a client who is running NT6.5 and receiving orders from TS8.8 via the smtp link. He would like to run my strategy, which is using NtDirect, on the same computer and send orders to a remote computer running NT7.0. Is this possible?
Atomic is offline  
Reply With Quote
Old 04-18-2011, 09:37 AM   #2
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Atomic,

Thank you for your post.

Yes, this would be possible as running the SMTP server should not affect using NtDirect.dll to create outbound connections.

Please let me know if I can assist with anything else.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-18-2011, 09:52 AM   #3
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default

When I try to enable smtp on the NT-tools-options-ATI tab I get an error message: "Unabel to start/run SMTP server: An attempt was made t access a socket in a way forbidden by its access permissions."

When I send a test message from the TS trade manager, the NT responds with "incoming message".

Thanks.
Atomic is offline  
Reply With Quote
Old 04-18-2011, 10:08 AM   #4
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Atomic,

Which OS is this copy of NinjaTrader running on? Also, do you know of any other software which may be using the SMTP port(25) ?

I look forward to assisting you further.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-18-2011, 10:27 AM   #5
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default My mistake

I was running another app that was already using the smtp link. When I shut it down I find I have communications between TS and NT over smtp. I was hearing the test message response, but it was from the other app
Atomic is offline  
Reply With Quote
Old 04-18-2011, 10:30 AM   #6
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Atomic,

That's OK! Good to hear you got it figured out.

Just let me know if I can assist any further.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-18-2011, 01:28 PM   #7
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default Symbol Mapping???

I am working with three computers all of which have TradeStation8.8 and NT7. I am trying to test the simultaneous use of smtp order sending and NtDirect order sending on the same computer. I am using the TS data as external data feed. For instrument ES, I have the external symbol map set to @ES. The charts I'm using to send orders are 1 @ESM11 1 minute chart, and 1 @ESM11.D 3 minute chart. I am able to run NT on computer A which is receiving its data feed from computer C and also receiving orders from a TS strategy running on computer C. No problems with anything on computer A,

On computer C, the NT is receiving data from computer B from a @ESM11 1 minute chart. No problems with the data feed. Also on computer C I am running another strategy in a @ESM11 1 minute chart. The workspace name is NinjaTrader;Account=Sim101. The orders that arrive at NT from this chart cause the message "unknown instrument
'ESM11'." So my question is what must I do to get my symbol mapped to NT so the orders will be recognized? I've tried changing the workspace name to NinjaTrader;Account=Sim101;Map=@ES,ES 06-11, and NinjaTrader;Account=Sim101;Map=@ESM11,ES 06-11 and they also cause the unknown instrument error. My recollection is that this will work if I change symbol mapping in the instrument manager so the the external data symbol map is ES|ES 06 11. However, when I do this the external data feed no longer works.

Thanks for your help.
Atomic is offline  
Reply With Quote
Old 04-18-2011, 01:33 PM   #8
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default Got it! Maybe

I just changed the chart symbol to @ES and it just filled an order via SMTP, so now I can proceed with my testing. This symbol mapping is very fussy.
Atomic is offline  
Reply With Quote
Old 04-18-2011, 01:38 PM   #9
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Atomic,

The symbol mapping system is very specific. Glad to hear you got it working though.

Just let me know if I can assist you any further.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-19-2011, 07:17 AM   #10
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default Still confused about symbol mapping

Following are some of the directions from the NT help section on symbol mapping


If you run the TradeStation Automated Trading Interface through the email protocol or want to use the NTExternalFeed strategy to drive NinjaTrader Simulation Edition with a TradeStation continuous contract, follow the instructions below. We will use the "@ES" continuous contract symbol and front month of March 2009 for example purposes.
1. From the NinjaTrader Control Center window select the menu Tools and select the Instrument Manager menu item.
2. Highlight the 6E contract from the main grid which is the NinjaTrader Euro FX contract
3. Press the Edit button to bring up the Instrument Editor window
4. Select the Misc tab
5. Next to External set the value to "ES|03-09"
6. Press the OK button
* The symbol map name "ES|03-09" in the image below needs to be the TradeStation symbol base name.
Automated Trading Interface - Orders generated for "@ES" will now be routed to the NinjaTrader "ES 03-09" contract.
NTExternalFeed strategy - Data from your "@ES" chart will be sent to the NinjaTrader "ES 03-09" contract.
Please remember to change this when the contract rolls over. If your system is trading on the "ESH09" symbol you could just leave the symbol mapping in NinjaTrader to "ES" instead of the "ES|03-09" as shown above.

There appears to errors in this.

My experience is that the only thing that works is setting the symbol for "external" to @ES. This is when I'm trying to send data or orders using NtDirect from Tradestation to NT, and when the TS chart symbols are @ESM11 or @ESM11.D.

Also, when the data feed is not coming from TS, how does this affect symbol mapping?
Atomic is offline  
Reply With Quote
Old 04-19-2011, 08:55 AM   #11
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Atomic,

Thank you for bringing this to our attention. We are currently reviewing these instructions. @ES is correct as it is the TS base symbol name.

When the external data feed is not coming from TS, but is coming from NtDirect, it will need to have the external symbol set to whatever is being sent in to it.

Please let me know if I can assist you any further.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-19-2011, 09:59 AM   #12
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default

Quote:
Originally Posted by NinjaTrader_Dexter View Post
Hello Atomic,

Thank you for bringing this to our attention. We are currently reviewing these instructions. @ES is correct as it is the TS base symbol name.

When the external data feed is not coming from TS, but is coming from NtDirect, it will need to have the external symbol set to whatever is being sent in to it.

Please let me know if I can assist you any further.
I'm not quite sure what you mean. If the data feed is coming from Tradestation, it can only do so through the use of NtDirect, either in the local or remote mode. The "external" symbol in the symbol mapping area only refers to Tradestation. Correct?

And, what do you mean when you said, "it will need to have the external symbol set to whatever is being sent in to it?" Give an example if you can.

Thanks.
Atomic is offline  
Reply With Quote
Old 04-19-2011, 10:17 AM   #13
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Atomic,
Thank you for your reply.

External refers to any data feed coming from NtDirect. While this is primarily TradeStation, some other custom third party applications also use NtDirect to send data to NinjaTrader.

By "it will need to have the external symbol set to whatever is being sent in to it?", I mean in the case of TradeStation, it uses @ES for the symbol mapping, so you must instruct NinjaTrader that @ES refers to the ES instrument.

Another program may send data for ES over NtDirect as !ES (just an example), so you would use !ES as the external symbol map to let NinjaTrader know that data is for ES. Hope this helps clarify things.

Just let me know if you have any other questions.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-19-2011, 11:33 AM   #14
Atomic
Member
 
Join Date: Jan 2010
Posts: 85
Thanks: 4
Thanked 5 times in 4 posts
Default

Very helpful. Thanks.
Atomic is offline  
Reply With Quote
Old 04-19-2011, 11:43 AM   #15
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

You are welcome, glad I could help!

Just let me know if you have any other NinjaTrader questions.
NinjaTrader_Dexter 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
@ESZ09.D works with SMTP but not DLL interface geoMEAN Automated Trading 0 11-06-2009 10:18 PM
error trying to send email using smtp MoreYummy Miscellaneous Support 5 06-10-2009 10:32 AM
SMTP 500 5.5.1 Command unrecognized jrs Miscellaneous Support 2 01-20-2009 04:38 PM
Firefox and NT smtp server bigboy Automated Trading 1 08-21-2008 01:50 PM
System running on 1 computer...viewing those trades on another computer Big D Automated Trading 4 03-26-2007 01:17 AM


All times are GMT -6. The time now is 06:28 PM.