Modifying an order

 

Hy,


Is there a formula to modify the stop loss and take profit of a previously opened order ?

 
kobayashi:

Hy,


Is there a formula to modify the stop loss and take profit of a previously opened order ?

Please see OrderModify()

 
brother3th:

Please see OrderModify()

Thank you but by using this formula we introduce one more order and i don't want it. I just want to modify the Stoploss and take profit criteria from the previous.

 
kobayashi:

Thank you but by using this formula we introduce one more order and i don't want it. I just want to modify the Stoploss and take profit criteria from the previous.

How do you know?

bool OrderModify( int ticket, double price, double stoploss, double takeprofit, datetime expiration, color arrow_color=CLR_NONE)

Modification of characteristics for the previously opened position or pending orders.

Reason: