Documentation Index
Fetch the complete documentation index at: https://uncoded.ch/docs/llms.txt
Use this file to discover all available pages before exploring further.
The hierarchy of metrics
Not all metrics are equally important. Operator priority:Max drawdown — the single most important metric
Number of trades — your sample size
Max drawdown — the most important metric
What it means
What it means
+30%, then dropped to -5% (from peak), then recovered to +25%, max drawdown is -35% (the peak-to-trough difference of 30 - (-5) = 35).Critical: max drawdown is what you’d have felt if you’d held through. It’s the worst point of the journey, not the endpoint.What's acceptable
What's acceptable
< -15%: comfortable. Most operators hold through this without action.-15% to -25%: normal. Expected range for most modes during regime mismatches. Hold if you’ve validated the regime fit; consider kill switch otherwise.-25% to -40%: stress. Many operators panic-close at these levels, locking in losses just before recovery.> -40%: critical. Strategies that produce these on a regular basis are not appropriate for most operators.
1.5x to 2x the backtest max drawdown. If backtest shows -20%, plan for live to potentially see -30% to -40%.What backtest drawdowns DON'T capture
What backtest drawdowns DON'T capture
- Operator panic-closes that lock in pre-recovery losses.
- Slippage during fast moves.
- Latency-induced misses on trailing-stop-driven exits.
- Real-world black swans not in the historical sample.
Number of trades — your sample size
What's enough
What's enough
< 20trades: not enough. The result could be coincidence. Lengthen the window or pick a higher-frequency mode.20–50trades: weak evidence. Useful direction-of-travel signal but don’t bet substantial capital on this alone.50–200trades: moderate evidence. Most operator decisions can be made on this sample size.200+trades: strong evidence.1000+trades: be suspicious. The strategy may be overtrading; check trade frequency and per-trade P&L.
Trade frequency — divide by time
Trade frequency — divide by time
100 trades / 12 months ≈ 8 trades/month. Does that match expectation?BasicMode operators on BTCUSDT typically expect 15–40 trades/month per pair. If backtest shows 8, the mode is undertrading the symbol. If it shows 200, the mode is overtrading.Compare against the mode’s typical behavior. Anomalies are flags.Total return — the headline
What's good
What's good
- Bull regime:
+50% to +150%is achievable. Strategies that capture uptrends shine. - Sideways/chop:
+15% to +40%is decent. The “boring” regime that most modes are designed for. - Bear regime: breakeven or modestly negative. Even good strategies struggle in bears.
+200% in a bull regime and -50% in a bear regime has high regime sensitivity. A strategy that produces +50% in bull and -5% in bear is more robust.Total return is misleading without max drawdown
Total return is misleading without max drawdown
+30% annual return sounds great. With -40% max drawdown, it’s miserable — most operators capitulate during the drawdown and crystallize the loss.Always read total return alongside max drawdown. The ratio matters more than either number alone.Compounding vs simple
Compounding vs simple
+10% per month compounded for 12 months = +213%. Same +10% simple over 12 months = +120%.Backtests typically show compounded returns. Live operation also compounds when you reinvest gains. Just be aware of which number you’re reading.Win rate and win/loss ratio
Win rate alone is meaningless
Win rate alone is meaningless
0.1x win/loss ratio loses money: 9 small wins offset by 1 large loss leaves you down. A 30% win rate with 5x win/loss ratio makes money: 3 wins of size 5 = 15, 7 losses of size 1 = 7, net +8.Always look at win rate × win/loss ratio together.Pre-built modes have asymmetric distributions
Pre-built modes have asymmetric distributions
70-90%) with smaller per-win sizes and occasionally larger per-loss sizes. The 7-rung sell ladder closes most positions profitably (small wins); the rare drawdown-and-stop-loss produces a larger loss.This is by design. The asymmetric distribution is the trade-off for the high win rate.Trend-following inverts the distribution
Trend-following inverts the distribution
40–55%) with larger per-win sizes (when trends ride) and smaller per-loss sizes (whipsaws cut quickly).Different shape, different psychological feel. Both can be net-positive expectancy strategies.Sharpe ratio — risk-adjusted return
What it measures
What it measures
(Total return - risk-free rate) / standard deviation of returns. Roughly: how much return per unit of return-volatility.Sharpe doesn’t directly measure drawdown — it measures return volatility (which correlates loosely with drawdown).What's good
What's good
- Sharpe
< 0: losing money on a risk-adjusted basis. - Sharpe
0–1: marginal. The volatility eats most of the return. - Sharpe
1–2: decent. Most professional trading systems target this range. - Sharpe
> 2: excellent. But often suspicious — could indicate overfitting.
Sharpe is window-sensitive
Sharpe is window-sensitive
Profit factor — magnitude check
What it means
What it means
Total winning P&L / Total losing P&L (in absolute terms).1.0 = breakeven. 1.5 = decent. 2.0 = strong. > 3.0 = excellent (and possibly overfit; check carefully). < 1.0 = losing money.Useful complement to win rate
Useful complement to win rate
80% and profit factor 1.6: many small wins, occasional larger losses. Trend-follower might have win rate 45% and profit factor 1.8: fewer wins but larger.Both can be acceptable strategies. Match to your psychology.Average trade duration — rhythm check
What it means
What it means
- BasicMode: hours to days (typical few hours to 2 days).
- LongTimeLong: days to weeks.
- Tsl2Sell: variable, depends on trends.
Anomaly: very long average duration
Anomaly: very long average duration
Anomaly: very short average duration
Anomaly: very short average duration
- The mode is too tight for the symbol’s volatility.
- The strategy is overtrading.
Equity curve shape
The equity curve (P&L over time) tells a story words don’t. Look for:✅ Smooth upward trend
✅ Smooth upward trend
⚠️ Big-then-flat
⚠️ Big-then-flat
❌ Saw-toothed (gain-then-drawback-then-gain)
❌ Saw-toothed (gain-then-drawback-then-gain)
❌ Step-function (one big jump, then nothing)
❌ Step-function (one big jump, then nothing)
Putting it together — the operator decision
For each backtest, ask:Is the sample size sufficient?
< 50 trades? Lengthen the window or pick a higher-frequency mode/symbol pairing.Is max drawdown within my stomach?
1.5–2x for live planning. If that exceeds your tolerance, the strategy is too aggressive.Does total return justify the drawdown?
+30% for -15% drawdown is a solid 2:1 ratio. +30% for -50% drawdown is a poor 0.6:1 ratio.Does the equity curve shape make sense?
Does it survive multiple windows?
Is the trade frequency normal for the mode?