Hull moving average calculation on time-series

Hi,

I’ve recently tested the time-series collections in an aggregation pipeline with exponential moving averages with pretty good results regarding performance. So, I decided to give it a try for a private project but instead of exponential moving averages, I want to use the hull moving average. Has somebody already worked with that and some hints or snippets for me before I start to create it from scratch?