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 helpwanted, Today, 03:06 AM
            1 response
            11 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            9 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            5 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            242 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            387 views
            1 like
            Last Post Gavini
            by Gavini
             
            Working...
            X