@Test public void betterThan() { AnalysisCriterion criterion = new AverageProfitableTradesCriterion(); assertTrue(criterion.betterThan(12, 8)); assertFalse(criterion.betterThan(8, 12)); }
@Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 > criterionValue2; }
AverageProfitableTradesCriterion extends AbstractAnalysisCriterion { @Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 > criterionValue2; } }
AverageProfitableTradesCriterion extends AbstractAnalysisCriterion { @Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 > criterionValue2; }  }
AverageProfitableTradesCriterion extends AbstractAnalysisCriterion { @Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 > criterionValue2; }  @Override double calculate(TimeSeries series, Trade trade); @Override double calculate(TimeSeries series, TradingRecord tradingRecord); @Override boolean betterThan(double criterionValue1, double criterionValue2); }
AverageProfitableTradesCriterion extends AbstractAnalysisCriterion { @Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 > criterionValue2; }  @Override double calculate(TimeSeries series, Trade trade); @Override double calculate(TimeSeries series, TradingRecord tradingRecord); @Override boolean betterThan(double criterionValue1, double criterionValue2);  }