How to ModifyOrder() pending (buylimit & selllimit) using MQL5 syntax code?

 

Hi,


I have to modify three things on pending orders: buylimit and selllimit.

1). OrderOpenPrice(),

2). OrderStopLoss(),

3). OrderTakeProfit().

Above three things are defined as double parameters:

1). double ooprice <- OrderOpenPrice(),

2). double osl <- OrderStopLoss(),

3). double otp <- OrderTakeProfit().


My question is:

What MQL5 syntax code should I use in order to modify above parameters on opened pending orders buy limit & sell limit?


Please for the example using names of my parameters.

I tried https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradeordermodify

but there is no EXAMPLE. My code does not WORK.

Documentation on MQL5: Standard Library / Trade Classes / CTrade / OrderModify
Documentation on MQL5: Standard Library / Trade Classes / CTrade / OrderModify
  • www.mql5.com
Standard Library / Trade Classes / CTrade / OrderModify - Reference on algorithmic/automated trading language for MetaTrader 5
 
Has anybody any simple & good working idea how to do it?
Reason: