Appearance
Personalize your experience
Capped Martingale
CappedFast recovery without unbounded blow-up.
At a glance
capped_martingalesize(i) = base · min(2ⁱ, cap) (cap = 8)What this curve is for
The practical answer to "I want martingale recovery but I want to survive". Size doubles like until it reaches a ceiling, then holds flat forever. You keep most of the fast-recovery benefit while converting an unbounded convex tail into a linear one — which is the difference between a you can leave running and one you cannot.
How the sizing rule works
Size at level i is min(2ⁱ, cap), with the cap defaulting to 8× base. The first few rungs double; every rung past the cap is the same size, so the ladder becomes a flat ladder at cap × base. Capital is therefore convex early and linear late.
| Level | Per-order size | Orders | Level total | Cumulative | Entry price | Take-profit |
|---|---|---|---|---|---|---|
| L1 | 2.00× | 1 | 2.00× | 2.00× | 99.00 | 99.99 |
| L2 | 4.00× | 1 | 4.00× | 6.00× | 98.00 | 98.98 |
| L3 | 8.00× | 1 | 8.00× | 14.0× | 97.00 | 97.97 |
| L4 | 8.00× | 1 | 8.00× | 22.0× | 96.00 | 96.96 |
| L5 | 8.00× | 1 | 8.00× | 30.0× | 95.00 | 95.95 |
| L6 | 8.00× | 1 | 8.00× | 38.0× | 94.00 | 94.94 |
| L7 | 8.00× | 1 | 8.00× | 46.0× | 93.00 | 93.93 |
| L8 | 8.00× | 1 | 8.00× | 54.0× | 92.00 | 92.92 |
| L9 | 8.00× | 1 | 8.00× | 62.0× | 91.00 | 91.91 |
| L10 | 8.00× | 1 | 8.00× | 70.0× | 90.00 | 90.90 |
The ladder, as the engine builds it
Below is the 's own ladder and the trading terminal's chart engine, both driven by buildLadderPlan for this . Change the level count, spread or target and the rung prices, sizes, and chart lines recompute exactly as they would in the .
Ladder shape — Capped Martingale
LONG · base 100.00 (illustrative) · 10 levels stepping down · 1% apart
Targets are stacked above the opening buy because a long grid exits higher than it enters.
Entry ladder
Limit buys below the base · L1 nearest, L10 deepest · every amount in USDT
| Level | Size curve | Entry buyUSDT | Exit sellUSDT | From base% | Sizebase lots | Orders | NotionalUSDT | MarginUSDT | Cum. capitalUSDT | Profit at exitUSDT |
|---|---|---|---|---|---|---|---|---|---|---|
| L1 | 25% | 99.00 | 99.99 | 1.00% | 2.00× | 1 | 200 | 200 | 400 | 2 |
| L2 | 50% | 98.00 | 98.98 | 2.00% | 4.00× | 1 | 400 | 400 | 800 | 4 |
| L3 | 100% | 97.00 | 97.97 | 3.00% | 8.00× | 1 | 800 | 800 | 1,600 | 8 |
| L4 | 100% | 96.00 | 96.96 | 4.00% | 8.00× | 1 | 800 | 800 | 2,400 | 8 |
| L5 | 100% | 95.00 | 95.95 | 5.00% | 8.00× | 1 | 800 | 800 | 3,200 | 8 |
| L6 | 100% | 94.00 | 94.94 | 6.00% | 8.00× | 1 | 800 | 800 | 4,000 | 8 |
| L7 | 100% | 93.00 | 93.93 | 7.00% | 8.00× | 1 | 800 | 800 | 4,800 | 8 |
| L8 | 100% | 92.00 | 92.92 | 8.00% | 8.00× | 1 | 800 | 800 | 5,600 | 8 |
| L9 | 100% | 91.00 | 91.91 | 9.00% | 8.00× | 1 | 800 | 800 | 6,400 | 8 |
| L10 | 100% | 90.00 | 90.90 | 10.00% | 8.00× | 1 | 800 | 800 | 7,200 | 8 |
What depth costs
Bounded growth: the exponential part contributes a amount and then depth costs cap × base per level. That makes deep ladders affordable and, more importantly, makes the worst case a number you can state before deploying.
| Levels | Ladder cost | Deepest rung | Entry orders | Cost vs 5 levels | Coverage |
|---|---|---|---|---|---|
| 5 levels | 30.0× | 8.00× | 5 | 1.00× | 5% |
| 10 levels | 70.0× | 8.00× | 10 | 2.33× | 10% |
| 20 levels | 150× | 8.00× | 20 | 5.00× | 20% |
| 40 levels | 310× | 8.00× | 40 | 10.3× | 40% |
Read the cost vs 5 levels column as the escalation test. A flat ladder doubles when the depth doubles; anything materially above that is a whose coverage has to be bought rather than simply configured.
| Capital budget | Levels affordable | Adverse move covered |
|---|---|---|
| 10× base | 2 levels | 2.0% |
| 25× base | 4 levels | 4.0% |
| 50× base | 7 levels | 7.0% |
| 100× base | 13 levels | 13.0% |
| 250× base | 32 levels | 32.0% |
Averaging and recovery
With every rung , the volume-weighted average entry is 93.91 against a base of 100 and a deepest rung of 90.00 — so the average sits 61% of the way down the covered range. Getting back to flat from the bottom therefore needs a 4.35% , against 5.00% for a flat ladder of the same depth — 0.65% less work.
| Excursion | Levels filled | Deployed | Average entry | Mark | Unrealised | Bounce to flat |
|---|---|---|---|---|---|---|
| Shallow dip | L1–L3 | 14.0× | 97.57 | 97.00 | -0.08× | 0.59% |
| Half the ladder fills | L1–L5 | 30.0× | 96.47 | 95.00 | -0.45× | 1.54% |
| Full ladder | L1–L10 | 70.0× | 93.91 | 90.00 | -2.87× | 4.35% |
Doubles like until the multiplier reaches the cap (default 8×), then holds flat. You keep most of the fast-recovery benefit while guaranteeing a maximum per-level size, so a long adverse run cannot compound into a blow-up.
Where the exposure sits
The last row is the metric that separates modes. Profit for a full cycle is the target of deployed capital in every , so it cannot discriminate. What differs is how much capital has to sit reserved to earn one shallow cycle: this mode 70.0× base to collect 2.9 bps of it when the first rung completes.
Which market pays this curve
mean-reversion on instruments that occasionally trend — which is to say, most instruments. The is designed for the case where the regime assumption will sometimes be wrong.
Doubles like but clamps the multiplier at a ceiling (default 8×). You keep most of the fast-recovery benefit while guaranteeing a maximum per-level size — one of the most practical, survivable martingale variants for trading.
The shape of the risk
The tail is heavy but linear past the cap. The honest risk is that the cap is a dial: raising it toward 32 or 64 progressively re-introduces the exponential behaviour the exists to prevent.
Run it over real history
This is the product's grid backtester, not a summary of one. It fetches public candles for the you pick, rebuilds the ladder on the first candle of the , then applies the engine's own fill, take-profit, and stop-loss rules bar by bar. The caveat block inside the is part of the output — read it before trusting a number.
Instrument
BTCUSD
delta-india
Capped Martingale · 10 levels @ 1% · target 1% · 100 USDT / level · 1× · long · no stop
What this does not model
- Exact intrabar ticks. Bullish/doji candles use open → low → high → close; bearish candles use open → high → low → close. Finer timeframes reduce sensitivity to this deterministic assumption.
- Queue position. Limit orders are assumed filled when touched, which flatters a maker grid in fast markets.
- Margin rejection and liquidation. Deep rungs fill here even if the account could not fund them — check the capital requirement.
- Slippage and funding. Only the fee you set above is charged; funding, borrow and slippage are absent.
Run the ladder over real history
The grid is rebuilt anchored on the first candle of the window, then the engine's own fill, exit, refill and stop-loss rules are applied bar by bar. You get the real fill sequence for this configuration on this instrument.
Measured against other modes
First the arithmetic, then the market. The below is computed from the size curves alone; the underneath replays every one of those ladders over the same real candle , with grid_mode as the only variable.
| Mode | Ladder cost | Deepest rung | Break-even bounce | Entry orders | Shallow cycle |
|---|---|---|---|---|---|
| Capped Martingale (this mode) | 70.0× | 8.00× | 4.35% | 10 | 2.9 bps |
| Fixed | 10.0× | 1.00× | 5.00% | 10 | 10.0 bps |
| Capped Linear | 40.0× | 5.00× | 4.03% | 10 | 2.5 bps |
| Linear Martingale | 55.0× | 10.0× | 2.38% | 55 | 1.8 bps |
| Exponential Martingale | 2046× | 1024× | 1.10% | 10 | 0.1 bps |
Nothing is precomputed here. Press run and the backtester fetches one candle window and replays 5 ladders across it — identical settings, identical bars, grid_mode as the only difference.
When to use it
- mean-reversion where surviving a trend matters more than maximal recovery.
- You want martingale behaviour you can actually leave running unattended.
- Any situation where you were tempted by .
When to avoid it
- You need the true exponential tail — but you almost certainly do not.
- The cap has been raised so high that the is exponential in all but name.
Tuning
- The cap is the whole . 4–8 is conservative, 16 is , 32+ is exponential with extra steps.
- Depth past the cap is cheap in relative terms: extending coverage costs cap × base per level, predictably.
- against in the below — often the gentler ceiling performs comparably at a fraction of the commitment.
This is parametric. The and the settings show only the dial(s) it actually uses, and changing one is a structural — the resting ladder is cancelled and re-placed at the new sizes.
Running it in production
- Record the cap in every ; the name without the cap is not a .
- when the deepest fill passes the cap level — from there the ladder behaves flat and coverage becomes the binding constraint.
- Watch the deepest level, not the P&L. Depth is the leading indicator; P&L is the lagging one.
- peak committed against the account, weekly. A growth that has never been deep has never been tested.
- Treat every level increase as a capital : adding levels to a growth is not a linear cost.
How it fails
- 1Cap inflationAn operator raises the cap after a of good , reasoning that the doubling never hurt. The tail returns in full and the 's central protection is gone.
- 2Post-cap coverage exhaustionPast the cap the ladder is flat, so very deep trends still exhaust the range. The stop and the level count remain necessary.
Claims worth correcting
“Capping removes martingale risk.”
It removes the . The position at full depth is still , and a trend still costs real money — bounded, but not small.
“The cap costs most of the recovery benefit.”
Most of the averaging effect comes from the first few doublings, which happen below the cap. it in the : the gap to exponential is usually much smaller than the gap in capital.
Interaction with the rest of the configuration
- Pairs well with a placed just beyond the covered range — the bounded makes the loss at the stop calculable.
- Spread sets how fast the ladder consumes depth. Widening it buys coverage for the same level count at the cost of fewer .
- Target sets what each cycle books. Below -trip fees plus slippage, a grid is a fee generator regardless of the .
- The is the only bound on the tail. Without it, the 's worst case is whatever the market does, not what you planned.
Questions this mode raises
- 1What cap should I start with?The default 8×. Then decide from measurement, not intuition: run the at 4, 8 and 16 and return on capital and together.
- 2Is this the best default martingale?For unattended production, it is the strongest candidate in the — bounded worst case, most of the recovery profile, one legible dial.
Where these numbers come from
- Sizes and capital:
levelMultiplier/gridModeCurveinlib/grid/gridModes.ts, fromgrid_modes.hppand the Python engine's lot calculator. - Rung and exit prices, , init targets and the stop line:
buildLadderPlan— the same builder the and use. - Backtest , cycles and P&L:
runBacktest/runBacktestSweepover public broker candles, applying the engine's fill, exit, and stop rules. - Price charts: the trading terminal's chart engine, with the ladder drawn through its own price-line API.
Related
- 1.Grid Modes — Overview — The full taxonomy and how to choose
- 2.Capped family — What every curve in this family has in common
- 3.Capital Allocation — Sizing an account to a Capped Martingale ladder
- 4.Stop Loss — Bounding this curve's tail
- 5.Reading the Ladder Plan — Verifying the curve before deploying
- 6.Grid Structure — Levels, init batch and base size
Related articles
Related to Capped Martingale
- Capped Linear
Automation / Grid Modes / Capped
Capped Linear explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Capped reference.
- Capped family
Automation / Grid Modes / Families
Martingale recovery with a hard ceiling. The practical answer for live trading.
- Additive Martingale
Automation / Grid Modes / Martingale
Additive Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.
- Grid Modes Overview
Automation / Grid Modes
The grid mode decides how much size each level commits as the ladder deepens. It is the single choice that most determines both recovery speed and blow-up risk.
- Half-Slope Linear
Automation / Grid Modes / Martingale
Half-Slope Linear explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.
- Ramped DCA
Automation / Grid Modes / DCA
Ramped DCA explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / DCA reference.
- Square-Root Martingale
Automation / Grid Modes / Martingale
Square-Root Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.
- Staircase Martingale
Automation / Grid Modes / Martingale
Staircase Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.
- Anti-Martingale
Automation / Grid Modes / Anti-Martingale
Anti-Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.