Help in writing expert

 
Hi,

I am a newbie. I need help in writing an expert.

I want to initiate a buy/sell based upon a condition of an indicator (I am not sure whether it is possible to combine both IND/EXPERT in one MQ4), and set profit-taken at 25 points, and from there I want the trailing to be initialized for 15 point.

I wish, the expert could take care of available balance check, and buy/sell call through separate functions.

Regards.
Reason: