You need to select the order before you can modify it. Try OrderSelect(ticket,SELECT_BY_TICKET) before the OrderModify.
No you don't. Functions such as OrderTicket(), OrderOpenPrice(), etc. need selection, but OrderModify() itself does not require selection of the order.
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.
You need to select the order before you can modify it. Try OrderSelect(ticket,SELECT_BY_TICKET) before the OrderModify.
[...]
Have you got any Ideas and why I get 2 Orders in the first seconds and the first will be deleted after a few seconds??
Is it possible that a market open order is first placed as pending Order and the moved to another Open Trade??
Does your broker use some kind of bridge?
I don't known weather my broker has a bridge.
I asked for Support but they can't tell me a solution for my problem.
Is there anyone else who has the same Problem?
If you have 2 or more EA's running at the same time, you aren't able to idebtify which OpenTrade belongs to which EA.
Comments are also cleared in the new created Order.
Has any one any Idea??
If you have 2 or more EA's running at the same time, you aren't able to idebtify which OpenTrade belongs to which EA.
Has any one any Idea??