Fix moving average formula in arena plugin