Has anybody any simple & good working idea how to do it?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.