![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
Hi all,
Not looking for handouts here, I'll be doing the hard work myself, just wanted to know if something is possible from someone with experience in MQL5 before I get started.
I'm looking to make a very simple EA that will take the sum of all my open positions, and then close all positions when a net Profit or Loss value is hit.
The reason for this is because I trade a portfolio style without any stops or profit, therefore large losses are often offset by large gains, but the net position can remain near zero.
Is this possible to code in MQL5 or will I need to look for an alternative solution.
Many thanks,
Daniel Lake