@Override
 public double calculate(TimeSeries series, Trade trade) {
   return totalProfit.calculate(series, trade) / maxDrawdown.calculate(series, trade);
 }
 @Override
 public double calculate(TimeSeries series, TradingRecord tradingRecord) {
   return totalProfit.calculate(series, tradingRecord)
       / maxDrawdown.calculate(series, tradingRecord);
 }