![]() |
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 |
|
Member
Join Date: May 2012
Posts: 33
Thanks: 22
Thanked 0 times in 0 posts
|
The documentation indicates that TD Ameritrade "requires that OCO orders are submitted simultaneously in a single API call vs sending them in sequence with an include user defined OCO identifier. For brokers that require OCO orders to be submitted in a single function call, a NinjaScript strategy must wait until it has both legs of the OCO pair generated by SetStopLoss(), SetTrailStop() and SetProfitTarget()."
Question #1: In a Strategy you could just use: WaitForOcoClosingBracket. However, the ATI appears to only support using OCOs with an identifier. Does this mean that OCO orders to TD Ameritrade can not be created properly through ATI? Question #2: Are Interactive Brokers and TD Ameritrade the only NT brokers that support server side OCO orders? Thanks! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for the post. 1) This is unfortunately the case with the ATI. You would use local OCO simulation however in this scenario. 2) Correct. -Brett
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
|
|
#3 |
|
Member
Join Date: May 2012
Posts: 33
Thanks: 22
Thanked 0 times in 0 posts
|
#1 So, just to be clear, when sending orders through ATI I can simply specify a unique OCO identifier and depending the broker (excluding TDA) the OCOs will be created either server side (with IB) or simulated automatically for all others?
#2 How would I use simulated OCO with TD Ameritrade using the ATI? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
1) Correct.
2) Just submit the order with OCO ID and you will be using the simulated.
Brett
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Brett for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TD Ameritrade | moneyloozer | Connecting | 9 | 02-17-2012 07:23 AM |
| Not more TD Ameritrade? | psienlabolsa | Connecting | 2 | 01-13-2012 07:18 PM |
| TD Ameritrade Help | sling6shot | Connecting | 2 | 12-29-2010 12:05 PM |
| TD ameritrade | teaboy44 | Connecting | 1 | 03-04-2009 01:46 PM |
| TD Ameritrade? | moflaherty | Connecting | 1 | 04-07-2008 12:05 PM |