Appearance

Personalize your experience

Mode
Accent Color
Direction
Capped Martingale

Capped Martingale

Capped

Fast recovery without unbounded blow-up.

At a glance

Engine value
capped_martingale
Size at level i
size(i) = base · min(2ⁱ, cap) (cap = 8)
Family
Capped — Martingale recovery with a hard ceiling on per-level size.
Risk band
risk
Capital profile
Exponential, then flat once capped — bounded per level.
Best for
mean-reversion where surviving trends beats max recovery.
Orders per level
One entry order and one take-profit per level.
Ladder cost @ 10 levels
70.0× base lot
Versus a flat ladder
7.00× the capital
Deepest rung
8.00× base (4.00× the first rung)
Entry orders resting
10 at 10 levels
Break-even bounce
4.35% from the deepest fill (flat ladder: 5.00%)
★
Pro tip:A practical pick — one of the modes that holds up in trading rather than only on paper.

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.

LevelPer-order sizeOrdersLevel totalCumulativeEntry priceTake-profit
L12.00×12.00×2.00×99.0099.99
L24.00×14.00×6.00×98.0098.98
L38.00×18.00×14.0×97.0097.97
L48.00×18.00×22.0×96.0096.96
L58.00×18.00×30.0×95.0095.95
L68.00×18.00×38.0×94.0094.94
L78.00×18.00×46.0×93.0093.93
L88.00×18.00×54.0×92.0092.92
L98.00×18.00×62.0×91.0091.91
L108.00×18.00×70.0×90.0090.90
Reference configuration: 10 levels, 1% apart, 1% target, base price 100, long. Sizes are in base-lot units.

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 .

base lot 100 USDT · long · no stop

Ladder shape — Capped Martingale

LONG · base 100.00 (illustrative) · 10 levels stepping down · 1% apart

Base positionEntry rung (buy)Init target
Opening position & init targets200 USDT
T2
target 2 sell @ 102.00
+2 USDT
T1
target 1 sell @ 101.00
+1 USDT
L0
Market buy · 2 lots @ 100.00
200 USDT

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

Entry ladder: one row per rung, showing entry and exit price, size, order count, notional, margin, running capital and profit at exit.
LevelSize curveEntry buyUSDTExit sellUSDTFrom base%Sizebase lotsOrdersNotionalUSDTMarginUSDTCum. capitalUSDTProfit at exitUSDT
L125%99.0099.991.00%2.00×12002004002
L250%98.0098.982.00%4.00×14004008004
L3100%97.0097.973.00%8.00×18008001,6008
L4100%96.0096.964.00%8.00×18008002,4008
L5100%95.0095.955.00%8.00×18008003,2008
L6100%94.0094.946.00%8.00×18008004,0008
L7100%93.0093.937.00%8.00×18008004,8008
L8100%92.0092.928.00%8.00×18008005,6008
L9100%91.0091.919.00%8.00×18008006,4008
L10100%90.0090.9010.00%8.00×18008007,2008
Levels 1–10 of 10
1 / 1
Ladder cost 70.0×Capital 7,200 USDTAvg entry 94.08Cycle profit 73
Loading the chart engine…

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.

LevelsLadder costDeepest rungEntry ordersCost vs 5 levelsCoverage
5 levels30.0×8.00×51.00×5%
10 levels70.0×8.00×102.33×10%
20 levels150×8.00×205.00×20%
40 levels310×8.00×4010.3×40%
Ladder cost is Σ of every rung in base-lot units, excluding the opening L0 batch. At a grid size of 100 USDT, the 10-level ladder commits 7,000 USDT of notional at 1× leverage.

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 budgetLevels affordableAdverse move covered
10× base2 levels2.0%
25× base4 levels4.0%
50× base7 levels7.0%
100× base13 levels13.0%
250× base32 levels32.0%
How far price can move against the grid before it runs out of rungs, per capital budget, at 1% spacing. This is the question a funding decision actually turns on.

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.

ExcursionLevels filledDeployedAverage entryMarkUnrealisedBounce to flat
Shallow dipL1–L314.0×97.5797.00-0.08×0.59%
Half the ladder fillsL1–L530.0×96.4795.00-0.45×1.54%
Full ladderL1–L1070.0×93.9190.00-2.87×4.35%
Reference configuration: 10 levels, 1% apart, 1% target, base price 100, long. Sizes are in base-lot units. Deterministic arithmetic, not a simulation: no assumption is made about how price reached each depth.

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

Held by the shallowest quarter
20.0% of total size
Held by the deepest quarter
34.3% of total size
Unrealised loss at full fill
2.87× base (4.1% of deployed capital)
Profit if every rung books its target
0.70× base
One shallow cycle, against reserved capital
2.9 bps

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.

ℹ
Note:The cap is tunable. Raising it toward 32× or 64× progressively re-introduces exponential risk.

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.

ModeLadder costDeepest rungBreak-even bounceEntry ordersShallow cycle
Capped Martingale (this mode)70.0×8.00×4.35%102.9 bps
Fixed10.0×1.00×5.00%1010.0 bps
Capped Linear40.0×5.00×4.03%102.5 bps
Linear Martingale55.0×10.0×2.38%551.8 bps
Exponential Martingale2046×1024×1.10%100.1 bps
Reference configuration: 10 levels, 1% apart, 1% target, base price 100, long. Sizes are in base-lot units. Peers are chosen from this mode's own direction plus the flat baseline, so the comparison is meaningful rather than decorative.

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.

Size cap (cap)
Hard ceiling on the per-level multiplier. The doubling stops here, so a long adverse run cannot blow up. Default 8, range 2–64.
★
Pro tip:After changing a tunable, re-read the capital above and re-run the . A dial that looks cosmetic on a can be a change to the worst case.

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

  1. 1
    Cap inflation
    An 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.
  2. 2
    Post-cap coverage exhaustion
    Past 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

  1. 1
    What 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.
  2. 2
    Is 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 / gridModeCurve in lib/grid/gridModes.ts, from grid_modes.hpp and 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 / runBacktestSweep over 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.
!
Caution:A backtest is evidence about one , not a . Fees are charged at the rate you set; slippage, funding, , margin rejection and are not modelled. For a growth especially, a profitable window mostly tells you the window did not contain the trend that would have tested it.

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

  • 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.

Browse all knowledge base articles →