Have you read these two articles?
https://www.daytrading.com/macd
https://www.daytrading.com/moving-averages