@Test public void cashFlowValueWithNoTrades() { TimeSeries sampleTimeSeries = new MockTimeSeries(3d, 2d, 5d, 4d, 7d, 6d, 7d, 8d, 5d, 6d); CashFlow cashFlow = new CashFlow(sampleTimeSeries, new BaseTradingRecord()); assertDecimalEquals(cashFlow.getValue(4), 1); assertDecimalEquals(cashFlow.getValue(7), 1); assertDecimalEquals(cashFlow.getValue(9), 1); }
@Override public Decimal getValue(int index) { return values.get(index); }
CashFlow implements Indicator<Decimal> { @Override public Decimal getValue(int index) { return values.get(index); } }
CashFlow implements Indicator<Decimal> { @Override public Decimal getValue(int index) { return values.get(index); } CashFlow(TimeSeries timeSeries, Trade trade);  CashFlow(TimeSeries timeSeries, TradingRecord tradingRecord); }
CashFlow implements Indicator<Decimal> { @Override public Decimal getValue(int index) { return values.get(index); } CashFlow(TimeSeries timeSeries, Trade trade);  CashFlow(TimeSeries timeSeries, TradingRecord tradingRecord); @Override Decimal getValue(int index); @Override TimeSeries getTimeSeries(); int getSize(); }
CashFlow implements Indicator<Decimal> { @Override public Decimal getValue(int index) { return values.get(index); } CashFlow(TimeSeries timeSeries, Trade trade);  CashFlow(TimeSeries timeSeries, TradingRecord tradingRecord); @Override Decimal getValue(int index); @Override TimeSeries getTimeSeries(); int getSize();  }