I don't know why I'm doing this the hard way. I'm creating EA upgrader program to do the upgrade for me automatically. This piece of soft will allow you to upgrade any EA to support trailing stop, smart sl/tp, MM, running on multiple charts, closing on Friday, session filter, and many more. This is the way of the future, since many EAs I coded are using either old or buggy template. So i hope with a click of button, these EAs will get updated to the newest template.
Writing an EA will never be the same again! Because you'll transform a line of your code into full-blown EA!