Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market order for stop loss and profit target

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

    Market order for stop loss and profit target

    Is there a way to set up my stop loss and profit target orders to be entered as Market orders once the limit is reached?

    With the profit target, I see that sometimes if the price touches my target and starts dropping, I got a partial fill and the rest of my position kept dropping. With at market order, I know I may get sub-optimal fills, but atleast I can exit my entire position close to my target price.

    I can see this may be even more important for the stop loss. I haven't one of these triggered in my strategy so far, so I don't know how it behaves. But I want to protect from a situation where the price may be dropping so fast that it jumps over my stop price.

    Thanks in advance!

    #2
    Hello naren8642,

    Thanks for your post and welcome to the forums!

    Can you clarify if you are using the SetStopLoss or SetProfitTarget methods or something else?

    Comment


      #3
      Yes, I am using the SetStopLoss and SetProfitTarget methods.

      Comment


        #4
        Hello naren8642,

        Thanks for your reply.

        The SetStopLoss method already converts to a market order to exit. Please see the tips section here: http://ninjatrader.com/support/helpG...etstoploss.htm

        Regrettable the SetProfitTarget method has to be a limit order.

        Alternatively you can program your own profit target using a market order to exit, for example (assume you are in a long position) and you want to set a 10 tick target.

        if (Close[0] >= Position.AvgPrice + 10 * TickSize) // check if price is at or above 10 ticks above entry.
        {
        ExitLong(); // market order to exit
        }

        In Ninjatrader 8 there is a MarketIfTouched (MIT) order type that will also do the same thing.

        Comment

        Latest Posts

        Collapse

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