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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X