Almost. But you're returning a series, so you need to declare

var *Ema_of_Atr(int Period)

or

vars Ema_of_Atr(int Period)