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