I took the liberty of cleaning up the code that you provided.
The EA still works the same, but better. Now it'll work with any symbol, not just EURUSD.
And you can define the parameters (lots,...