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 CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            32 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            195 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            358 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            278 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X