In mathematics, a moving average is a measure that is used by constructing a sequence…