Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change limit price in Exit our Long Limit order

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

    Change limit price in Exit our Long Limit order

    Hello,

    I'm programming a strategy with managed approach order. I want to know if I can change the limit price in a ExitLongLimit () or ExitShortLimit () order if there isn't filled.

    Can anyone give me some advice?

    Thanks,

    #2
    Hello elechim,

    Yes, you can change the limit price. If you resubmit the order with all parameters identical except price, the order is modified.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi Rayan,
      Thank you for your quick answer.

      If I have well understood I can do something like that:

      First entry:

      myExtitOrderSHORT = ExitShortLimit(order.LimitPrice - profitTarget * TickSize,
      "ExitSHORT", "Entra SHORT");

      Modification:


      myExtitOrderSHORT = ExitShortLimit(priceEntrySHORT - profitTarget * TickSize / 2,
      "ExitSHORT", "Entra SHORT");

      Is that correct?

      Bye,

      Michel

      Comment


        #4
        Yes, that will work for order price modification. The main thing to watch out for is that you're still not resubmitting the original price at the same time.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X