Naqibjan:
Hi
With this code, I can close all the positions when, for example, (buy) when the profit is positive Now, when the close position is provided,
I want the positions (buy) to be closed. If the profit is positive, it will be closed, plus the last position that is at a loss.
I asked the professors for guidance
My EA is closing the bunch of profitable order at once , how can I add the last order which is on loss , on this group
So I want the close the orders on the loss one by one
Sample
Buy 0.05: - $ 30
Buy 0.06: - $ 40
Buy 0.08: - $ 10
Buy 0.12: $ 15
Buy 0.15: $ 30
Buy 0.18: $ 50
$ 50 + $ 30 + $ 15 + - $ 10 = + $ 85
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
With this code, I can close all the positions when, for example, (buy) when the profit is positive Now, when the close position is provided,
I want the positions (buy) to be closed. If the profit is positive, it will be closed, plus the last position that is at a loss.
I asked the professors for guidance