Why does MT5 discard the magic number of trades opened by EA if you manually close it ?

 

Hello everyone,

I noticed that when a trade is opened by EA (with a specific Magic Number) in MT5 and then manually close it from the Trade tab, the final deal record in the History tab does not show the Magic Number. The Magic Number is retained if the EA itself closes the trade, but disappears on manual closure. This makes it harder to identify the EA originated trades.

Has anyone found a method to force MT5 to retain (and show) the Magic Number in the History tab for trades closed manually? 

 
Rady:

Hello everyone,

I noticed that when a trade is opened by EA (with a specific Magic Number) in MT5 and then manually close it from the Trade tab, the final deal record in the History tab does not show the Magic Number. The Magic Number is retained if the EA itself closes the trade, but disappears on manual closure. This makes it harder to identify the EA originated trades.

Has anyone found a method to force MT5 to retain (and show) the Magic Number in the History tab for trades closed manually? 

change the statement to "Positions and Deals". The deals still has the magic number when you put your mouse over the opening trade.

 
Michael Charles Schefe #: this is done by the broker. They can also do the same thing to comments.

Thank you Michael for your reply. Is it still possible for the EA to retrieve it using DEAL_POSITION_ID  ?

 
Rady #:

Thank you Michael for your reply. Is it still possible for the EA to retrieve it using DEAL_POSITION_ID  ?

if i recall correctly, you should retrieve it via the ticket. if i recall correctly, AGAIN, when closed the deail id is the same as the original ticket when it is closed. Maybe a moderator can say yay or nay. And if nay, then, please delete this msg hahahahahahahahaha

 
Michael Charles Schefe #:

if i recall correctly, you should retrieve it via the ticket. if i recall correctly, AGAIN, when closed the deail id is the same as the original ticket when it is closed. Maybe a moderator can say yay or nay. And if nay, then, please delete this msg hahahahahahahahaha

Sure! If Nay I will pin your message 😄

 
Rady #:

Sure! If Nay I will pin your message 😄

that'd be right! 

But it shouldnt be hard to confirm. A search of the forum should suffice.

 
Rady #:

Thank you Michael for your reply. Is it still possible for the EA to retrieve it using DEAL_POSITION_ID  ?