• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 maggie3, Today, 02:05 AM
        0 responses
        3 views
        0 likes
        Last Post maggie3
        by maggie3
         
        Started by qewcool, Today, 01:14 AM
        0 responses
        3 views
        0 likes
        Last Post qewcool
        by qewcool
         
        Started by fredrikn, 05-08-2019, 04:01 AM
        17 responses
        669 views
        1 like
        Last Post emtrader  
        Started by zacharydw00, Yesterday, 10:19 PM
        0 responses
        3 views
        0 likes
        Last Post zacharydw00  
        Started by chafan11, Yesterday, 09:28 PM
        0 responses
        7 views
        0 likes
        Last Post chafan11  
        Working...
        X