Asset asset = new Asset(symbol, series);
Account account = new Account(new BigDecimal(initialBalance), today.minusDays(days));
Conditions conditions = new Conditions(new BigDecimal(commission), new BigDecimal(slippage));
MoneyManagementStrategy moneyManager = new FixedPercentageAllocationStrategy(accountAllocation, asset);
BuyZoneModel instance = new BuyZoneModel(account, asset, conditions,
moneyManager, buyTrigger, sellTrigger, stopLoss);
Session session = instance.generateSignals(series.beginningOfSeries(), series.lastOfSeries());