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 PaulMohn, Today, 05:00 AM
        0 responses
        5 views
        0 likes
        Last Post PaulMohn  
        Started by ZenCortexAuCost, Today, 04:24 AM
        0 responses
        5 views
        0 likes
        Last Post ZenCortexAuCost  
        Started by ZenCortexAuCost, Today, 04:22 AM
        0 responses
        2 views
        0 likes
        Last Post ZenCortexAuCost  
        Started by SantoshXX, Today, 03:09 AM
        0 responses
        16 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        3 views
        0 likes
        Last Post DanielTynera  
        Working...
        X