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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            88 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            135 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
            119 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            69 views
            0 likes
            Last Post PaulMohn  
            Working...
            X