I have written an mt4 EA. I want it to display my contact information in order comment. What exactly should i write in source code if i want my EA to display my email id that is, "sammiawan@gmail.com" in the order comments and charts.
Thank in advance.
- How to change Order Comment?
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- I need help with coding an EA for mt4
If you want your email id as OrderComment, insert it in your OrderSend call.
You put it in the OrderComment parameter when using OrderSend().
You use Comment() on the chart
You've written an EA and you don't know this?
Better to use #property description
sammiawan999:
I actually wrote in ordersend () parameter but its not displaying :D
Not displaying where?
I actually wrote in ordersend () parameter but its not displaying :D
GumRai:
Not displaying where?
Not displaying where?
In the comment it is only displaying [tp] or [sl] as the case is.
sammiawan999:
In the comment it is only displaying [tp] or [sl] as the case is.
Then your broker is overwriting the comment. Check the order comment while it is still open.
In the comment it is only displaying [tp] or [sl] as the case is.
GumRai:
Then your broker is overwriting the comment. Check the order comment while it is still open.
Then your broker is overwriting the comment. Check the order comment while it is still open.
No when trade is open its showing blank:(((
This is what exactly my EA code contains:
OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"sammiawan@gmail.com,MagicNumber,0,Blue);
sammiawan999:
No when trade is open its showing blank:(((
No when trade is open its showing blank:(((
This is what exactly my EA code contains:
OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"sammiawan@gmail.com,MagicNumber,0,Blue);
You should get a compiler error because of the missing " after com
I can only guess that your broker is removing the order comments for some reason. Check with them
GumRai:
Oh gush. Order of comment changes if:order closes by tp or sl or partial close of order.
You should get a compiler error because of the missing " after com
I can only guess that your broker is removing the order comments for some reason. Check with 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