Can't modify comments.
Metaquotes language: OrderComment() is not able to be modified - Expert Advisors and Automated Trading - MQL5 programming forum 2013.08.10
Not a good idea to use comments, brokers can change comments, including complete replacement.
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
I am an experienced programmer, but new to MQL, I am trying save some private data in comment of position to track later.
As it's undocumented clearly in dcoument, I googled and did a lot tests, finally get the conclusion disappointly:
1. The comment is filled when creating order, and can NOT be modified later.
2. The maximium length of comment is 32 chars.
If "comment" field were able to be modified, it would save a lot efforts.
Is the restriction due to save server/network resource?