I am not 100% sure but believe the pinescript is not the same as the sierra code. The sierra code sums up by differences to the current close but the pinescript sums up by differences of subsequent closes.

In Zorro: SumUp(series(priceClose()),Length) / Length * 100;