- EA vs Manual Trade Operations
- How to Show EA trade as Manual Trade
- How do you Trade (manually / using EAs / using Signals / not yet) ?
I am looking for a solution on how to get my ea to copy trades and for it to show "trade placed manually" label instead of "trade placed by expert". I know it can be done because I've ran into a few EA's that arbitrage trade and they show trade placed manually, which is impossible to be done by a human.
Look at the ENUM_DEAL_REASON deal property
Identifier | Description |
DEAL_REASON_CLIENT | The deal was executed as a result of activation of an order placed from a desktop terminal |
DEAL_REASON_MOBILE | The deal was executed as a result of activation of an order placed from a mobile application |
DEAL_REASON_WEB | The deal was executed as a result of activation of an order placed from the web platform |
DEAL_REASON_EXPERT | The deal was executed as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script |
DEAL_REASON_SL | The deal was executed as a result of Stop Loss activation |
DEAL_REASON_TP | The deal was executed as a result of Take Profit activation |
DEAL_REASON_SO | The deal was executed as a result of the Stop Out event |
DEAL_REASON_ROLLOVER | The deal was executed due to a rollover |
DEAL_REASON_VMARGIN | The deal was executed after charging the variation margin |
DEAL_REASON_SPLIT | The deal was executed after the split (price reduction) of an instrument, which had an open position during split announcement |
Look at the ENUM_DEAL_REASON deal property
Identifier | Description |
DEAL_REASON_CLIENT | The deal was executed as a result of activation of an order placed from a desktop terminal |
DEAL_REASON_MOBILE | The deal was executed as a result of activation of an order placed from a mobile application |
DEAL_REASON_WEB | The deal was executed as a result of activation of an order placed from the web platform |
DEAL_REASON_EXPERT | The deal was executed as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script |
DEAL_REASON_SL | The deal was executed as a result of Stop Loss activation |
DEAL_REASON_TP | The deal was executed as a result of Take Profit activation |
DEAL_REASON_SO | The deal was executed as a result of the Stop Out event |
DEAL_REASON_ROLLOVER | The deal was executed due to a rollover |
DEAL_REASON_VMARGIN | The deal was executed after charging the variation margin |
DEAL_REASON_SPLIT | The deal was executed after the split (price reduction) of an instrument, which had an open position during split announcement |
Do you have an idea how to attached the code into my EA?
Would appreciate if you can help and send me back the source code so i can review how it is done.
Thank you in advance.
Why did you post your MT4 question in the MT5 EA section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move your post there soon.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use