Ticket changes after OrderSend - page 2

 
kennyhubbard:

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.
 
MQL4Beginner:

[...]

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?
 
gordon:
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??

 
MQL4Beginner:

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??

Use different Magic Number for each EA (perhaps via extern int MyMagicNumber=1234;)
Reason: