Пример #1
0
 @Override
 public double calculate(TimeSeries series, Trade trade) {
   return totalProfit.calculate(series, trade) / maxDrawdown.calculate(series, trade);
 }
Пример #2
0
 @Override
 public double calculate(TimeSeries series, TradingRecord tradingRecord) {
   return totalProfit.calculate(series, tradingRecord)
       / maxDrawdown.calculate(series, tradingRecord);
 }