Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.
Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.
Quantitative Resource

Measuring Edge: The Essential Metrics Every New Quant Should Know

How to define, calculate, and stress-test edge in futures markets — and why a real edge can stay statistically invisible for years.

Market Monarch ResearchEducational resource · Companion paper~24 min read

Abstract

“Edge” is the most used and least precisely defined word in trading. This paper defines it as the expected net profit per trade, after all costs, estimated with quantified uncertainty, and then builds the toolkit around that definition: trade-level metrics (win rate, payoff ratio, expectancy, profit factor), statistical tests (t-statistics, sample-size requirements, confidence intervals), return-series metrics (Sharpe, Sortino, drawdown, Calmar), and the signal and execution metrics used in microstructure research (information coefficient, markouts, realized spread). A worked example shows how a real but thin edge can be statistically invisible for years, and how modest cost assumptions can erase it entirely. Formulas and a verified Python snippet are included.

Important notice

Educational content only; not investment, legal, or tax advice. Futures are leveraged and losses can exceed capital deposited. All numerical examples are hypothetical illustrations chosen to teach the arithmetic; they are not claims about any real strategy or market. Contract specifications, fees, and margins change, so confirm them with the exchange and your broker.

01What edge is (and what it is not)

In everyday trading talk, “edge” can mean a pattern, a hunch, a high win rate, or a profitable backtest. None of these is edge.

A usable definition has three parts:

  • Expected. Edge is a property of the process that generates trades, an average over many outcomes. A single trade, or a lucky month, tells you almost nothing about it.
  • Net. Edge only counts after every cost: commissions, exchange and clearing fees, the bid-ask spread, slippage, and market impact. Many apparent edges are smaller than the cost of trading them.
  • Estimated. You never observe edge, you estimate it from a finite sample, so every estimate comes with an error bar. Reporting edge without uncertainty is reporting a guess.
Edge = E[ net P&L per trade ] = gross edge − costs

Edge is a population quantity; the average of your backtest is a sample estimate of it. Nearly every metric in this paper is either a way to estimate edge, a way to measure the uncertainty in that estimate, or a way to understand the risk of the path you take while the edge plays out.

Always measure edge in ticks first

Contracts differ in size and price, so edge is easiest to compare, and to compare with costs, in ticks (the minimum price increment). Convert to dollars at the end: dollars = ticks × tick value × contracts.

Contract (example)Tick sizeTick valueNotes
E-mini S&P 500 (ES)0.25 index points$12.50$50 per index point
Micro E-mini S&P 500 (MES)0.25 index points$1.25One-tenth of ES
E-mini Nasdaq-100 (NQ)0.25 index points$5.00$20 per index point
Micro E-mini Nasdaq-100 (MNQ)0.25 index points$0.50One-tenth of NQ
Crude Oil (CL)$0.01 per barrel$10.001,000 barrels
10-Year T-Note (ZN)1/64 of a point$15.625Quoted in fractions of 32nds and 64ths
Gold (GC)$0.10 per ounce$10.00100 ounces

Verify against current CME Group contract specifications before use.

02Foundations: P&L, risk units, and returns

Trade P&L

P&L (ticks) = side × (exit price − entry price) / tick size − cost (ticks)
P&L ($) = P&L (ticks) × tick value × contractsside is +1 for a long and −1 for a short. Compute P&L within a single contract month; never across a contract roll without adjusting for the price gap between months.

R-multiples

An R-multiple expresses a trade’s result in units of the amount risked at entry (for instance, the distance to the stop). A trade that risks 4 ticks and makes 6 ticks is +1.5R; one that loses the full stop is −1R. R-multiples make trades of different sizes comparable and let you express edge as average R per trade (expectancy in R). Caveat: if stops are not honored (gaps, slippage), realized losses can exceed 1R, and the metric must use realized values.

Returns on what capital?

