you are lucky the market went in your favour.
In my opinion MT4 is the most awful language to write an automated system in. The code is obtuse, the backtester is bonkers, the data is poor and the brokers are generally suspect.
But congratulations on your winnings...