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

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kaywai, Today, 06:26 AM
        1 response
        3 views
        0 likes
        Last Post kaywai
        by kaywai
         
        Started by ct, 05-07-2023, 12:31 PM
        6 responses
        202 views
        0 likes
        Last Post wisconsinpat  
        Started by kevinenergy, 02-17-2023, 12:42 PM
        118 responses
        2,779 views
        1 like
        Last Post kevinenergy  
        Started by briansaul, Today, 05:31 AM
        0 responses
        9 views
        0 likes
        Last Post briansaul  
        Started by traderqz, Yesterday, 12:06 AM
        11 responses
        28 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X