Return-based metrics (Sharpe, drawdown percentages, and so on) require a capital base, and futures make this easy to get wrong because a position requires only margin, not the full notional value.

  • Return on account equity (recommended): daily P&L divided by the capital you actually hold. It is stable, honest about leverage, and comparable across strategies.
  • Return on notional exposure: useful for comparing risk across contracts, but ignores how much leverage was applied.
  • Return on margin: avoid. Margin requirements change over time and across brokers, so the denominator moves for reasons unrelated to your strategy.

Because a futures position requires no cash purchase, the daily P&L is effectively an excess return (interest on idle collateral is a separate matter). State your capital assumption in every report.

03Trade-level metrics: the arithmetic of edge

These metrics are computed from the list of individual trades. Let n be the number of trades, p the fraction that win, W the average winning trade, and L the average losing trade expressed as a positive number, all in ticks and net of costs unless otherwise stated.

MetricFormulaHow to read it
Win rate (p)winners / nSays nothing about profitability by itself. A 90% win rate can lose money, and a 35% win rate can make money.
Average win, average loss (W, L)mean of winners; mean of losers (as positive)The two ingredients, with p, of all trade-level edge.
Payoff ratio (b)W / LHow large wins are relative to losses.
Expectancy (edge)E = p·W − (1 − p)·LAverage net P&L per trade. The central quantity. Equals the plain average of all trade P&Ls.
Expectancy in RE / average risk per tradeEdge normalized by risk taken; comparable across contracts and position sizes.
Profit factorgross profits / gross losses (absolute)Above 1 means profitable. Sensitive to a few large trades; always read it with n.
Breakeven win ratep* = L / (W + L) = 1 / (1 + b)The win rate needed to make zero, given payoffs.
Breakeven win rate with costsp* = (L + c) / (W + L), where c is cost per trade (gross W, L)Shows how costs push the required win rate up.
Trade standard deviation (s)sample standard deviation of trade P&LNeeded for the t-statistic and for sizing.
Per-trade SharpeE / sEdge per unit of per-trade risk; scales with the square root of the number of trades.
MAE and MFEmaximum adverse / favorable excursion during each tradeDiagnoses stop and target placement; reveals how much heat winners take.
Concentrationshare of total profit from the top 5 tradesReveals whether the strategy depends on rare outliers.

Worked example

Consider a hypothetical strategy that wins 48% of the time, earning 6 ticks on average when it wins and losing 4 ticks on average when it loses, before costs. Assume costs of 0.7 ticks per round trip, made up of 0.2 ticks of fees (about $2.50 on ES) and 0.5 ticks of slippage. Trading one ES contract (tick value $12.50), the table compares gross results, net results, and net results if costs turn out to be twice as large.

MetricGross (no costs)Net (1.0× costs)Net (2.0× costs)
Average win / average loss (ticks)6.0 / 4.05.3 / 4.74.6 / 5.4
Payoff ratio1.501.130.85
Breakeven win rate40.0%47.0%54.0%
Expectancy (ticks per trade)+0.80+0.10−0.60
Expectancy ($ per trade, 1 ES)+$10.00+$1.25−$7.50
Profit factor1.381.040.79
Standard deviation per trade (ticks)5.05.05.0
Binary Kelly fraction13.3%1.9%no bet
Trades needed for t = 2about 156about 10,000not applicable
t-statistic after 1,008 trades+5.1+0.64−3.8

Notice what the arithmetic reveals. A strategy that looks excellent gross (a 40% breakeven win rate against 48% achieved) has a net edge of one-tenth of a tick, and a mild cost misjudgment makes it a loser. Costs are not a footnote; they are usually the same order of magnitude as the edge itself.

Expected P&L per trade under increasing cost assumptions
Figure 1. Expected P&L per trade for the worked example under increasing cost assumptions (hypothetical numbers).

Building a cost model

