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 NullPointStrategies, Today, 05:17 AM
        0 responses
        34 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X