When the shorter moving average crosses the longer moving average on the upside, you buy. When the shorter moving average crosses the longer moving average on the downside, you sell.