Net edge per trade = gross edge − commissions − exchange, clearing and regulatory fees − spread cost − slippage − market impact
  • Fees are known in advance (broker and exchange schedules), but depend on your volume tier and on whether you add or remove liquidity.
  • Spread cost applies when you cross the book: on average half the bid-ask spread per side. In a large-tick contract with a one-tick spread this is 0.5 ticks per side, or one tick round trip, before anything else.
  • Slippage and impact are estimated from your own fills versus the quote at decision time, and rise with size and urgency.
  • Passive orders avoid spread cost but face adverse selection and uncertain fills (see Section 06).

04Is the edge real? Statistical evidence

The t-statistic of the average trade

t = E / ( s / √n ) = ( E / s ) × √nE is the average net P&L per trade, s its standard deviation, and n the number of trades.

A t-statistic near 2 corresponds roughly to a 5% two-sided p-value if trades are independent and the sample is not the product of a search. After searching across many variants the bar must be higher (Harvey, Liu and Zhu, 2016, suggest above roughly 3 for new claims).

How many trades do you need?

n needed ≈ ( z × s / E )2with z = 2 for t = 2.

In the worked example, s ≈ 5.0 ticks. A gross edge of 0.8 ticks needs about (2 × 5.0 / 0.8)2 = 156 trades. A net edge of 0.1 ticks needs (2 × 5.0 / 0.1)2 = 10,000 trades, about ten years at four trades per day. The smaller the edge relative to trade-to-trade noise, the quadratically more data you need to see it.

Uncertainty in the win rate

standard error of p = √( p (1 − p) / n )

After 100 trades with an observed win rate of 48%, the standard error is about 5 percentage points, so a 95% confidence interval runs from roughly 38% to 58%. That interval spans both a clearly losing and a clearly winning strategy. Win rates measured on small samples are close to meaningless.

What a real edge looks like along the way

Suppose the net edge of 0.1 ticks per trade is genuine. The figure shows 30 simulated years (1,008 trades each) of exactly that strategy. The dark line is the expected path; the light lines are what actually happens. In a simulation of 20,000 such years:

  • About 26% of years finish with a loss, despite a real positive edge.
  • The median maximum drawdown is about 144 ticks, and one year in ten sees a drawdown of 245 ticks or worse.
  • The median longest stretch below a prior equity peak is about 460 trades (roughly four months), and one year in ten spends about 935 trades, nearly the entire year, underwater.
Thirty simulated years of a strategy with a real net edge
Figure 2. Thirty simulated years of a strategy with a true net edge of +0.10 ticks per trade (win rate 48%, net win 5.3 ticks, net loss 4.7 ticks; hypothetical).

This is why discarding a strategy after a bad stretch, or embracing one after a good stretch, is so often a mistake. Skill and luck are not separable over short samples.

Uncertainty in the Sharpe ratio

standard error of annualized Sharpe ≈ √( ( 1 + 0.5 × SR2 ) / T ), T in years

For an annualized Sharpe of 1.0 measured over one year, the standard error is about 1.2, so a one-year Sharpe of 1.0 is statistically compatible with zero. The formula assumes independent, roughly normal returns; skewness and fat tails widen the error further (Mertens, 2002; Opdyke, 2007). Bailey and López de Prado (2012) turn this into the Minimum Track Record Length, the number of observations needed before an observed Sharpe can be distinguished from a benchmark at a chosen confidence level:

MinTRL = 1 + [ 1 − skew × SR + ((kurt − 1) / 4) × SR2 ] × ( Zalpha / (SR − SR*) )2SR is the observed per-period Sharpe, SR* the benchmark (often zero), skew and kurt the skewness and (raw) kurtosis of the per-period returns (kurtosis is 3 for a normal distribution), and Zalpha the standard normal quantile for the chosen confidence level.

Dependence, bootstrapping, and permutation tests

  • Autocorrelated or overlapping observations overstate significance. Use heteroskedasticity- and autocorrelation-consistent (Newey–West, 1987) standard errors, or a block bootstrap (Politis and Romano, 1994): resample blocks of consecutive observations to preserve dependence, recompute the metric thousands of times, and read confidence intervals from the resulting distribution.
  • Permutation test: shuffle entry timing (or signal labels) many times, keeping trade count and holding periods fixed, and ask what fraction of random strategies beat yours. This makes no normality assumption and tests the signal’s timing directly.

