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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            168 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            322 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            246 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X