private List<Decimal> values;
public CashFlow(TimeSeries timeSeries, List<Trade> trades) {
</BUG>
this.timeSeries = timeSeries;
<BUG>this.trades = trades;
values = new ArrayList<Decimal>();</BUG>
values.add(Decimal.ONE);
calculate();
}
@Override

private List<Decimal> values;
public CashFlow(TimeSeries timeSeries, TradingRecord tradingRecord) {
this.timeSeries = timeSeries;
this.tradingRecord = tradingRecord;
values = new ArrayList<Decimal>();
values.add(Decimal.ONE);
calculate();
}
@Override