Multiple testing and the winner’s curse

The estimate you report is the best of everything you tried, so it is biased upward: the winner’s curse. Count your trials, apply the Deflated Sharpe Ratio or a false-discovery correction, and expect true edge to be smaller than measured edge. Harvey and Liu (2015) argue that appropriate performance haircuts can be large. A sensible habit is to plan capital and expectations around a fraction of the backtested edge.

05Return-series metrics: measuring the journey

Where Section 03 describes trades, this section describes the equity curve. Let rt be the return in period t (usually daily P&L divided by account equity).

MetricFormulaNotes
Annualized mean returnmean(r) × 252 for daily dataArithmetic annualization; compounded growth rate (CAGR) is lower when volatility is high.
Annualized volatilitystdev(r) × √252Square-root scaling assumes independent returns.
Sharpe ratio[mean(r) − risk-free] / stdev(r) × √252Return per unit of total volatility. For futures P&L on account equity, the risk-free term is commonly set aside or applied to equity. Say which you used.
Sortino ratio[mean(r) − MAR] / downside deviation × √252Penalizes only returns below a minimum acceptable return (MAR). Downside deviation is the root mean square of min(r − MAR, 0) (Sortino and Price, 1994).
Maximum drawdownmax over t of (peak equity to date − equityt)Worst peak-to-trough loss. Report in dollars and in percent of peak equity.
Drawdown durationlongest time between a peak and its recoveryOften more psychologically and financially damaging than depth.
Calmar ratioannualized return / |maximum drawdown|Return per unit of worst drawdown; very sample-dependent (Young, 1991).
Ulcer indexsqrt( mean of squared percentage drawdowns )Combines depth and duration of drawdowns into one number.
Skewness, excess kurtosisthird and fourth standardized momentsNegative skew and fat tails mean Sharpe understates risk (typical of strategies that sell insurance).
Historical VaR and CVaRVaR = loss at a chosen quantile (e.g., 5th percentile of P&L); CVaR = average loss beyond VaRTail-risk summaries. CVaR is more informative about how bad it gets.
Information ratio and betaactive return / tracking error; regression slope on a benchmarkTests whether returns are just exposure to a market factor (for example, long ES beta).

Annualizing correctly

  • From daily data: multiply the daily Sharpe by √252 (trading days per year, a convention).
  • From per-trade data: annualized Sharpe ≈ (E / s) × √(trades per year). In the worked example, 0.1 / 5.0 × √1,008 = 0.64.
  • With autocorrelated returns the square-root rule misstates risk. Lo (2002) shows the corrected scaling factor for aggregating over q periods is given below.
SR(q) = eta(q) × SR(1),   eta(q) = q / √( q + 2 × [ (q−1)rho1 + (q−2)rho2 + … + rhoq−1 ] )rhok is the lag-k autocorrelation of returns. Positive autocorrelation (for example, from smoothed or stale prices) inflates the naive annualized Sharpe.

Drawdown, computed properly

Compute drawdown on marked-to-market equity (including open-trade P&L), not just on closed trades. Closed-trade equity curves hide the intratrade pain and understate worst-case drawdown. Also compute it on the intended capital base, since a drawdown that is survivable at one account size may breach margin or psychological limits at another.

Risk of ruin

For a strategy whose P&L behaves like a random walk with positive drift, the probability that cumulative losses ever reach a level C is approximately:

P(ruin) ≈ exp( −2 × E × C / s2 )with E and s measured per trade and C in the same units.

For the worked example (E = 0.1, s2 ≈ 25, C = 300 ticks) this gives about 9%. If the true edge is only half of the estimate, the chance rises to about 30%. Risk of ruin is extremely sensitive to edge, which you can only estimate imprecisely, so build in margin of safety.

