Performance Metrics Glossary

Performance Metrics Glossary

Profit Metrics

MetricDescription
Net ProfitTotal profit after all costs (slippage, commission)
Gross ProfitSum of all winning trades
Gross LossSum of all losing trades
Profit FactorGross Profit / Gross Loss (>1.0 is profitable)
Average TradeNet Profit / Total Trades

Win/Loss Metrics

MetricDescription
Win %Percentage of trades that were profitable
Average WinnerMean profit of winning trades
Average LoserMean loss of losing trades
Largest WinnerBest single trade
Largest LoserWorst single trade
Avg Win / Avg LossPayoff ratio

Risk-Adjusted Returns

MetricDescription
Sharpe Ratio(Annualised Return - Risk Free Rate) / Annualised Volatility
Sortino RatioLike Sharpe, but uses only downside volatility
Calmar RatioAnnualised Return / Maximum Drawdown
RINA IndexRisk-adjusted metric that rewards consistency
Ulcer IndexMeasures the depth and duration of drawdowns

Drawdown Metrics

MetricDescription
Maximum DrawdownLargest peak-to-trough equity decline
NP/DDNet Profit / Maximum Drawdown
Recovery FactorNet Profit / Maximum Drawdown (same as NP/DD)

Equity Curve Quality

MetricDescription
R-SquaredLinearity of the equity curve (1.0 = perfectly linear growth)
Pearson CorrelationCorrelation between trade sequence and cumulative profit

Custom Metrics

Algolang supports custom fitness expressions using mathematical operators. Available variables include:

nbrtrades, profitfactor, avgtrade, npdd, npmargin, nbrdd, r2, pearson, sharpe, sortino, rina, tim, tsindex, pct-profitable

Example: --fitness-metric "sharpe * r2" (Sharpe ratio weighted by equity curve linearity).