for (TimeSeries slice : subseries) {
System.out.println("Sub-series: " + slice.getSeriesPeriodDescription());
for (Map.Entry<Strategy, String> entry : strategies.entrySet()) {
Strategy strategy = entry.getKey();
String name = entry.getValue();
<BUG>List<Trade> trades = slice.run(strategy).getTrades();
double profit = profitCriterion.calculate(slice, trades);
</BUG>
System.out.println("\tProfit for " + name + ": " + profit);
}

for (TimeSeries slice : subseries) {
System.out.println("Sub-series: " + slice.getSeriesPeriodDescription());
for (Map.Entry<Strategy, String> entry : strategies.entrySet()) {
Strategy strategy = entry.getKey();
String name = entry.getValue();
TradingRecord tradingRecord = slice.run(strategy);
double profit = profitCriterion.calculate(slice, tradingRecord);
System.out.println("\tProfit for " + name + ": " + profit);
}
