3D (3rd Generation) Moving Average with Sampling Period adjustment
And here is original file and updated version.
In updated version you may choose sampling period also < then  4*ma period.
PS: For the 3x cross "ribbon" version with Sampling adjustment, please see here.