@l-andorrà https://fxdreema.com/shared/OyxArLenb
Hello friend, see the project as an example that I created, it is very simple and this rule does not work.
I configured to open a purchase if the RSI is below 30 and a sale if the RSI is above 70.
Then I did not define TP and SL and configured other blocks to check if the sum of profit + swap + commission is greater than 2 $ that all trades are closed immediately.
So the EA should only close all trades when this profit is achieved, it works until a certain moment, but suddenly it just stops working and starts closing trades in the negative with losses, which was not supposed to happen because the rule is close "only if the sum of all orders + swap + commission was positive at 2 $.
in a different way?
Hello friends, I would like to know how to calculate and include the Swap so as not to generate a loss in my negotiations.