HELP WITH AN EXPERT

 
Hi,i have a custom indicator that is called "lucky line".When this indicator is green i must buy and when it turns red i must sell.I want to create an expert to make the trades automated.can anyone please help me?thanks in advance