Regarding the image "solutions.png", I have no idea where you got that, but there is no OrderModify function in MQL5, only in MQL4.
There is however, an OrderModify CTrade class method, under the MQL5 Standard Library, but it has a different functionality to the function as used in MQL4.
MQL4:
Modification of characteristics of the previously opened or pending orders
MQL5 Standard Library:
Modifies the pending order parameters
If you need help with your code, please show all relevant code usingthe CODE button (Alt-S). Don't show screenshots of code.
Your topic has been moved to the section: Expert Advisors and Automated Trading — In the future, please consider which section is most appropriate for your query.
Do you mean a Pending Order or do you mean a Position?
For a Position, ...
Yes! Either use the PositionModify method from the CTrade class or ...
... use the OrderSend function with the TRADE_ACTION_SLTP request action.For a Pending Order, ...
Yes! Either use the OrderModify method from the CTrade class (as already mentioned) or ...
... use the OrderSend function with the TRADE_ACTION_MODIFY request action.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
The include of the file Trade.mqh doesn't seem to be working for me (see picture include)... I still get the error 'OrderModify' - undeclared identifier
I've tried all there is in the picture joined (solutions).