Rick Wicklin published a related post on how to create a customer time-series smoother with SAS/IML software: https://blogs.sas.com/content/iml/2019/09/16/hull-moving-average-sas.html