Code for gator oscillator

 

Anyone know how you would code the alligator oscillator into an if statement for opening a buy/sell in an expert advisor?

Thanks,

Anna