In stock trading, the Simple Moving Average (SMA) is a widely used technical analysis tool. It calculates the average price of a security over a...