You can't just copy code out of context and run it especially indicator code.

You need to use the functions in Zorro which relate to the indicator code. What you are using seems to be a filter:
https://manual.zorro-project.com/filter.htm
https://manual.zorro-project.com/tutorial_lowpass.htm