# Pyramiding

Also known as: turtle units, scale-in plans.
A Risk, Sizing & Exits concept (Position sizing) in the LuxAlgo Library, with 1 indicator implementation.

## What is Pyramiding?

Pyramiding is scaling into a winning position: the trade opens with an initial unit, and further units are added only as price moves favorably and the idea keeps confirming. The name comes from the recommended size profile, largest tranche first and each add the same size or smaller, so the position resembles a pyramid rather than an inverted one. Because every add drags the average entry toward the current price, pyramiding converts open profit into fresh risk; disciplined versions therefore trail the stop for the whole position each time a new unit fills.

The practice long predates its formalization: Edwin Lefèvre's 1923 Reminiscences of a Stock Operator has Jesse Livermore, lightly fictionalized, feeling out a market with a partial line and committing in stages only as price confirmed his view. Six decades later the Turtle experiment of Richard Dennis and William Eckhardt turned the instinct into explicit, testable rules.

The Turtle rules remain the canonical template: positions sized in volatility units derived from average true range, a unit added at fixed intervals of favorable movement up to a hard cap, the aggregate stop tightened with each add. The same skeleton appears across breakout systems: add on strength, cap total units, let a trailed exit decide when the sequence ends.

The arithmetic explains the appeal and the cost. Adds concentrate size in trades already working, so failures are caught small while winners carry the full stack. In an [R-multiple framework](https://www.luxalgo.com/library/concept/r-multiple-framework/), pyramiding deliberately lowers the win rate, since ordinary pullbacks now stop out a larger, worse-priced position, in exchange for a fatter right tail when a trend keeps paying. It only stays sane when each unit's risk comes from an explicit rule such as [fixed fractional](https://www.luxalgo.com/library/concept/fixed-fractional/) sizing and the aggregate worst case is recomputed at every fill.

## How to build a pyramiding plan

Pyramiding is a management technique rather than a chart pattern, so the work is specifying the plan before the first fill.

1. Size the base unit with an explicit rule, such as [volatility-targeted sizing](https://www.luxalgo.com/library/concept/volatility-targeted-sizing/), so the first tranche already reflects current conditions.
2. Fix the add trigger before entry: favorable excursion in volatility multiples (the Turtle template), new structural breaks, or completed pullbacks. Discretionary 'looks strong' adds are how pyramids invert.
3. Cap total units: decide the number of adds and each add's size, equal or shrinking, so maximum exposure is a known quantity.
4. Pair every add with a stop update, ratcheting a [volatility stop](https://www.luxalgo.com/library/concept/volatility-stop/) or [structure stop](https://www.luxalgo.com/library/concept/structure-stop/) for the whole position each time a unit fills.
5. Define the ending: the trailing method or target ladder that closes the sequence, and the give-back you will tolerate at full size.

## How traders use it

- In trend-following entries: a starter unit at the signal, further units at predefined intervals of favorable movement (often measured in ATR multiples), with the maximum unit count fixed before entry.
- In tiered entry plans that split one setup into several fills, pairing each add with an updated [trailing stop](https://www.luxalgo.com/library/concept/trailing-method-taxonomy/) so the combined position's worst case stays inside the original risk budget.
- As a risk-shaping tool: because adds only happen when the market pays the position, pyramiding concentrates size in trades that trend and keeps size minimal in trades that fail immediately, at the cost of a worse average entry and more give-back on reversals.
- In execution mechanics: adds are commonly resting stop-entry orders at the trigger levels, often wrapped in brackets using standard [order constructs](https://www.luxalgo.com/library/concept/order-constructs/), so the plan fills without the trader acting at the moment of strength.
- Under portfolio [loss-control rules](https://www.luxalgo.com/library/concept/loss-control-rules/): daily or per-theme loss caps should apply to the pyramid's aggregate risk, not the starter unit, keeping correlated adds from quietly becoming the account's dominant exposure.

## Pyramiding vs related concepts

- **Averaging Down** (https://www.luxalgo.com/library/concept/averaging-down/): Averaging down adds to losers to improve the break-even price; pyramiding adds to winners as confirmation arrives, financed by open profit and paired with trailed stops. The two sit at opposite ends of the risk-expansion spectrum.
- **Scaling Out** (https://www.luxalgo.com/library/concept/scaling-out/): Scaling out is the exit-side mirror: reducing a winning position in tranches at successive targets. Pyramiding increases exposure as a trend develops; scaling out decreases it. Systems often combine both, building early and unwinding into strength.
- **DCA** (https://www.luxalgo.com/library/concept/dca/): Dollar-cost averaging schedules purchases by the calendar and accepts every price, including falling ones: an investing plan with no stop and no confirmation requirement. Pyramiding is conditional; adds come only on favorable movement, under a cap, with a trailed exit. The two share the arithmetic of multiple fills and little else.

## FAQ

### Why is pyramiding sized largest-first?

Because each add fills at a worse price with a smaller cushion to the trailed stop. If the final add is the largest (an inverted pyramid), an ordinary pullback can erase the whole sequence's open profit, since the biggest tranche has the least room. Front-loading size keeps the average entry closer to the original signal and shrinks the give-back when a reversal comes.

### How many times should you pyramid into a trade?

There is no universal number, but formalized systems cap it explicitly; the Turtle rules stopped at four units in a single market. What matters is that the cap, the add spacing, and the stop adjustment are fixed before entry, so total exposure is known at every step. Uncapped adding turns a trend trade into an oversized bet that the move never pauses.

### Is pyramiding the same as averaging down?

No; they are opposites in the direction of the add. Averaging down grows exposure while the idea is failing, in exchange for a better average price. Pyramiding grows exposure only while the idea works, accepting a worse average price as the cost of confirmation.

### Does pyramiding increase risk?

It converts open profit into new risk. A disciplined pyramid trails the stop with each add so the aggregate worst case stays inside the original budget, but give-back grows with every unit and the win rate tends to drop, since ordinary pullbacks more easily reach the trailed stop. The compensation is a much larger payoff when trades keep trending.

### Does pyramiding work in ranging markets?

Poorly. The technique is financed by trends: adds pay off only when favorable movement keeps extending. In a range, each add tends to fill near the top of the swing just before it reverses. Systems that pyramid are almost always trend-following.

### What does the pyramiding setting mean in strategy backtesting?

In TradingView®'s Pine Script®, 'pyramiding' is the strategy parameter capping how many same-direction entries can stack. The default of zero allows one entry and silently ignores add signals, a common source of backtest confusion. Set it to the plan's unit cap so the test exercises the add rules.

## Implementations in the Library

- Pyramiding (LuxAlgo): https://www.luxalgo.com/library/indicator/pyramiding/

## Related concepts

- Fixed Fractional: https://www.luxalgo.com/library/concept/fixed-fractional/
- Fixed Ratio: https://www.luxalgo.com/library/concept/fixed-ratio/
- Volatility-targeted Sizing: https://www.luxalgo.com/library/concept/volatility-targeted-sizing/
- Sizing Bases: https://www.luxalgo.com/library/concept/sizing-bases/
- Portfolio-aware Sizing: https://www.luxalgo.com/library/concept/portfolio-aware-sizing/
- Averaging Down: https://www.luxalgo.com/library/concept/averaging-down/
- DCA: https://www.luxalgo.com/library/concept/dca/
- Martingale / Anti-martingale: https://www.luxalgo.com/library/concept/martingale-anti-martingale/
- Kelly Criterion: https://www.luxalgo.com/library/concept/kelly-criterion/
- Optimal F: https://www.luxalgo.com/library/concept/optimal-f/

---

Source: https://www.luxalgo.com/library/concept/pyramiding/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/