Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 alexstox, 10-16-2018, 03:29 PM
            12 responses
            353 views
            0 likes
            Last Post Tburg1073  
            Started by truepenny, Today, 03:59 AM
            0 responses
            3 views
            0 likes
            Last Post truepenny  
            Started by truepenny, Today, 03:45 AM
            0 responses
            8 views
            0 likes
            Last Post truepenny  
            Started by MGHORBEL, Today, 02:28 AM
            0 responses
            8 views
            0 likes
            Last Post MGHORBEL  
            Started by dcriador, Today, 01:43 AM
            1 response
            9 views
            0 likes
            Last Post dcriador  
            Working...
            X