Please how do i calculate the total profit or loss of a particular symbol in EA, that is in a situation i have so many sell and buy in the symbol and i want to
know if both sell and buy if calculated together in the symbol are in profit or loss.
- Modifying a Position - Trade - MetaTrader 5 for iPhone
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for iPhone
- Exchange Execution - Opening and Closing Positions - Trade - MetaTrader 5 for iPhone
- Profit is OrderProfit() + OrderCommission() + OrderSwap()
- Go through the order list and sum profit for the symbol.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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