Appearance

Personalize your experience

Mode
Accent Color
Direction
Linear Martingale

Linear Martingale

Martingale

Linear martingale: 1×, 2×, 3×, 4× — multiple TP orders per level.

At a glance

Engine value
marti_grid_linear
Size at level i
qty = base, total = base · i, orders = i
Family
Martingale — Size grows deeper into — faster recovery, more capital.
Risk band
High risk
Capital profile
Triangular — total = base × n(n+1)/2.
Best for
Choppy mean-reversion; when you want many TP exits.
Orders per level
Multiple — level i places i orders, each with its own take-profit.
Ladder cost @ 10 levels
55.0× base lot
Versus a flat ladder
5.50× the capital
Deepest rung
10.0× base (10.0× the first rung)
Entry orders resting
55 at 10 levels
Break-even bounce
2.38% from the deepest fill (flat ladder: 5.00%)

What this curve is for

The canonical martingale grid: level i commits i lots AND carries i take-profit targets. It is the only family member where exposure and exit granularity grow together, which is what makes it useful — a partial books partial profit instead of waiting for one all-or-nothing exit.

How the sizing rule works

At level i the engine opens i orders of one base lot each, and each of those orders receives its own take-profit one target step away. So the ladder is not just heavier at depth, it is more granular: level 8 can close three of its eight units on a retrace and keep the rest working. Order count therefore grows quadratically with depth while size grows linearly.

LevelPer-order sizeOrdersLevel totalCumulativeEntry priceTake-profit
L11.00×11.00×1.00×99.0099.99
L21.00×22.00×3.00×98.0098.98
L31.00×33.00×6.00×97.0097.97
L41.00×44.00×10.0×96.0096.96
L51.00×55.00×15.0×95.0095.95
L61.00×66.00×21.0×94.0094.94
L71.00×77.00×28.0×93.0093.93
L81.00×88.00×36.0×92.0092.92
L91.00×99.00×45.0×91.0091.91
L101.00×1010.0×55.0×90.0090.90
Reference configuration: 10 levels, 1% apart, 1% target, base price 100, long. Sizes are in base-lot units.

Because level i opens i separate unit orders, each carrying its own take-profit, order count grows quadratically with depth while size grows linearly. At 10 levels this ladder rests 55 entry orders. Check the venue's open-order limit before configuring depth.

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 — Linear 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
L110%99.0099.991.00%1.00×11001003001
L220%98.0098.98×22.00%2.00×22002005003
L330%97.0097.97×33.00%3.00×33003008006
L440%96.0096.96×44.00%4.00×44004001,20010
L550%95.0095.95×55.00%5.00×55005001,70015
L660%94.0094.94×66.00%6.00×66006002,30021
L770%93.0093.93×77.00%7.00×77007003,00028
L880%92.0092.92×88.00%8.00×88008003,80036
L990%91.0091.91×99.00%9.00×99009004,70045
L10100%90.0090.90×1010.00%10.0×101,0001,0005,70055
Levels 1–10 of 10
1 / 1
Ladder cost 55.0×Capital 5,700 USDTAvg entry 93.25Cycle profit 223
Loading the chart engine…

What depth costs

Cost is the triangular number of the depth, so it accelerates quietly — the step from 10 to 20 levels is far larger than the step from 5 to 10. Because the is polynomial rather than exponential, it stays fundable at moderate depth, which is why it is the most commonly deployed martingale variant.

LevelsLadder costDeepest rungEntry ordersCost vs 5 levelsCoverage
5 levels15.0×5.00×151.00×5%
10 levels55.0×10.0×553.67×10%
20 levels210×20.0×21014.0×20%
40 levels820×40.0×82054.7×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 5,500 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× base4 levels4.0%
25× base6 levels6.0%
50× base9 levels9.0%
100× base13 levels13.0%
250× base21 levels21.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 92.14 against a base of 100 and a deepest rung of 90.00 — so the average sits 79% of the way down the covered range. Getting back to flat from the bottom therefore needs a 2.38% , against 5.00% for a flat ladder of the same depth — 2.62% less work.

ExcursionLevels filledDeployedAverage entryMarkUnrealisedBounce to flat
Shallow dipL1–L314.0×97.4397.00-0.06×0.44%
Half the ladder fillsL1–L555.0×95.9195.00-0.52×0.96%
Full ladderL1–L10385×92.1490.00-8.78×2.38%
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.

Size grows with depth, so most of the position — and nearly all of the risk — ends up in the deepest rungs that last. The average entry therefore falls faster than the price does, and a modest retrace recovers a disproportionate amount. The same property is the liability: a trend that keeps going forces the largest orders at the worst prices, and the capital requirement rises faster than the coverage it buys. Capital follows the triangular number, so ten levels cost 55× base and twenty cost 210×.

