a simple EA, please

 
Could anybody point me to or quickly write up a very simple money management EA?

Something like that: open/sell two lots at will (manually) with TP for first lot of 30pips and SL for the both 30 pips. After first lot has taken profit, SL moved to the break even position and second lot run indefinitely (or I'd like to have it close when 5 and 12 EMA cross)

thanks
 
jasius

its not really clear what you want to be done, but here is a code that i think is what you want, if not let me know what you need be changed.

Hazem.

Files:
example.mq4  4 kb