Can someone code this simple MACD strategy please?

 
Hi guys, I'm sure one of you can code this within 5 minutes, its for a girl friend of mine.... She'd like to have the extern int stop loss, take profit and trailing stop set manually.. other than that it will buy / sell as seen on the picture i attached.. Thank you very much to whoever can spare time to code this!
 
can't upload the pic somehow but i uploaded it here instead... http://i42.tinypic.com/24l90jo.gif
 
No, picture of the girl friend.
 
jmca:
No, picture of the girl friend.

lol.... WOW :P

 
mank:
Hi guys, I'm sure one of you can code this within 5 minutes, its for a girl friend of mine.... She'd like to have the extern int stop loss, take profit and trailing stop set manually.. other than that it will buy / sell as seen on the picture i attached.. Thank you very much to whoever can spare time to code this!

Hi mank,

No problem to help you in coding MACD. An information is missing : when do you want to close the trade, depending on which parameters : MACD, MA ...... ?

Reason: