Close And Reopen Profitable Trades Script - Symbol mix up (help)

 

Hi,

 

I have this script that ran fine on a single currency trading EA. Now that I am trading with multiple currency, it is not working properly. I believe that the error is in the symbol selection. Can someone help me fix this simple bug? Many thanks