Skewness and the “picking up pennies” trap

A very high win rate with small wins and rare large losses produces a beautiful equity curve right up until the tail event. Always inspect skewness, the worst single trade, and the worst day alongside the Sharpe ratio. Sharpe treats upside and downside symmetrically and is easily inflated by strategies that sell tail risk.

Position sizing and the Kelly criterion

The Kelly criterion (Kelly, 1956; see Thorp, 2006) gives the stake that maximizes long-run growth. For a binary bet with win probability p and payoff ratio b, and for small roughly normal returns, respectively:

f* = p − (1 − p) / b    and    f* ≈ mu / sigma2mu and sigma are the mean and standard deviation of returns per unit staked.

In the worked example the binary fraction falls from 13.3% gross to 1.9% net, a reminder that sizing from a gross or over-estimated edge means betting far too much. Because edge estimates are noisy, practitioners typically use a fraction of Kelly (half or less) and cap leverage with hard risk limits.

06Signal and microstructure metrics

Much short-horizon research evaluates a signal (a predictive feature) before building a strategy around it. These metrics measure the signal’s predictive content and the execution frictions that determine how much of it you can keep.

Information coefficient and the Fundamental Law

The information coefficient (IC) is the correlation between a signal and the subsequent return over a chosen horizon. Pearson IC measures linear association; rank IC (Spearman) is more robust to outliers. IC values in liquid markets are tiny, often below 0.05, yet can be economically meaningful when applied repeatedly. Grinold and Kahn’s Fundamental Law of Active Management approximates:

IR ≈ IC × √BRIR is the information ratio and BR (breadth) the number of independent bets per year.

With an IC of 0.02 and 252 independent daily bets, IR ≈ 0.02 × 15.9 = 0.32; with an IC of 0.05, 0.79. The law is an approximation and breadth is easily overstated, since overlapping or correlated predictions are not independent bets.

Bucket analysis and hit rate

  • Quantile (bucket) analysis: sort observations by signal value into deciles or quintiles and compute the mean forward return in each. A genuine signal shows a monotonic pattern; an effect confined to one bucket may be noise or an outlier artifact.
  • Directional hit rate: the fraction of times the sign of the forecast matches the sign of the forward move. It must be translated into ticks: a 51% hit rate on moves smaller than the spread is unprofitable.
  • Edge per trade versus cost per trade: the decisive comparison is the conditional average move in ticks, given the signal, against the all-in cost of acting on it.

Order-book features

FeatureDefinitionIntuition
Book imbalanceI = (Qbid − Qask) / (Qbid + Qask), using size at the best (or several) levelsPositive imbalance means more resting buy interest; price tends to tick up when the thin side is consumed.
Microprice(Pbid × Qask + Pask × Qbid) / (Qbid + Qask)A size-weighted fair price that leans toward the side with greater depth (see Stoikov, 2018, for refined versions).
Order flow imbalance (OFI)Over an interval, sum the signed changes in best-bid and best-ask size: additions at a rising or unchanged bid count as buying pressure, cancellations or a falling bid as selling pressure, and symmetrically for the ask (Cont, Kukanov and Stoikov, 2014)Mid-price changes are approximately linear in OFI over short intervals, with a slope that depends on market depth.
Signed trade volumebuy-aggressor volume minus sell-aggressor volume, using the feed’s aggressor flagPersistent flow (from sliced large orders) can predict short-horizon drift.

Execution and adverse-selection metrics

Let side = +1 for a buy and −1 for a sell, P the fill price, M0 the mid-price at fill time, and Mh the mid-price h seconds later.

