final double minBuy, final double minSell, final double minStop, final double maxBuy,
final double maxSell, final double maxStop, final int generations) throws Exception {
final Asset asset = new Asset(symbol, series);
final Conditions conditions = new Conditions(new BigDecimal(commissions), new BigDecimal(slippage));
final MoneyManagementStrategy moneyManager = new FixedPercentageAllocationStrategy(allocation, asset);
FitnessFunction fitness = new FitnessFunction() {
public double evaluate(double[] x) {