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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            87 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            106 views
            0 likes
            Last Post CarlTrading  
            Working...
            X