- Hello. Definitely this is not a problem with MQL5.
- The comment is within the DEAL_IN. You have to iterate the historical deals and check DEAL_INs for comment.
- Generally comments may be modified by brokers in unpredicted manner. So it is best not to rely on them.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello everyone, I'm having trouble retrieving the magic number and the comment when the order is closed. It places the sell or buy limit order containing the magic number and the comment. If the order is pending, I can check it, and if the order was executed and is in progress, I can retrieve it. However, if the order is closed positively or negatively, I can't. I've tried several methods without success. I tried more than one approach to find between Deal and Order but without success. When closing and opening the platform, it returned the magic number to me, but the comment has not returned to me in any way so far. Could it be an error in the mql5 platform?