Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering a Conditional OCO directly into the DOM ladder.

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

    Entering a Conditional OCO directly into the DOM ladder.

    Is there a simple way to attach an OCO to a limit order that has not yet been executed?
    Here is an example for the ES futures:
    The market is trading at 6048. I want to go short at 6075, which hasn't traded yet. If I get filled at 6075, I want to have an OCO order placed at 6100 and 6000 automatically. This OCO order only gets submitted if the original sell order at 6075 gets filled and it shouldn't be necessary for me to be at my computer when that happens. I would also need to be able to change the first limit order and the OCO levels using the DOM ladder, in the same way that I normally change orders that are entered manually.

    As there will be multiple orders throughout the day, at different levels, and not necessarily with a constant set of price differences between the orders (i.e. It could be 15 points on the stop and 80 points on the profit level rather than the 25/75 shown above), I would like to be able to quickly enter these orders via the DOM ladder. Is that possible? If not, which is the best way of achieving the same result?
    Many thanks in advance.
    Last edited by OldGreyWT; 11-11-2024, 06:54 AM.

    #2
    Hello OldGreyWT,

    Thank you for the message.

    From your description, it sounds like you would want to use the ATM Strategy Feature within NinjaTrader:

    Please watch through the publicly available videos below for a comprehensive review of setting up and using ATM Strategies:​Please let us know if we may provide any further assistance.

    Comment


      #3
      Thank you for your reply, however I have already watched all those videos and written a large number of ATM scripts. From what I have seen the videos and the help manual do not relate to directly linking OCO orders to an unexecuted limit order, specifically where you might need to dynamically change the price levels through the DOM ladder while a trade is live.

      The question is, am I missing something and it can be done as I outlined in my original request or is it just not possible. Unfortunately a generalised "look at all the ATM blurb" isn't a practical solution.
      Thanks again.

      Comment


        #4
        Hello OldGreyWT,

        Thank you for the update.

        There is no way to manually change an OCO pair or the orders linked by them.

        The order has to be submitted with the OCO ID. So, if the order wasn't initially part of an OCO Pair, then you would have to cancel the order and re-submit it as a new OCO pair.
        If this isn't functioning as you desire, then you are welcome to look into creating an Automated NinjaScript Strategy that has more complex logic as you desire.


        Please let us know if we may provide any further assistance.​

        Comment


          #5
          OK, thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          61 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X