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 05-25-2010, 09:20 PM   #1
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default ATI Entry

I have gotten the sample ATI code working but would like to connect the entry to a strategy.

I scale into and out of positions based on an initial entry signal generated from TradeStation. Is it then possible to have a strategy manage subsequent additional entries and exits?

This is a relatively complicated strategy and is much more easily managed from code written in C# than EasyLanguage. I am a very experienced C# programmer as well as having years of EasyLanguage experience.

If this can be done I would appreciate any help getting to samples or even the proper place in the documentation. I have searched the forums and the documentation but have not been able to find what I am looking for.

Thanks in advance
ScottB is offline  
Reply With Quote
Old 05-26-2010, 03:16 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
Default

Hello ScottB,

NinjaTrader uses NinjaScript (C#) to create custom indicators and strategies. Please see the link below for information to start creating custom strategies.
http://www.ninjatrader-support.com/H...dingLogic.html

Reference samples can be found at the following link.
http://www.ninjatrader.com/support/f...splay.php?f=30

In addition, you can also find tips below.
http://www.ninjatrader.com/support/f...splay.php?f=31
NinjaTrader_Jason is offline  
Reply With Quote
Old 05-26-2010, 06:16 AM   #3
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Jason, thanks for your reply. I will look through the information in the links you supplied but maybe I need to be a little more clear on what I am asking.

Once I get an order into NinjaTrader via some mechanism i.e. ATI via the .NET interface or TradesStation or even the file interface, can I associate that order with a specific strategy to manage the trade?

I use the inside bid/ask, level volume and floating stops and targets to manage the trade and polling from an ATI interface isn't remotely practical. I have read enough posts to know I cannot manually enter an order and then have a strategy manage it but I am trying to in some way accomplish the same thing by letting the .NET interface provide the entry.

If I know I can manage the order via strategy once it is submitted via ATI, I can figure out the rest but I don't want to spend time on this only to find it wasn't possible using this approach. Thanks Scott
ScottB is offline  
Reply With Quote
Old 05-26-2010, 06:51 AM   #4
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
Default

Hello ScottB,

Unfortunately this is not supported. You will need to generate the entry order by the NinjaScript strategy as well. NinjaScript strategies will only 'know' about orders it initiates itself.
NinjaTrader_Jason is offline  
Reply With Quote
Old 05-26-2010, 07:13 AM   #5
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Jason, if I move the external code to a NinjaTrader strategy can I then manage any new entries/exits from that point? Since streams are supported, it would appear that a strategy can read the stream and take actions based on that even to the point of resetting variables internal to the strategy.

If I can react to data brought in via streamreader then as long as NinjaTrader doesn't have any restrictions on multiple entries/exits, I should be able to accomplish what I need to do. Thanks for your quick response. Scott
ScottB is offline  
Reply With Quote
Old 05-26-2010, 10:56 AM   #6
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
Default

Hello Scott,

Yes, you can access external data via the StreamReader samples. So you will be able to work with this and submit orders via a NinjaScript strategy at the same time.

In addition, you can work with multiple entries and exits simultaneously as well. Please see the following link for more information.
http://www.ninjatrader.com/support/f...ead.php?t=3225
NinjaTrader_Jason is offline  
Reply With Quote
Old 05-26-2010, 11:07 AM   #7
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Jason, perfect! Thanks again for all your help.
ScottB is offline  
Reply With Quote
Reply

Tags
ati

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
Bars Since Entry for 2nd Entry titleistbb22 Strategy Analyzer 2 05-04-2010 09:00 PM
Entry date shows as the next day of actual entry TintuLal Strategy Analyzer 6 09-25-2009 02:26 PM
Cancelling Order/Entry Order filled cancels all other entry orders ScottB ATM Strategies (Discretionary Trading) 2 06-03-2009 12:19 PM
From Entry Bar silindas Strategy Development 1 01-26-2009 09:50 AM
Low Before Entry GreenTrade Strategy Development 2 01-22-2008 06:07 AM


All times are GMT -6. The time now is 05:04 PM.