MetricFormulaMeaning
Effective spread2 × side × (P − M0)What you actually paid relative to the mid at the time of the trade.
Markout at horizon hside × (Mh − P)Profit or loss relative to your fill, if marked at the mid h seconds later. The most useful diagnostic in short-horizon research.
Realized spread2 × side × (P − Mh)What the liquidity provider kept after the price moved.
Price impacteffective spread − realized spreadHow much the price moved against the liquidity provider (the adverse-selection component).
Implementation shortfall(execution price − decision price) × side × quantity, plus unfilled-order opportunity costTotal cost of turning a decision into a position (Perold, 1988).
Fill rate and fill-conditional markoutfills / orders; average markout given a fillPassive orders tend to fill precisely when the market is about to move against them.
Edge per fill for a passive quoter

Edge per fill ≈ half-spread captured + exchange rebate − fees − adverse selection (negative markout). A strategy that earns 0.5 ticks of spread but loses 0.6 ticks of adverse selection per fill is unprofitable no matter how many fills it receives. Always evaluate passive edge conditional on being filled, not on all quotes shown.

Signal decay

Compute IC and markouts at several horizons (for example 100 ms, 1 s, 10 s, 60 s). The decay profile tells you how quickly the signal’s information is absorbed. If it vanishes before you can act on it, given your latency, it is not tradable for you, however strong it looks in a zero-latency backtest.

07A step-by-step procedure for calculating edge

  1. Define the unit of analysis. What is a trade or event, and over what horizon is it measured? Write it down before analyzing.
  2. Prepare clean, aligned data. Handle contract rolls, bad ticks, time zones, and timestamps.
  3. Compute gross edge. The average conditional move in ticks (after the signal, on the traded side) with no costs.
  4. Build the cost model. Fees, spread, slippage, impact, in ticks, with a conservative stance on fills.
  5. Compute net edge per trade and the full set of trade-level metrics (Section 03).
  6. Quantify uncertainty. Standard error, t-statistic, bootstrap confidence interval, sample size required (Section 04).
  7. Stress the result. Double costs, add latency, shift the signal in time, split by period and regime.
  8. Adjust for the number of trials. Deflated Sharpe, multiple-testing corrections, and an expectation haircut.
  9. Evaluate the risk path. Drawdown, time underwater, tail risk, risk of ruin, position sizing (Section 05).
  10. Monitor live versus expected. Track realized edge and slippage against the backtest and pre-define what deviation triggers a halt.

Reference implementation

The following Python functions compute the main trade-level and return-series metrics. Adapt them to your own data structures and test them on cases where you know the answer.

import numpy as np

def trade_metrics(pnl_ticks):          # one net P&L per trade, in ticks
    pnl = np.asarray(pnl_ticks, float)
    n = len(pnl)
    wins, losses = pnl[pnl > 0], pnl[pnl <= 0]
    mean, sd = pnl.mean(), pnl.std(ddof=1)
    return {
        "n": n,
        "win_rate": len(wins) / n,
        "avg_win": wins.mean(),
        "avg_loss": -losses.mean(),
        "expectancy": mean,                       # net edge per trade
        "profit_factor": wins.sum() / -losses.sum(),
        "t_stat": mean / (sd / np.sqrt(n)),
        "trades_needed_t2": (2 * sd / mean) ** 2 if mean > 0 else float("inf"),
    }

def max_drawdown(cum_pnl):             # cum_pnl: cumulative P&L series
    peak = np.maximum.accumulate(np.r_[0.0, cum_pnl])[1:]
    return (cum_pnl - peak).min()      # most negative peak-to-trough, in P&L units

def annual_sharpe(daily_pnl, capital, days=252):
    r = np.asarray(daily_pnl) / capital
    return r.mean() / r.std(ddof=1) * np.sqrt(days)

Apply the functions to trade-level P&L from a simulation or backtest, and use drawdown on marked-to-market cumulative P&L as discussed above. Note how the sample estimates bounce around: ten different one-year samples from the same strategy will give ten different expectancies and t-statistics.

08Reading the dashboard: red flags

A metric is a clue, not a verdict. The patterns below should trigger suspicion and investigation, not celebration.