Where the exposure sits

Held by the shallowest quarter
10.9% of total size
Held by the deepest quarter
49.1% of total size
Unrealised loss at full fill
1.74× base (3.2% of deployed capital)
Profit if every rung books its target
0.55× base
One shallow cycle, against reserved capital
1.8 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 55.0× base to collect 1.8 bps of it when the first rung completes.

Which market pays this curve

Choppy mean-reversion where price grinds down and back repeatedly rather than trending. The multi-order structure monetises exactly that texture: many exits during the chop, without needing a full to the average entry.

Level i holds i orders of base size, so it also carries i take-profit targets. Exposure grows 1×, 2×, 3×… Recovery is fast and the extra targets book profit on each . Capital grows with the triangular number.

The shape of the risk

Two distinct risks, and operators usually only for the first. The is the obvious one. The second is order-slot exhaustion: a 20-level ladder rests 210 entry orders and up to as many exits, which collides with venue limits long before capital does.

ℹ
Note:Multi-order: level i places i orders and carries i take-profit targets, so order count grows quadratically with depth.

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

Linear 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
Linear Martingale (this mode)55.0×10.0×2.38%551.8 bps
Fixed10.0×1.00×5.00%1010.0 bps
Capped Linear40.0×5.00×4.03%102.5 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 4 ladders across it — identical settings, identical bars, grid_mode as the only difference.

When to use it

  • Mean-reverting instruments with enough texture that partial exits actually .
  • You want profit-taking to begin on a partial rather than only at full recovery.
  • Depth is moderate (roughly 8–15 levels) and funded with real .

When to avoid it

  • The venue's open-order limit is tight — level 20 alone rests 20 orders.
  • Fees are charged per order rather than per ; the order count works against you directly.
  • The trends persistently; the triangular ramp is a poor way to fund a trend.

Tuning

  • Cap the depth before you cap anything else. Coverage bought with a triangular ramp is the most expensive coverage in the outside the exponential curves.
  • If you want the recovery profile without the order count, use `dca_linear`: same , one order per level.
  • If you want the but a hard ceiling on per-level size, use .

Running it in production

  • Monitor open-order count against the venue limit, not just margin. This is the that hits it first.
  • 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
    Order-slot exhaustion
    Deep levels want more orders than the venue will hold. Rejections arrive as gaps in the ladder, which quietly the configured into a different, shallower one. Check the pending-orders grid against the after every deep excursion.
  2. 2
    Triangular surprise
    Because the is not exponential, operators approve depth increases mentally as "a bit more". Twenty levels cost roughly four times ten levels, not twice. The capital in this article is the antidote.
  3. 3
    Trend absorption
    In a sustained trend the largest orders fill at the worst prices and no exits complete, so the position is both maximal and unrealised. This is the the exists for.

Claims worth correcting

“Multi-order means more profit.”

It means more granular profit. Total profit for a full cycle is the same target of deployed ; what changes is that partial retraces can realise part of it.

“Linear martingale is a moderate .”

It is moderate only next to exponential. Against it is roughly five times the capital at ten levels and twenty times at twenty levels.

Interaction with the rest of the configuration

  • A tight target amplifies the multi-order advantage — retraces complete more of the exits.
  • Trailing plus a triangular ramp is an expensive combination: each shift re-places a heavier ladder.
  • 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
    Why does level 5 show 5 orders instead of one order of 5 lots?
    Because the engine places i unit-sized orders so each can carry its own take-profit. Five separate exits at five separate prices is the entire of the variant; a single 5-lot order would collapse them into one.
  2. 2
    How do I estimate the worst case?
    Take the ladder cost from the capital , multiply by your , divide by leverage, then assume price sits at the deepest rung. The backtest section below will show you a real instance of it.

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.Martingale family — What every curve in this family has in common
  • 3.Capital Allocation — Sizing an account to a Linear 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

  • Martingale (default)

    Automation / Grid Modes / Martingale

    Martingale (default) explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.

  • Fibonacci Martingale

    Automation / Grid Modes / Martingale

    Fibonacci Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.

  • Geometric Martingale

    Automation / Grid Modes / Martingale

    Geometric Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.

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

  • Exponential Martingale

    Automation / Grid Modes / Martingale

    Exponential Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.

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

  • Logarithmic Martingale

    Automation / Grid Modes / Martingale

    Logarithmic Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale reference.

  • Power-Law Martingale

    Automation / Grid Modes / Martingale

    Power-Law Martingale explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Martingale 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.

Browse all knowledge base articles →