I think that does not even compile, due to the missing series in the EMA call.