Saltar al contenido
DDavinchu TradeOS
FuncionesProductosPanelPara quiénPreciosAfiliadosFAQBlog
EnglishEspañolРусскийУкраїнська中文PolskiDeutsch
EntrarRegistrarse
FuncionesProductosPanelPara quiénPreciosAfiliadosFAQBlogEntrarRegistrarse
Blog de Davinchu

Sharpe ratio, Z-score, AHPR and GHPR explained

Formulas and examples for the Sharpe ratio, Z-score (runs test), AHPR and GHPR in trading account statistics: what each metric means and how to read them together.

Publicado11 de octubre de 2026Actualizado15 de octubre de 2026AutorEquipo de DavinchuTiempo de lectura5 min

Artículos

Todos los artículosDavinchu TradeOS overviewHow to use MT5Compound interestForex trading sessionsFunding rateCopy trading: picking a traderGrid and martingale riskMT5 tester vs live accountYour first 30 days in tradingStop loss and take profit in MT5Margin, margin call, stop outMT4 vs MT5Edgewonk vs DavinchuTradezella, TradesViz, DavinchuFX Blue vs DavinchuIntelinvest, Snowball, DavinchuLiquidation price: Bybit, BinanceInvestment tracking: Excel or appChecking an EA before buyingSelling EAs and signalsMT5 alerts in TelegramWhy an EA isn't tradingVPS for an EAPassing a prop challengeEvaluating a strategyTrading plan and checklistTilt and overtradingMT5 investor passwordInstalling an EA in MT5Showing results to investorsReturn: TWR and XIRRBybit trade historyCrypto portfolio trackingReviewing students' journalsTrading teamProfit factorTrading expectancyRisk/reward ratioThe 1% ruleSharpe, Z-score, AHPR, GHPRTrailing vs static drawdownLimiting losses in MT5Crypto trading journalRead-only API keyLot size calculationTrading journal templateMT5 account monitoringMyfxbook alternativesTrading journal for MT5Prop firm risk managementCalculating drawdownStocks from IBKR and T-BankJournals and monitoring compared
Este artículo aún no está traducido a tu idioma; abajo está la versión en: Inglés.

In short. The Sharpe ratio shows how steadily a strategy earns relative to the spread of its results. Z-score shows whether neighbouring trades depend on each other (streaks or alternation). AHPR and GHPR are the average return per trade: arithmetic and geometric, i.e. with compounding. All four are in the MetaTrader 5 strategy tester report and in monitoring services, but they are calculated differently — only compare values from the same method.

Sharpe ratio

The classic Sharpe ratio is excess return (above the risk-free rate) divided by the standard deviation of returns, usually annualised. In trading account statistics it is often calculated more simply — per trade: average trade result / standard deviation of results.

Example: average result +$12.5, standard deviation $110 — Sharpe ≈ 0.11 per trade. The higher the value, the less the result depends on lucky outliers. A per-trade Sharpe and a fund's annual Sharpe are different numbers and cannot be compared.

Z-score

A runs test: how far the sequence of wins and losses is from random.

Z = (N × (R − 0.5) − P) / √(P × (P − N) / (N − 1)), where N is the number of trades, R the number of runs (consecutive trades of the same sign), P = 2 × W × L, W and L the number of winners and losers.

  • Z below −2 — fewer runs than random: wins tend to follow wins, losses follow losses.
  • Z above 2 — more runs: results tend to alternate.
  • Between −2 and 2 — no significant dependency. The ±2 threshold corresponds to about 95% confidence.

Below 30 trades Z-score says almost nothing. A dependency is a reason to test changing the size after a win or a loss — but only on a long history.

AHPR and GHPR

A trade's holding period return HPR = 1 + result / balance before the trade. AHPR is the arithmetic mean of HPRs, GHPR the geometric mean: (HPR₁ × HPR₂ × … × HPRₙ)^(1/n). They are usually shown in percent: (mean − 1) × 100.

Example: two trades, +10% and −10%. AHPR = 0% — «break-even on average». GHPR = √(1.1 × 0.9) − 1 ≈ −0.5% per trade, and the account really lost 1%: 1.1 × 0.9 = 0.99. GHPR is never above AHPR, and the bigger the spread of results, the bigger the gap. The account grows at the GHPR rate.

90%95%100%105%110%012345678910Balance vs the startTrade number−1%−4.9%Balance: +10% and −10% in turnAHPR: 0%GHPR: −0.5%
The arithmetic mean (AHPR) promises zero, while the balance follows the GHPR line down: every pair of trades is 1.1 × 0.9 = 0.99, a 1% loss. The account grows and shrinks at the GHPR rate.

Reading them together

MetricAnswers the question
Sharpehow stable the result is relative to its spread
Z-scorewhether trades depend on each other
AHPRaverage return per trade without compounding
GHPRhow fast the account actually grows or shrinks

None of them replaces profit factor, expectancy and drawdown — they are extra quality checks.

How Davinchu calculates them

In Davinchu these metrics are on the «Trades» tab of the account page, across every closed trade of the selected period and from net results, including commission and swap:

  • Sharpe Ratio — the average trade result divided by the standard deviation of results, with no risk-free rate and not annualised;
  • Z-Score — by the runs test with the formula above, together with a probability;
  • AHPR / GHPR — from the balance before each trade, adjusted for deposits and withdrawals; on exchange futures accounts Funding for the period is shown in their place.

That makes the values comparable across your accounts and periods: the method is the same. On the Free plan two accounts connect at no cost.

Diario, gestor de riesgo y analítica en un solo panel

Gratis para siempre: 2 cuentas, un diario y análisis con IA. La configuración lleva 5–10 minutos.

Empezar gratis
DDavinchu TradeOS

Plataforma de analítica para traders y equipos.

Productos

Diario de tradingAnalítica de cuentaMonitoreo de cuentaGestor de riesgo MT5Analítica IACalculadoras y herramientas de tradingTodas las funcionesPara quién es Davinchu

Empresa

Sobre nosotrosPreciosSeguridadAfiliadosBlogGlosario de tradingDocumentaciónCentro de ayudaContacto

Soporte

DocumentaciónCentro de ayudaSoporte en TelegramCanal de Telegram[email protected]

Legal

Política de privacidadTérminos de servicioPolítica de reembolsoPolítica AML
© 2026 Davinchu. Todos los derechos reservados.Plataforma premium de analítica de trading
Demo del panel DavinchuAbrir el panel en vivo →