Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to have stop loss and profit target on same order

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

    How to have stop loss and profit target on same order

    Hello. I'm trying to put a stop loss and profit target on a single order. If I use the SetStopLoss() command, it orders with a stop loss only and I dont see how to add a profit target to that same order. Thank you.

    #2
    Hello kazisl, thanks for your post.

    We have the SetProfitTarget() method that will submit a profit target for entry orders:

    https://ninjatrader.com/support/help...ofittarget.htm

    Please let me know if I can assist any further.

    Comment


      #3
      So if I use SetProfitTarget() and SetStopLoss(), doesn't that set 2 seperate orders?

      Comment


        #4
        Hello kazisl, thanks for your reply.

        That is correct. A limit order will be placed for SetProfitTarget and a stop market order will be used for SetStopLoss by default.

        Best regards.

        Comment


          #5
          Would they automatically be OCO? Or is there something I need to do to make them OCO?

          Comment


            #6
            Hello kazisl, thanks for your reply.

            Yes, they will be OCO automatically. They will be associated with an entry order so if either the other protective order or the position is filled/closed the order will be canceled along with them.

            We also have a "DIY" version with advanced order handling techniques here:
            https://ninjatrader.com/support/help...and_onexec.htm

            Kind regards,
            -ChrisL

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            635 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            365 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            106 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            571 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X