Adding e-mail alert

Hi,
can anyone help to add [B]1 more moving average[/B] (perhaps MediumMA) to the existing 2 MA crossover e-mail alert code in the attachment ?
Thanks a lot.