Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can OCO Orders be Generated for TD Ameritrade using ATI?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can OCO Orders be Generated for TD Ameritrade using ATI?

    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
    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
    BrettNinjaTrader Product Management

    Comment


      #3
      #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?

      Comment


        #4
        1) Correct.

        2) Just submit the order with OCO ID and you will be using the simulated.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        61 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        40 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        21 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        23 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X