Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        34 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by kulwinder73, Today, 10:31 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X