Skip to main content

Quant Basics Without Code

Calculate your own edge: win rate times risk/reward equals expectancy. Understanding backtest results, Sharpe ratio, when you have enough data to validate an edge.

From Thrive on YouTube

Watch the matching Thrive video

Watch the series
Win Rate vs Reward to Risk: The Math That Decides If You Make Money

Win Rate vs Reward to Risk: The Math That Decides If You Make Money

Part of Risk Management and Position Sizing. Education only. Not financial advice.

The Only Formula That Matters: Expectancy

Every profitable trading system in the world, from billion-dollar hedge funds to solo crypto traders, is built on one mathematical foundation: positive expectancy. Expectancy tells you how much you expect to make (or lose) per dollar risked on average across many trades. If your expectancy is positive, you will make money over time. If it is negative, no amount of discipline or psychology will save you.

The formula is simple: Expectancy = (Win Rate × Average Win) − (Loss Rate × Average Loss). That's it. Every other metric in quant finance is a refinement or extension of this core idea. You do not need to write code, build algorithms, or understand advanced statistics. You need to understand this one equation and measure it honestly from your own trade data.

Expectancy Formula(Win Rate × Avg Win) − (Loss Rate × Avg Loss) = Expectancy per trade
Example: Positive55% win rate, avg win $200, avg loss $100. E = (0.55 × $200) − (0.45 × $100) = $110 − $45 = $65 per trade. Profitable system.
Example: Negative40% win rate, avg win $150, avg loss $200. E = (0.40 × $150) − (0.60 × $200) = $60 − $120 = −$60 per trade. Losing system.
Example: Breakeven50% win rate, avg win $100, avg loss $100. E = (0.50 × $100) − (0.50 × $100) = $0 per trade. No edge: fees make this a losing system.

Win Rate Is Only Half the Equation

A common mistake is fixating on win rate. A 70% win rate sounds impressive, but if your average win is $50 and your average loss is $200, your expectancy is (0.70 × $50) − (0.30 × $200) = $35 − $60 = −$25 per trade. You are losing money despite winning 70% of the time. Conversely, a 35% win rate with a 3:1 reward-to-risk ratio is profitable. Both win rate and R:R must be evaluated together.

Calculating Your Actual Edge from Trade Journal Data

Theory is one thing. Your actual edge, calculated from your real trades, is the only number that matters. This requires a minimum of 30-50 trades in your journal, all taken with the same strategy and risk parameters. Mixing different strategies in the same calculation will produce a meaningless average.

1

Separate your trades by strategy

If you trade three different setups (funding fade, whale accumulation, breakout), calculate expectancy for each one separately. One strategy might be profitable while another is losing: the aggregate hides this.
2

Convert all trades to R-multiples

Normalize every trade by dividing the result by the amount risked. A trade where you risked $100 and made $250 is a 2.5R win. A trade where you risked $100 and lost $80 is a −0.8R loss. R-multiples make trades comparable regardless of position size.
3

Calculate win rate

Count your winning trades and divide by total trades. A winner is any trade with a positive R-multiple. A loser is any trade with a negative R-multiple. Breakeven trades (0R) count as neutral and should be excluded.
4

Calculate average win and average loss in R

Sum all positive R-multiples and divide by the number of winners = average win. Sum all negative R-multiples (absolute value) and divide by number of losers = average loss. These should be measured in R, not dollars.
5

Compute expectancy

Plug into the formula: (Win Rate × Average Win in R) − (Loss Rate × Average Loss in R) = Expectancy in R per trade. A positive number means you have an edge. The higher the number, the stronger the edge.

