SMA = (Closing price 5 days ago + Closing price 4 days ago + Closing price 3 days ago + Closing price 2 days ago + Closing price 1 day ago) ÷ 5 WMA = (Closing price 5 days ago × 1 + Closing price 4 days ago × 2 + Closing price 3 days ago × 3 + Closing price 2 days ago × 4 + Closing price 1 day ago × 5) ÷ 15