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
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: Positive | 55% win rate, avg win $200, avg loss $100. E = (0.55 × $200) − (0.45 × $100) = $110 − $45 = $65 per trade. Profitable system. |
| Example: Negative | 40% win rate, avg win $150, avg loss $200. E = (0.40 × $150) − (0.60 × $200) = $60 − $120 = −$60 per trade. Losing system. |
| Example: Breakeven | 50% 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
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.
Separate your trades by strategy
Convert all trades to R-multiples
Calculate win rate
Calculate average win and average loss in R
Compute expectancy
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 Trades | Meaningless. You can flip a coin and get 7 heads out of 10. No conclusions can be drawn. Continue collecting data. |
| 30 Trades | Minimum 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 Trades | Reasonable 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+ Trades | Statistically 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+ Trades | High 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
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.
| Formula | Sharpe = (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.5 | Poor 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.0 | Acceptable. Most retail traders operate in this range. You are making money, but the ride is bumpy. Focus on reducing variance. |
| 1.0 – 2.0 | Good. Consistent, meaningful risk-adjusted returns. You have a real edge being executed with reasonable discipline. Most successful independent traders live here. |
| Above 2.0 | Excellent. 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
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.0 | You are losing money. Gross losses exceed gross profits. The system has no edge. Stop trading it live immediately. |
| 1.0 – 1.5 | Marginal edge. You are barely profitable after fees. The system is fragile: small changes in market conditions could push it negative. |
| 1.5 – 2.0 | Solid 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.0 | Strong edge. Consistent and meaningful profitability. You can begin sizing up with confidence (within your risk rules). |
| Above 3.0 | Exceptional, 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.
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.
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?
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.
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.
| Overfitting | The #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 Bias | Your 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 Bias | Accidentally 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 Costs | Many 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 Change | Markets 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 Assumptions | Backtests 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
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.
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.
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.
Reasonable confidence. Size based on measured expectancy using half-Kelly or your fixed percentage model. Continue tracking and recalculating monthly.
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.
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.
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?
Put this lesson to work
Free on Thrive, no account needed.