Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overiding OCO

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

    Overiding OCO

    I am setting a stop order to go long if high + 1 tick is taken out of first bar of session, or go short if low - 1 tick is taken out.
    If one of the orders is filled, the other is cancelled, but I want it to stay in place for a possible reversal of position.
    Can someone help with this?
    Thanks,
    Jim M.

    #2
    This is not possible, you have to selft monitor for the reversal condition and then submit orders.
    RayNinjaTrader Customer Service

    Comment


      #3
      " you have to selft monitor for the reversal condition and then submit orders"
      I don't understand what you are saying?

      Comment


        #4
        You have to have your strategy monitor for a break in price and then submit an order.

        if (Close[0] < breakDownPrice)
        EnterShort();
        RayNinjaTrader Customer Service

        Comment


          #5
          Is the breakDownPrice my original stop price for going short? I am totally new with Ninjascript?

          Comment


            #6
            Correct, its just a figurative representation of your stop price.

            Please take a look at this reference sample:

            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X