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.
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
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 😄

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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?