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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        115 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        222 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        406 views
        0 likes
        Last Post CaptainJack  
        Working...
        X