PatternPossible explanationWhat to do
Very high Sharpe from a simple, low-frequency ruleLook-ahead bias, omitted costs, data errorLag the signal; recompute with realistic costs; inspect trades by hand.
Win rate above 80% with large average lossTail risk being sold; “picking up pennies”Examine worst trades, skewness, and CVaR.
Smooth equity curve with almost no drawdownsUnrealistic fills, closed-trade drawdown only, or leakageRecompute drawdown mark-to-market; stress fills and latency.
Profit concentrated in a handful of tradesEdge depends on outliersRemove the top 5 trades and recompute; check concentration.
Large profit factor on few tradesSmall-sample luckCompute confidence intervals; need more trades.
Edge appears only in one period or regimeRegime dependence or chanceSplit by year and volatility regime; ask why.
Results improve steadily as parameters are tunedOverfitting; selection biasExamine parameter plateaus; apply multiple-testing adjustments.
Large gap between backtest and paper tradingFill, latency, or data differencesReconcile trade by trade before trusting either.
Passive-order edge with no adverse selection modeledFill assumptions too generousMeasure fill-conditional markouts; model queue position.
Edge smaller than one tick round-trip costCosts dominateReduce turnover or trade passively with verified fills.

09Common calculation mistakes

  • Wrong annualization: using √252 on per-trade returns, or √365 on trading-day data, or ignoring autocorrelation.
  • Inconsistent capital base: reporting returns on margin, or switching between notional and equity.
  • Gross numbers quoted as results, or costs applied inconsistently between entries and exits.
  • Closed-trade drawdown instead of marked-to-market drawdown.
  • Treating overlapping trades or labels as independent, inflating n and the t-statistic.
  • Ignoring the contract multiplier when comparing instruments; compare in ticks, R, or returns on equity.
  • Roll-gap profits: computing P&L across contract months without adjusting for the roll.
  • Using settlement prices for intraday decisions, or timestamps that are not aligned.
  • Survivorship in contract or period selection: measuring only the contracts or years that look good.
  • Reporting a point estimate with no uncertainty and no trial count.

10Practice exercises

  • Reproduce the worked example. Simulate 100,000 trades with the parameters in Section 03 and verify the expectancy, profit factor, and breakeven win rate.
  • Reproduce Figure 2. Simulate 20,000 years of 1,008 trades, then estimate the probability of a losing year, the median maximum drawdown, and the longest underwater stretch.
  • Breakeven map. For payoff ratios from 0.5 to 3 and costs from 0 to 1.5 ticks, tabulate the breakeven win rate. Where does the “thin edge” region lie?
  • Signal IC. On one-minute ES data, compute the IC of the previous minute’s return against the next minute’s return, plus a quantile analysis. Does anything survive costs?
  • Markouts. Using trades and top-of-book data, compute average buyer-initiated markouts at 1, 10, and 60 seconds. How do they compare with the spread?
  • Bootstrap. Compute a block-bootstrap 95% confidence interval for a strategy’s Sharpe ratio and compare it with the analytic standard error.

AAppendix: formula sheet

QuantityFormula
Trade P&L (ticks)side × (exit − entry) / tick size − cost
Expectancy (edge)E = pW − (1 − p)L
Net payoffs with cost cWnet = W − c;  Lnet = L + c
Breakeven win ratep* = (L + c) / (W + L)
Profit factorgross profit / gross loss
t-statistic of mean tradeE / (s / √n)
Trades needed for a given zn = (z s / E)2
Standard error of win rate√(p(1 − p) / n)
Per-trade Sharpe; annualizedE / s;  (E / s) × √(trades per year)
Daily-data Sharpe, annualizedmean(r) / stdev(r) × √252
Standard error of annualized Sharpe√((1 + 0.5 SR2) / T)
Sortino ratio(mean(r) − MAR) / downside deviation × √252
Maximum drawdownmaxt(peakt − equityt)
Calmar ratioannualized return / |maximum drawdown|
Risk of ruin (approximate)exp(−2EC / s2)
Kelly (binary; continuous approx.)p − (1 − p)/b;  mu / sigma2
Fundamental LawIR ≈ IC × √BR
Book imbalance(Qbid − Qask) / (Qbid + Qask)
Microprice(PbidQask + PaskQbid) / (Qbid + Qask)
Effective spread2 × side × (P − M0)
Markout at horizon hside × (Mh − P)
Realized spread2 × side × (P − Mh)
Passive edge per fillhalf-spread + rebate − fees − adverse selection

