Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot place more than one OCA per vehicle/timeframe

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

    Cannot place more than one OCA per vehicle/timeframe

    I have a strategy that creates an OCA and transmits it to IB.

    The first time a chart is opened AND on a specific time frame, the strategy works absolutely fine.

    However, if I then close the chart and even close NT and re-open, if I open the same vehicle on the same timeframe and attempt to run the strategy again the order fails with the message

    IB, Order rejected - reason: The OCA Group order has already been filled. (201) affected Order:Sell 1 [email protected]

    This order was from the Yen 10 min chart. If I instead even move to an 11 min chart then the strategy will work fine, but again just the once.

    #2
    Hello pcoghlan,

    Thank you for your post.

    Are you using the Unmanaged Order Approach for your strategy? Is this your own custom strategy or one developed by a third party?

    Comment


      #3
      Patrick

      The strategy is being developed for me by a third party and does use the unmanaged order approach.

      Paul

      Originally posted by NinjaTrader_PatrickH View Post
      Hello pcoghlan,

      Thank you for your post.

      Are you using the Unmanaged Order Approach for your strategy? Is this your own custom strategy or one developed by a third party?

      Comment


        #4
        Hello pcoghlan,

        Thank you for your response.

        You would need to inform the developer that the OCO id must change between order sets.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello pcoghlan,

          Thank you for your response.

          You would need to inform the developer that the OCO id must change between order sets.
          Many thanks Patrick, that did turn out to be the issue.

          Paul

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by helpwanted, Today, 03:06 AM
          1 response
          5 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          7 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          5 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          242 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Working...
          X