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, 03-31-2026, 09:41 PM
            1 response
            43 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            20 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            30 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            49 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            38 views
            0 likes
            Last Post CarlTrading  
            Working...
            X