• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO Not "Canceling Other" Using ATI

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

    OCO Not "Canceling Other" Using ATI

    I've submitted two orders using ATI in the SIM101 account:

    Command("PLACE","SIM101","AAPL","BUY",200,"STOP",0 ,612.50,"DAY",<GUID>,"","TrailingStop","")

    Command("PLACE","SIM101","AAPL","SELL",200,"STOP", 0,612.40,"DAY",<GUID>,"","TrailingStop","")

    I've specified the same OCO ID (<GUID>) for both orders. However, when one executes, the other does not cancel. Am I missing something?

    Thanks.

    #2
    Hi Lee, if you check the accepted orders in NT's Control Center, does the OCO Id list for them as you would expect from the Command call?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Resolved! Pilot Error. The additional order that I was seeing was not the other side of the (uncanceled) OCO order but rather the Trailing Stop from the attached ATM Strategy which is exactly right.

      Thanks for you help!

      Comment


        #4
        You're welcome, glad to hear the update.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ferenc., Today, 04:54 PM
        0 responses
        9 views
        0 likes
        Last Post ferenc.
        by ferenc.
         
        Started by rwilliam, Today, 03:51 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by RB104, Today, 02:37 PM
        2 responses
        20 views
        0 likes
        Last Post RB104
        by RB104
         
        Started by jtrading82, 10-11-2019, 06:07 PM
        5 responses
        44 views
        1 like
        Last Post tgn55
        by tgn55
         
        Started by Jhon Duran, Today, 12:07 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Working...
        X