Partially modify an order

 

Hi all,

Is there any way to partially modify an order?

Specifically, I place orders with attached S/L and T/P but after some time and as new calculations are been made in the EA I want to modify only the S/L and keep the initial T/P as is. Calculations of levels and modification of orders are took place in every new candle. 

I have tried with OrderModify() but it requires to change both S/L and T/P and I can't find any solution in order to exempt the modification of some parameter.  

Any insight will be highly appreciated. Thank you in advance. 

 
Nick911:

Is there any way to partially modify an order?

I want to modify only the S/L and keep the initial T/P as is.

  1. Is that like partially pregnant?
  2. So do exactly that, Select the order, and in modify you pass the OrderTicket, OrderOpenPrice, SL, OrderTakeProfit, OrderExpiration
 
William Roeder:
  1. Is that like partially pregnant?
  2. So do exactly that, Select the order, and in modify you pass the OrderTicket, OrderOpenPrice, SL, OrderTakeProfit, OrderExpiration

1. Yes, something like that... :)

2. Thank you very much. I really appreciate your prompt reply William. 

Reason: