仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
A friend has created this EA, it is excellent but it has an error that it has not been able to solve and I would like someone to study it and eliminate the error that makes it lose.
We have the codes of the two EAs involved, one for MT4 and the other for MT5.
The EA is a dashboard that calculates correlations between currencies and opens two operations when there is a deviation more than normal, if the two operations begin to give losses, beyond a certain amount of loss the system "Average" is activated, opening 2 orders more, etc., has many improvements, for example, the lotajes are calculated in one pair and in the other so that always the pips of each pair are worth the same when raising or lowering.
It is not known why, but sometimes the EA closes with losses and there is nothing to indicate that it can do it, in fact the EA is designed to never be able to close with losses because: either it closes the first orders with gains or closes the Average with earnings.
What is asked:
- study the operation of the EA, find out what the fault is and fix it.
- create the same version, with the correct operation, for MT4.
note: it was done in MT5 to be able to test it in Backtest, a "TestMode" True-False must be added so that it does not have to "press" the "START" button of the panel.
OVERLAY FILE IS AND INDICATOR
NEW CORRELATION EA PRO is the EA