Sample Size: When You Can (and Can't) Trust Your Numbers

One of the most dangerous traps in trading is drawing conclusions from insufficient data. After 10 winning trades in a row, it is tempting to declare you've found the holy grail. But 10 trades is statistically meaningless. You could easily be in a lucky streak that will revert. Understanding minimum sample sizes prevents you from over-committing to strategies that may not actually have an edge.

10 TradesMeaningless. You can flip a coin and get 7 heads out of 10. No conclusions can be drawn. Continue collecting data.
30 TradesMinimum for a preliminary read. If your expectancy is strongly positive or strongly negative, you can begin to form a hypothesis. Not yet reliable for sizing decisions.
50 TradesReasonable sample for most strategies. Your measured win rate and R:R are beginning to converge on their true values. You can start making sizing decisions based on this data.
100+ TradesStatistically robust. Your measured expectancy is likely within 10-15% of the true expectancy. You can trust this data for strategy evaluation and position sizing.
200+ TradesHigh confidence. Sub-strategy analysis (by market condition, time of day, asset type) becomes meaningful. This is where deep optimization begins.

When You DON'T Have Enough Data

If you have fewer than 30 trades with a particular strategy, you do not know if you have an edge. Period. Treat the strategy as unproven and size it conservatively (0.5% risk or less). Many traders blow up because they scale up a strategy based on 15 trades during a favorable market regime, only to discover the edge was market conditions, not their skill.

Understanding the Sharpe Ratio

The Sharpe ratio measures risk-adjusted return: how much return you are generating per unit of risk (volatility) taken. A strategy that makes 50% per year with smooth, steady gains is far better than one that makes 50% per year with wild swings that include 40% drawdowns. The Sharpe ratio captures this difference.

FormulaSharpe = (Average Return − Risk-Free Rate) / Standard Deviation of Returns. For crypto, the risk-free rate can be approximated as the stablecoin yield rate.
Below 0.5Poor risk-adjusted returns. The volatility of your equity curve is not justified by the returns. Strategy needs improvement or should be discarded.
0.5 – 1.0Acceptable. Most retail traders operate in this range. You are making money, but the ride is bumpy. Focus on reducing variance.
1.0 – 2.0Good. Consistent, meaningful risk-adjusted returns. You have a real edge being executed with reasonable discipline. Most successful independent traders live here.
Above 2.0Excellent. Institutional-grade risk-adjusted returns. Either you have a genuine, significant edge, or your sample size is too small to trust the number.

Sortino Ratio: Penalizing Downside Only

The Sharpe ratio has a flaw: it treats upside volatility and downside volatility equally. But as a trader, you do not care about upside volatility: large winning days are welcome. You only care about downside volatility: large losing days. The Sortino ratio addresses this by replacing total standard deviation with downside deviation only, giving you a more accurate picture of risk-adjusted returns for directional trading.

When Sortino Diverges from Sharpe

If your Sortino ratio is significantly higher than your Sharpe ratio, it means your returns have positive skew. Your big days are on the upside. This is the ideal profile for a trend-following or momentum strategy. If Sortino is close to or below Sharpe, your big days are on the downside. Your drawdowns are disproportionately large relative to your winning days. This needs immediate attention.

Profit Factor

Profit factor is the simplest measure of a trading system's edge: gross profit divided by gross loss. It tells you how many dollars you make for every dollar you lose. A profit factor of 2.0 means you make $2 for every $1 you lose. It is intuitive, easy to calculate, and instantly tells you whether your system is working.

Below 1.0You are losing money. Gross losses exceed gross profits. The system has no edge. Stop trading it live immediately.
1.0 – 1.5Marginal edge. You are barely profitable after fees. The system is fragile: small changes in market conditions could push it negative.
1.5 – 2.0Solid edge. You are making $1.50-$2.00 for every $1.00 you lose. Most profitable retail strategies operate in this range.
2.0 – 3.0Strong edge. Consistent and meaningful profitability. You can begin sizing up with confidence (within your risk rules).
Above 3.0Exceptional, or suspicious. Either you have a genuine, significant edge or your sample size is too small. Verify with 100+ trades before scaling.

Maximum Drawdown as a Risk Metric

Maximum drawdown measures the largest peak-to-trough decline in your equity curve. It is the single most important risk metric because it tells you the worst-case experience of trading your system. A strategy with 100% annual returns but a 60% max drawdown is dangerous. Most traders will abandon it during that drawdown, locking in losses and missing the recovery.

MAR Ratio (Return/MaxDD)

Divide your annual return by your maximum drawdown. A MAR of 2.0 means you make twice your worst drawdown per year. Above 1.0 is acceptable. Above 2.0 is excellent.

Recovery Time

How long does it take to recover from your maximum drawdown? If your worst drawdown takes 6 months to recover, can you psychologically and financially survive 6 months of pain?

Drawdown Frequency

How often does your system experience significant drawdowns (>10%)? Monthly? Quarterly? A system with fewer but deeper drawdowns feels different than one with frequent shallow dips.

Future MaxDD Will Be Worse

Your historical max drawdown is the best case for the worst day. In the future, you WILL experience a drawdown larger than your current max. Size your positions so that a 1.5x to 2x multiple of your historical max drawdown is survivable.

Why Backtest Results Lie

Backtesting, applying a strategy to historical data to see how it would have performed, is a critical tool for strategy development. But backtests are also one of the most dangerous tools if misunderstood. The vast majority of backtested strategies that look profitable on historical data fail when traded live. Understanding why prevents you from committing real capital to illusory edges.

OverfittingThe #1 reason backtests lie. Adding enough parameters to any strategy will make it fit historical data perfectly. But the fit is to noise, not signal. If your strategy has more than 3-4 parameters, it is almost certainly overfit.
Survivorship BiasYour backtest only includes tokens that still exist. The tokens that went to zero during the backtest period are not in your dataset. This inflates win rates by removing the worst outcomes.
Look-Ahead BiasAccidentally using information that was not available at the time of the simulated trade. Example: using a daily close price for a decision that was supposedly made at market open.
Transaction CostsMany backtests ignore or underestimate fees, slippage, and market impact. A strategy that makes 0.1% per trade before fees but costs 0.15% in fees is a losing strategy masquerading as a winner.
Regime ChangeMarkets change. A strategy optimized for the 2020-2021 bull market may be catastrophically wrong in a 2022-style bear. If your backtest period only covers one regime, the results are unreliable.
Liquidity AssumptionsBacktests assume you can execute at the prices shown. In reality, your order moves the market, especially in less liquid assets. A strategy that works on paper with $100K may fail with $1M.

The Walk-Forward Test

To mitigate overfitting, use walk-forward analysis: optimize your strategy on data from 2020-2023, then test it (without changes) on 2024 data. If it is still profitable on the out-of-sample data, the edge is more likely to be real. If it only works on the data it was optimized for, it is overfit.

When You DON'T Have Enough Data to Know If You Have an Edge

This is the hardest truth in quantitative trading: most of the time, you simply do not have enough data to know whether your system has a genuine edge or whether you have been lucky. The honest answer to “Does my strategy work?” is often “I don't know yet.” Acting on uncertainty is what trading is, but acknowledging the uncertainty is what keeps you alive.

Fewer Than 30 Trades

You are guessing. Treat the strategy as experimental. Risk 0.25-0.5% per trade maximum. You are paying tuition to gather data, not trading for profit.

30-50 Trades

Preliminary signal. If expectancy is clearly positive (above 0.3R per trade), cautiously increase sizing to 0.5-1%. If marginal (below 0.1R per trade), the edge may be noise.

50-100 Trades

Reasonable confidence. Size based on measured expectancy using half-Kelly or your fixed percentage model. Continue tracking and recalculating monthly.

Positive Expectancy But High Variance

If your average trade is positive but the standard deviation of your R-multiples is very high (>2R), you need more data before scaling. High variance means your measured average could be far from the true average.

The Honest Trader's Journal

Track your cumulative expectancy on a rolling basis. Plot it after every 10 trades. A genuine edge produces a line that trends upward, even if it is noisy. A false edge produces a line that wanders randomly.

Thrive's performance analytics automatically calculate expectancy, Sharpe ratio, Sortino ratio, profit factor, and maximum drawdown from your tracked trades. Instead of building spreadsheets, you get real-time quant metrics that update as you trade. The Workbench can backtest strategies against historical data with realistic fee assumptions, helping you validate edges before committing real capital.
Module Quiz

1.A trader has a 40% win rate with an average win of $300 and average loss of $100. What is their expectancy per trade?

2.Why is the full Kelly Criterion rarely used in practice?

3.What gain is required to recover from a 50% drawdown?

4.What does a profit factor of 1.8 mean?

5.How many trades is the minimum for a statistically robust expectancy calculation?

0/5 answered

Put this lesson to work

Free on Thrive, no account needed.