![]() |
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 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
|
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
Jason
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
|
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.
Jason
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,234
Thanks: 83
Thanked 336 times in 328 posts
|
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
Jason
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
Jason, perfect! Thanks again for all your help.
|
|
|
|
![]() |
| Tags |
| ati |
| Thread Tools | |
| Display Modes | |
|
|
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 |