Evaluation of automated-trading strategies using an artificial market