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 Stanfillirenfro, Yesterday, 09:19 AM
        7 responses
        51 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by TraderCro, 04-12-2024, 11:36 AM
        4 responses
        69 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Mindset, Yesterday, 02:04 AM
        1 response
        15 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by agclub, 04-21-2024, 08:57 PM
        4 responses
        18 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Irukandji, Today, 04:58 AM
        0 responses
        6 views
        0 likes
        Last Post Irukandji  
        Working...
        X