Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Opposing buy/sell stop order creation.

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

    Opposing buy/sell stop order creation.

    I'm very new to Ninja strategy builder and I have a question about order management. Through searching I see this or similar questions have been asked before, but a lot of the replies are quite old and I can't find a definitive answer, so I was wondering if there is an easy way to do this:

    I'd like to place a buy stop order above my current price and a sell stop order below my current price and whichever get's triggered first cancels the other. I have tried to do this manually in playback and I don't seem to be able to do it, even enabling OCO. Is this possible either in strategy builder or manually?

    Thank you in advance.

    #2
    Please disregard this message, as I have since found this post which answers my question

    Comment


      #3
      Hello adam911,

      Thank you for your post.

      It is possible manually as mentioned in the post you linked, however please note this would not be possible in the Strategy Builder and would need to be achieved through an unlocked script (manual coding).

      We have an existing sample script that demonstrates linking orders via OCO using the Unmanaged Approach, which can be found in this forum post:



      If you have any further questions, please let us know.

      Comment


        #4
        Originally posted by NinjaTrader_Gaby View Post
        Hello adam911,

        Thank you for your post.

        It is possible manually as mentioned in the post you linked, however please note this would not be possible in the Strategy Builder and would need to be achieved through an unlocked script (manual coding).

        We have an existing sample script that demonstrates linking orders via OCO using the Unmanaged Approach, which can be found in this forum post:



        If you have any further questions, please let us know.
        That's great, thank you very much.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        87 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        132 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        118 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X