Appearance
Personalize your experience
Half-Slope Inverse
Anti-MartingaleGentle harmonic-style decay.
At a glance
anti_marti_halfsize(i) = base / (1 + 0.5·i)What this curve is for
Half-slope inverse: size is 1/(1 + m·i) with m defaulting to 0.5. It decays more slowly than the plain , so deep levels stay relevant longer, and the slope is tunable — making it the decay counterpart to growth.
How the sizing rule works
The divisor grows linearly at rate m. Lowering m flattens the taper toward ; raising it approaches the standard and beyond.
| Level | Per-order size | Orders | Level total | Cumulative | Entry price | Take-profit |
|---|---|---|---|---|---|---|
| L1 | 0.67× | 1 | 0.67× | 0.67× | 99.00 | 99.99 |
| L2 | 0.50× | 1 | 0.50× | 1.17× | 98.00 | 98.98 |
| L3 | 0.40× | 1 | 0.40× | 1.57× | 97.00 | 97.97 |
| L4 | 0.33× | 1 | 0.33× | 1.90× | 96.00 | 96.96 |
| L5 | 0.29× | 1 | 0.29× | 2.19× | 95.00 | 95.95 |
| L6 | 0.25× | 1 | 0.25× | 2.44× | 94.00 | 94.94 |
| L7 | 0.22× | 1 | 0.22× | 2.66× | 93.00 | 93.93 |
| L8 | 0.20× | 1 | 0.20× | 2.86× | 92.00 | 92.92 |
| L9 | 0.18× | 1 | 0.18× | 3.04× | 91.00 | 91.91 |
| L10 | 0.17× | 1 | 0.17× | 3.21× | 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 — Half-Slope Inverse
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 | 100% | 99.00 | 99.99 | 1.00% | 0.667× | 1 | 66.67 | 66.67 | 267 | 0.67 |
| L2 | 75% | 98.00 | 98.98 | 2.00% | 0.500× | 1 | 50 | 50 | 317 | 0.5 |
| L3 | 60% | 97.00 | 97.97 | 3.00% | 0.400× | 1 | 40 | 40 | 357 | 0.4 |
| L4 | 50% | 96.00 | 96.96 | 4.00% | 0.333× | 1 | 33.33 | 33.33 | 390 | 0.33 |
| L5 | 43% | 95.00 | 95.95 | 5.00% | 0.286× | 1 | 28.57 | 28.57 | 419 | 0.29 |
| L6 | 38% | 94.00 | 94.94 | 6.00% | 0.250× | 1 | 25 | 25 | 444 | 0.25 |
| L7 | 33% | 93.00 | 93.93 | 7.00% | 0.222× | 1 | 22.22 | 22.22 | 466 | 0.22 |
| L8 | 30% | 92.00 | 92.92 | 8.00% | 0.200× | 1 | 20 | 20 | 486 | 0.2 |
| L9 | 27% | 91.00 | 91.91 | 9.00% | 0.182× | 1 | 18.18 | 18.18 | 504 | 0.18 |
| L10 | 25% | 90.00 | 90.90 | 10.00% | 0.167× | 1 | 16.67 | 16.67 | 521 | 0.17 |
What depth costs
Light and predictable, growing slowly with depth. Coverage is cheap, so wide ladders are the use.
| Levels | Ladder cost | Deepest rung | Entry orders | Cost vs 5 levels | Coverage |
|---|---|---|---|---|---|
| 5 levels | 2.19× | 0.29× | 5 | 1.00× | 5% |
| 10 levels | 3.21× | 0.17× | 10 | 1.47× | 10% |
| 20 levels | 4.38× | 0.09× | 20 | 2.00× | 20% |
| 40 levels | 5.65× | 0.05× | 40 | 2.59× | 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 | 200 levels | 200.0% |
| 25× base | 200 levels | 200.0% |
| 50× base | 200 levels | 200.0% |
| 100× base | 200 levels | 200.0% |
| 250× base | 200 levels | 200.0% |
Averaging and recovery
With every rung , the volume-weighted average entry is 95.76 against a base of 100 and a deepest rung of 90.00 — so the average sits 42% of the way down the covered range. Getting back to flat from the bottom therefore needs a 6.40% , against 5.00% for a flat ladder of the same depth — 1.40% more work.
| Excursion | Levels filled | Deployed | Average entry | Mark | Unrealised | Bounce to flat |
|---|---|---|---|---|---|---|
| Shallow dip | L1–L3 | 1.57× | 98.17 | 97.00 | -0.02× | 1.21% |
| Half the ladder fills | L1–L5 | 2.19× | 97.42 | 95.00 | -0.05× | 2.55% |
| Full ladder | L1–L10 | 3.21× | 95.76 | 90.00 | -0.19× | 6.40% |
A softer version of the linear-inverse taper: the denominator grows at half speed, so decay is slower and deep levels stay relevant longer.
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 3.21× base to collect 20.8 bps of it when the first rung completes.
Which market pays this curve
Mild trends where the standard taper de-risks faster than you want.
A softer version of the linear-inverse : the denominator grows at half speed, so size decays more slowly and deep levels stay more meaningful. Floored at 1 lot.
The shape of the risk
Low capital risk; declines gently. The tunable slope means the same can express two quite different policies, so record m with the .
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 Inverse · 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 |
|---|---|---|---|---|---|
| Half-Slope Inverse (this mode) | 3.21× | 0.17× | 6.40% | 10 | 20.8 bps |
| Fixed | 10.0× | 1.00× | 5.00% | 10 | 10.0 bps |
| Square-Root Decay | 4.32× | 0.30× | 5.85% | 10 | 16.4 bps |
| Exponential Decay | 1.00× | 0.00× | 8.90% | 10 | 50.0 bps |
| Linear Martingale | 55.0× | 10.0× | 2.38% | 55 | 1.8 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
- Mild trends with slower de-risking than plain .
- You want a decay where level 10 still carries real size.
When to avoid it
- Strong trends where you want exposure to collapse quickly.
- You need a bounded total regardless of depth — gives that, this does not.
Tuning
- m = 0.25 keeps almost the full ladder meaningful; m = 1 approaches the .
- Verify where the one-lot lands for your chosen m; it moves substantially with the slope.
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
- Watch how quickly executed size hits the one-lot — beyond that extra levels add coverage but almost no averaging.
- Track realised cycles per day. Decay curves earn from frequency, so a falling cycle count is the signal that the market has left the .
- Check the gap between average entry and . Decay curves keep it wide by design, so recovery expectations must be set from it, not from hope.
How it fails
- 1Slope ambiguityTwo deployments of the same with different m are different strategies. The mode name alone is not a .
Claims worth correcting
“Slower decay means more risk.”
It means more . Whether that is risk depends on the regime — in a range it is exactly what you want.
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
- 1Is this closer to fixed or to anti-martingale?At the default slope, in between. At m = 0.25 it is much closer to ; at m = 1 it is the .
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.Anti-Martingale family — What every curve in this family has in common
- 3.Capital Allocation — Sizing an account to a Half-Slope Inverse 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 Half-Slope Inverse
- 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.
- Exponential Decay
Automation / Grid Modes / Anti-Martingale
Exponential Decay explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Geometric Decay
Automation / Grid Modes / Anti-Martingale
Geometric Decay explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Inverse Fibonacci
Automation / Grid Modes / Anti-Martingale
Inverse Fibonacci explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Linear Subtractive
Automation / Grid Modes / Anti-Martingale
Linear Subtractive explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Logarithmic Decay
Automation / Grid Modes / Anti-Martingale
Logarithmic Decay explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Square-Root Decay
Automation / Grid Modes / Anti-Martingale
Square-Root Decay explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Anti-Martingale reference.
- Anti-Martingale family
Automation / Grid Modes / Families
Size shrinks as the ladder deepens. Capital protection first, recovery second.
- Harmonic
Automation / Grid Modes / Harmonic
Harmonic explained: how it works in QuaTick, settings and worked examples. Part of the Automation / Grid Modes / Harmonic reference.