Implement buy/sell strategy using simple moving average.