Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.