NEED HELP - Moving a snippet of code - MQL5 -> MQL4

 

Hi,

I am trying to move the invertTrades function from the mq5 document and put it into the mq4 document, but what ever I try doesn't seem to work? 

Anyone able to advise or help?


Cheers,

J

Files: