Help with my coding error

 

Im currently trying to fix an EA of mine that Hedges EURJPY with EURUSD using Correlation the correlation is below a certain level and opens a BUY and SELL trade of the two pairs using two different lot sizes it will close the trades once a 1% profit has been reached, usally with one trade in loss and the other profit, however for some reason its only opening one trade most of the time, that being the EURJPY trade. I contacted my broker who have advised to make the following change in this email;

We have investigated EA and found business logic error:

As you see bellow 'Print' statement has below 'if', but need inside, so this code

DECOMPILED CODE REMOVED

This code need to be changed everywere of this types of code.

Can anyone help me, thanks

 

Do Not Post De-Compiled Codes.

 

DECOMPILED CODE REMOVED


 
Sorry Did you need to post it as above?
 
  1. Decompiled code is stolen code. Either you are a thief or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to theft.

    See also https://www.mql5.com/en/forum/134317



  2. For large amounts of code, attach it
Reason: