Appearance
Personalize your experience
Power-Law Martingale
MartingalePower-law scaling — quadratic (or custom exponent) growth.
At a glance
marti_grid_powersize(i) = base · iᵖ (p = 2)What this curve is for
Polynomial growth with an explicit exponent: size is base × iᵖ. It occupies the gap between linear (p = 1) and the geometric curves, and unlike them it never becomes exponential no matter how deep the ladder goes. For operators fitting a to backtested behaviour, p is the most surgical control in the .
How the sizing rule works
Size at level i is i raised to p. With p = 2 the is quadratic — level 10 is 100× base. p is continuous, so p = 1.3 is a legitimate and much gentler choice than the default, and p below 1 produces a decelerating growth curve.
| Level | Per-order size | Orders | Level total | Cumulative | Entry price | Take-profit |
|---|---|---|---|---|---|---|
| L1 | 1.00× | 1 | 1.00× | 1.00× | 99.00 | 99.99 |
| L2 | 4.00× | 1 | 4.00× | 5.00× | 98.00 | 98.98 |
| L3 | 9.00× | 1 | 9.00× | 14.0× | 97.00 | 97.97 |
| L4 | 16.0× | 1 | 16.0× | 30.0× | 96.00 | 96.96 |
| L5 | 25.0× | 1 | 25.0× | 55.0× | 95.00 | 95.95 |
| L6 | 36.0× | 1 | 36.0× | 91.0× | 94.00 | 94.94 |
| L7 | 49.0× | 1 | 49.0× | 140× | 93.00 | 93.93 |
| L8 | 64.0× | 1 | 64.0× | 204× | 92.00 | 92.92 |
| L9 | 81.0× | 1 | 81.0× | 285× | 91.00 | 91.91 |
| L10 | 100× | 1 | 100× | 385× | 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 — Power-Law 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 | 1% | 99.00 | 99.99 | 1.00% | 1.00× | 1 | 100 | 100 | 300 | 1 |
| L2 | 4% | 98.00 | 98.98 | 2.00% | 4.00× | 1 | 400 | 400 | 700 | 4 |
| L3 | 9% | 97.00 | 97.97 | 3.00% | 9.00× | 1 | 900 | 900 | 1,600 | 9 |
| L4 | 16% | 96.00 | 96.96 | 4.00% | 16.0× | 1 | 1,600 | 1,600 | 3,200 | 16 |
| L5 | 25% | 95.00 | 95.95 | 5.00% | 25.0× | 1 | 2,500 | 2,500 | 5,700 | 25 |
| L6 | 36% | 94.00 | 94.94 | 6.00% | 36.0× | 1 | 3,600 | 3,600 | 9,300 | 36 |
| L7 | 49% | 93.00 | 93.93 | 7.00% | 49.0× | 1 | 4,900 | 4,900 | 14,200 | 49 |
| L8 | 64% | 92.00 | 92.92 | 8.00% | 64.0× | 1 | 6,400 | 6,400 | 20,600 | 64 |
| L9 | 81% | 91.00 | 91.91 | 9.00% | 81.0× | 1 | 8,100 | 8,100 | 28,700 | 81 |
| L10 | 100% | 90.00 | 90.90 | 10.00% | 100× | 1 | 10,000 | 10,000 | 38,700 | 100 |
What depth costs
Polynomial: total cost grows roughly as nᵖ⁺¹/(p+1). That is far kinder than geometric growth at depth, and it is the reason power can support deeper ladders than Fibonacci or geometric at the same budget.
| Levels | Ladder cost | Deepest rung | Entry orders | Cost vs 5 levels | Coverage |
|---|---|---|---|---|---|
| 5 levels | 55.0× | 25.0× | 5 | 1.00× | 5% |
| 10 levels | 385× | 100× | 10 | 7.00× | 10% |
| 20 levels | 2870× | 400× | 20 | 52.2× | 20% |
| 40 levels | 22140× | 1600× | 40 | 403× | 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 | 3 levels | 3.0% |
| 50× base | 4 levels | 4.0% |
| 100× base | 6 levels | 6.0% |
| 250× base | 8 levels | 8.0% |
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.
| Excursion | Levels filled | Deployed | Average entry | Mark | Unrealised | Bounce to flat |
|---|---|---|---|---|---|---|
| Shallow dip | L1–L3 | 14.0× | 97.43 | 97.00 | -0.06× | 0.44% |
| Half the ladder fills | L1–L5 | 55.0× | 95.91 | 95.00 | -0.52× | 0.96% |
| Full ladder | L1–L10 | 385× | 92.14 | 90.00 | -8.78× | 2.38% |
Size follows i^p. With p = 2 it is quadratic — between linear and exponential; raising p approaches exponential aggression without ever reaching growth.
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 385× base to collect 0.3 bps of it when the first rung completes.
Which market pays this curve
Instruments whose you have actually measured. Power is the of "I want size to scale with depth to some measured " rather than "I want a named ".
Size follows i^p. With p=2 it sits between linear and exponential; higher p approaches exponential aggression. Useful for custom, backtested risk curves.
The shape of the risk
Convex but sub-exponential, so the tail is heavy without being unbounded in the sense. The main hazard is p left at the default 2 by operators who wanted "a bit more than linear" — quadratic is considerably more than a bit.
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
Power-Law 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 |
|---|---|---|---|---|---|
| Power-Law Martingale (this mode) | 385× | 100× | 2.38% | 10 | 0.3 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
- You are deliberately fitting a to measured behaviour.
- You want super-linear growth that stays polynomial at any depth.
- You need a single continuous parameter to express the whole in a review.
When to avoid it
- You are not measuring the result — this exists for people fitting a deliberately.
- You need the multiple partial exits that provides; power is single-order.
Tuning
- Default p = 2 is quadratic. If you wanted "slightly more than linear", set p to 1.2–1.4 and .
- p below 1 this into a decelerating growth — a legitimate middle ground between linear and square-root.
- Always re-read the capital after changing p; the exponent acts on every level at once.
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
- Log p with the in notes; the is meaningless without it.
- 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
- 1Default-exponent driftThe is chosen for flexibility and then left at p = 2, producing a quadratic ramp nobody explicitly .
- 2Depth × exponent interactionRaising both depth and p at once multiplies the effect. Change one at a time and re-.
Claims worth correcting
“Power is exotic.”
With p between 1 and 1.5 it is one of the most practical growth curves available: measurable, tunable and never .
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
- 1How do I choose p?Run the below at several depths, then pick the smallest p whose measured recovery advantage over linear still justifies its capital requirement. The answer is usually lower than people expect.
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.Martingale family — What every curve in this family has in common
- 3.Capital Allocation — Sizing an account to a Power-Law 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 Power-Law Martingale
- 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.
- Triangular Martingale
Automation / Grid Modes / Martingale
Triangular 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.
- 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.
- 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.
- 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.