Appearance

Personalize your experience

Mode
Accent Color
Direction
Half-Slope Linear

Half-Slope Linear

Martingale

Half-speed arithmetic martingale.

At a glance

Engine value
marti_grid_half
Size at level i
size(i) = base · (1 + 0.5·i)
Family
Martingale — Size grows deeper into — faster recovery, more capital.
Risk band
risk
Capital profile
Linear — total = base × Σ(1 + 0.5i).
Best for
Moderate mean-reversion; balanced risk / recovery.
Orders per level
One entry order and one take-profit per level.
Ladder cost @ 10 levels
37.5× base lot
Versus a flat ladder
3.75× the capital
Deepest rung
6.00× base (4.00× the first rung)
Entry orders resting
10 at 10 levels
Break-even bounce
3.78% from the deepest fill (flat ladder: 5.00%)

What this curve is for

Linear growth at half slope: 1.5×, 2×, 2.5× and so on. It exists because full is often exactly twice as expensive as an operator wants, and the slope is tunable, which makes this the simplest way to express "linear, but less".

How the sizing rule works

Size at level i is 1 + m·i with m defaulting to 0.5, so the is a straight line with an adjustable gradient. Unlike it is single-order: one entry and one take-profit per level.

LevelPer-order sizeOrdersLevel totalCumulativeEntry priceTake-profit
L11.50×11.50×1.50×99.0099.99
L22.00×12.00×3.50×98.0098.98
L32.50×12.50×6.00×97.0097.97
L43.00×13.00×9.00×96.0096.96
L53.50×13.50×12.5×95.0095.95
L64.00×14.00×16.5×94.0094.94
L74.50×14.50×21.0×93.0093.93
L85.00×15.00×26.0×92.0092.92
L95.50×15.50×31.5×91.0091.91
L106.00×16.00×37.5×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 — Half-Slope Linear

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%1.50×11501503501.5
L233%98.0098.982.00%2.00×12002005502
L342%97.0097.973.00%2.50×12502508002.5
L450%96.0096.964.00%3.00×13003001,1003
L558%95.0095.955.00%3.50×13503501,4503.5
L667%94.0094.946.00%4.00×14004001,8504
L775%93.0093.937.00%4.50×14504502,3004.5
L883%92.0092.928.00%5.00×15005002,8005
L992%91.0091.919.00%5.50×15505503,3505.5
L10100%90.0090.9010.00%6.00×16006003,9506
Levels 1–10 of 10
1 / 1
Ladder cost 37.5×Capital 3,950 USDTAvg entry 93.73Cycle profit 40.5
Loading the chart engine…

What depth costs

Linear with a gentler gradient — roughly half the ladder cost of full at the same depth, and exactly predictable because there is no curvature to model.

LevelsLadder costDeepest rungEntry ordersCost vs 5 levelsCoverage
5 levels12.5×3.50×51.00×5%
10 levels37.5×6.00×103.00×10%
20 levels125×11.0×2010.0×20%
40 levels450×21.0×4036.0×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 3,750 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× base7 levels7.0%
50× base11 levels11.0%
100× base17 levels17.0%
250× base29 levels29.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.40 against a base of 100 and a deepest rung of 90.00 — so the average sits 66% of the way down the covered range. Getting back to flat from the bottom therefore needs a 3.78% , against 5.00% for a flat ladder of the same depth — 1.22% less work.

ExcursionLevels filledDeployedAverage entryMarkUnrealisedBounce to flat
Shallow dipL1–L36.00×97.8397.00-0.05×0.86%
Half the ladder fillsL1–L512.5×96.6095.00-0.20×1.68%
Full ladderL1–L1037.5×93.4090.00-1.34×3.78%
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.

Linear growth at half slope: 1.5×, 2×, 2.5×… Predictable and gently rising, roughly half the capital of full .

Where the exposure sits

Held by the shallowest quarter
16.0% of total size
Held by the deepest quarter
44.0% of total size
Unrealised loss at full fill
1.34× base (3.6% of deployed capital)
Profit if every rung books its target
0.38× base
One shallow cycle, against reserved capital
4.0 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 37.5× base to collect 4.0 bps of it when the first rung completes.

Which market pays this curve

Moderate mean-reversion where 's is but its capital is not.

Linear growth at half the slope: 1.5×, 2×, 2.5×… A middle ground between additive and full linear, giving moderate averaging with predictable, gently rising capital.

The shape of the risk

Linear in depth, so the tail is heavy but not convex. The absence of multi-order behaviour also means fewer moving parts than , and no order-slot pressure.

ℹ
Note:The slope is tunable, so m = 0.25 gives an even gentler ramp.

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

Half-Slope Linear · 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
Half-Slope Linear (this mode)37.5×6.00×3.78%104.0 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

  • Moderate mean-reversion where you want linear behaviour at a lower cost.
  • You want a single-order ladder — no multi-order or order-slot pressure.
  • You need the capital number to be trivially predictable while still growing.

When to avoid it

  • You need the partial-exit granularity of .
  • You want faster-than-linear recovery.

Tuning

  • The slope m is the dial: m = 0.25 gives a very gentle ramp, m = 1 reproduces without its multi-order structure.
  • Because cost is linear in m, halving the slope halves the ladder cost exactly — the easiest capital trade in the .

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.

Slope (m)
Per-level slope in size = base · (1 + m·i). 0.5 gives 1.5×, 2×, 2.5×… Default 0.5, range 0.1–2.
★
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

  • 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
    Slope creep
    Raising m toward 1 doubles the ladder cost without changing the name. Record m in the .
  2. 2
    Trend absorption
    Linear growth in a trend still puts the largest orders at the worst prices. The stop remains the only bound.

Claims worth correcting

“Half-slope is the same as with a smaller .”

Not quite: shrinking scales the whole ladder including level 1, while lowering the slope only flattens the growth. The shallow rungs keep their weight.

Interaction with the rest of the configuration

  • 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 is this not multi-order like linear martingale?
    Because the multi-order behaviour is a property of the `marti_grid`/`marti_grid_linear` values specifically. Half-slope places one order per level, which is usually what operators want when they are trying to reduce as well as cost.

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 Half-Slope Linear 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

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

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

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

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

  • Linear Martingale

    Automation / Grid Modes / Martingale

    Linear Martingale 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.

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

Browse all knowledge base articles →