The moving average is computed over 17 days. That seems like an arbitrary choice and it largely is but I played around with that number and 17 yielded what seemed to me the best results. I tried 7 and such and wasn't satisfied with how those curves looked.