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

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 wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        191 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,230 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X