@Test public void calculateWithOneTrade() { Trade trade = new Trade(); NumberOfTradesCriterion tradesCriterion = new NumberOfTradesCriterion(); assertEquals(1d, tradesCriterion.calculate(null, trade), TATestsUtils.TA_OFFSET); }
@Override public double calculate(TimeSeries series, TradingRecord tradingRecord) { return tradingRecord.getTradeCount(); }
NumberOfTradesCriterion extends AbstractAnalysisCriterion { @Override public double calculate(TimeSeries series, TradingRecord tradingRecord) { return tradingRecord.getTradeCount(); } }
NumberOfTradesCriterion extends AbstractAnalysisCriterion { @Override public double calculate(TimeSeries series, TradingRecord tradingRecord) { return tradingRecord.getTradeCount(); }  }
NumberOfTradesCriterion extends AbstractAnalysisCriterion { @Override public double calculate(TimeSeries series, TradingRecord tradingRecord) { return tradingRecord.getTradeCount(); }  @Override double calculate(TimeSeries series, TradingRecord tradingRecord); @Override double calculate(TimeSeries series, Trade trade); @Override boolean betterThan(double criterionValue1, double criterionValue2); }
NumberOfTradesCriterion extends AbstractAnalysisCriterion { @Override public double calculate(TimeSeries series, TradingRecord tradingRecord) { return tradingRecord.getTradeCount(); }  @Override double calculate(TimeSeries series, TradingRecord tradingRecord); @Override double calculate(TimeSeries series, Trade trade); @Override boolean betterThan(double criterionValue1, double criterionValue2);  }