- Types of Execution - Trading Principles - Trade - MetaTrader 5 for Android
- Managing Pending Orders - Trade - MetaTrader 5 for Android
- Managing Pending Orders - Trade - MetaTrader 5 for iPhone
The coding has to be modified to specify the User Comment. You can do a variety of types of User custom comments when it is an input.
For example noting a User code to ID the EA for yourself + a timeframe, etc.
The coding has to be modified to specify the User Comment. You can do a variety of types of User custom comments when it is an input.
For example noting a User code to ID the EA for yourself + a timeframe, etc.
Hey thank your for response, how would i do this?
In future please post in the correct section.
I will move this to the MQL4 and MT4 section
Do you have the source code? Then do what Michael suggests: modify the code.
That is how you do it. Otherwise, only the owner can.
Do you have the source code? Then do what Michael suggests: modify the
code. That is how you do it. Otherwise, only the owner can.
ok, i don't understand the code side to MT4
ok, i don't understand the code side to MT4
i think you mean the order string comments and wan't that to show blank, i'm correct? if that is the case you need to modify the OrderSend(...) function which is for example a sell order;
The part marked in yellow you leave completely blankOrderSend(Symbol(),OP_SELL,0.1,Bid,5,Bid+StopLoss*Point,Bid-TakeProfit*Point,"...",MagicNumber,0,Red);
ok, i don't understand the code side to MT4
Metaquotes language: OrderComment() is not able to be modified - Futures Trading - Expert Advisors and Automated Trading - MQL5 programming forum
Not a good idea to use comments, brokers can change comments, including complete replacement.
I would say that order comments are no good unless you absolutely need to define each one of your trades for later analysis but other wise i see no reason to use it and as William wrote in post #8 the broker can also change these comments.
Analyzing trades can be done in other ways, and perhaps a good example is to have it written to a csv file

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use