How pyramiding works in TradingView strategies
A pyramiding value of 3 allows an initial trade and two additions through strategy.entry() under the usual count rule. The filled quantities increase position_size and determine the quantity-weighted position_avg_price. For example, 10 shares at 100 and 20 shares at 110 yield (1000 + 2200) / 30 = 106.6667 before display rounding. This position average is not a session VWAP indicator.
| Pyramiding setting | Total entries permitted | Order behavior when condition repeats | Typical use cases |
|---|---|---|---|
| pyramiding = 1 (default) | 1 entry max | New entry signals in same direction are ignored | Standard swing and trend-following strategies |
| pyramiding = 2 | 2 total entries | Allows one additional scale-in | Initial position + confirmation add-on |
| pyramiding = 3 to 5 | Up to 3-5 entries | Allows progressive additions as trend progresses | Multi-stage breakout or dip-buying systems |
| pyramiding = 10+ | Up to 10+ entries | Permits deep DCA ladders | Grid trading and dollar-cost averaging strategies |