RReferences and further reading

Verify bibliographic details (editions, pages, venues) before formal citation.

Bailey, D. H., & López de Prado, M. (2012). The Sharpe ratio efficient frontier. Journal of Risk, 15(2).

Bailey, D. H., & López de Prado, M. (2014). The deflated Sharpe ratio. Journal of Portfolio Management, 40(5).

Bouchaud, J.-P., Bonart, J., Donier, J., & Gould, M. (2018). Trades, Quotes and Prices. Cambridge University Press.

Cont, R., Kukanov, A., & Stoikov, S. (2014). The price impact of order book events. Journal of Financial Econometrics, 12(1).

Grinold, R., & Kahn, R. (2000). Active Portfolio Management (2nd ed.). McGraw-Hill.

Harris, L. (2003). Trading and Exchanges: Market Microstructure for Practitioners. Oxford University Press.

Harvey, C., & Liu, Y. (2015). Backtesting. Journal of Portfolio Management, 42(1).

Harvey, C., Liu, Y., & Zhu, H. (2016). …and the cross-section of expected returns. Review of Financial Studies, 29(1).

Hasbrouck, J. (2007). Empirical Market Microstructure. Oxford University Press.

Kelly, J. L. (1956). A new interpretation of information rate. Bell System Technical Journal, 35(4).

Lo, A. (2002). The statistics of Sharpe ratios. Financial Analysts Journal, 58(4).

López de Prado, M. (2018). Advances in Financial Machine Learning. Wiley.

Magdon-Ismail, M., & Atiya, A. (2004). Maximum drawdown. Risk, 17(10).

Mertens, E. (2002). Comments on variance of the IID estimator in Lo (2002). Working paper.

Newey, W., & West, K. (1987). A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica, 55(3).

Opdyke, J. D. (2007). Comparing Sharpe ratios: So where are the p-values? Journal of Asset Management, 8(5).

Perold, A. (1988). The implementation shortfall: Paper versus reality. Journal of Portfolio Management, 14(3).

Politis, D., & Romano, J. (1994). The stationary bootstrap. Journal of the American Statistical Association, 89(428).

Sortino, F., & Price, L. (1994). Performance measurement in a downside risk framework. Journal of Investing, 3(3).

Stoikov, S. (2018). The micro-price: A high-frequency estimator of future prices. Quantitative Finance, 18(12).

Thorp, E. (2006). The Kelly criterion in blackjack, sports betting, and the stock market. In Handbook of Asset and Liability Management. Elsevier.

Young, T. W. (1991). Calmar ratio: A smoother tool. Futures, 20(1).

Prefer the PDF? The complete 14-page paper, including the full formula sheet and reference list.
Download the PDF ↓

This is how we build everything.

These are the standards our own strategies are held to. Every signal we ship has to survive the same tests described here.

Educational resource — not financial advice. This document is published for informational and educational purposes only. It is not investment, legal, or tax advice, and nothing here is a recommendation to trade any instrument or strategy. Market Monarch LLC is a software and educational-technology company, not a registered investment adviser or broker-dealer.

Risk disclosure. Futures are leveraged instruments and losses can exceed the capital deposited. Most attempts to profit from trading fail. All numerical examples are hypothetical illustrations chosen to teach the arithmetic; they are not claims about any real strategy or market. Past and simulated performance do not guarantee future results.

Verify before relying. Software features, pricing, free-credit offers, contract specifications, fees, margins and exchange rules change. Confirm every product-specific statement against the vendor’s or exchange’s current documentation before relying on it.