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