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