I'm trying to write code for closing all open trades based on the net profit of all open trades. The scenario is there are open trades on multiple currency pairs. One or more of those trades may be at a loss, but the net value of all open trades is positive. I want the code to close all open trades based on a set desired profit(variable). Has anyone done this?
- Close all based on Magic
- Need one ea for closing all open position base on net profit
- Does anyone have an expert that closes all trades based on equity gain or loss?
mpr:
I'm trying to write code for closing all open trades based on the net profit of all open trades. The scenario is there are open trades on multiple currency pairs. One or more of those trades may be at a loss, but the net value of all open trades is positive. I want the code to close all open trades based on a set desired profit(variable). Has anyone done this?
Recent posts on this Forum have covered similar scenarios.
I'm trying to write code for closing all open trades based on the net profit of all open trades. The scenario is there are open trades on multiple currency pairs. One or more of those trades may be at a loss, but the net value of all open trades is positive. I want the code to close all open trades based on a set desired profit(variable). Has anyone done this?

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