Skip to main content
Skip to main content
Version: Next 🚧

How to Configure Pyramiding

Problem

You want to add to winning positions as they move in your favor, increasing exposure to profitable trades while managing risk. Simply entering with a large position is risky, but pyramiding allows you to scale in gradually as the trade proves itself.

Prerequisites

  • Basic algorithm configuration completed
  • Position sizing configured (Step 2)
  • Understanding of risk management principles

What is Pyramiding?

Pyramiding (also called "scaling in") is the practice of adding to an existing position as it moves in your favor. Instead of entering with your full position size at once, you start with a smaller position and add more as the trade becomes profitable.

Benefits:

  • Lower average entry price (for longs) or higher average entry price (for shorts)
  • Increased exposure to winning trades
  • Reduced risk on initial entry
  • Psychological advantage of adding to winners

Risks:

  • Larger total position size
  • Higher exposure if trade reverses
  • More capital at risk
  • Requires strong trend

Basic Configuration

Enable Pyramiding

{
"positionSizing": {
"method": "percentage",
"percentage": 2.0,
"pyramiding": {
"enabled": true,
"maxLevels": 3,
"sizingMethod": "equal",
"profitThreshold": 2.0
}
}
}

Parameters:

  • enabled: Turn pyramiding on/off
  • maxLevels: Maximum number of add-ons (1-10)
  • sizingMethod: How to size each add-on (equal, decreasing, increasing)
  • profitThreshold: Minimum profit % before adding

Pyramiding Levels

What are Levels?

Each level represents an add-on to your position:

  • Level 1: Initial entry
  • Level 2: First add-on
  • Level 3: Second add-on
  • Level 4: Third add-on
  • etc.

Maximum Levels

{
"pyramiding": {
"maxLevels": 3 // 1-10 allowed
}
}

Conservative: 1-2 levels

  • Initial entry + 1 add-on
  • Lower total exposure
  • Suitable for most traders

Moderate: 3-4 levels

  • Initial entry + 2-3 add-ons
  • Balanced approach
  • Good for trending markets

Aggressive: 5+ levels

  • Initial entry + 4+ add-ons
  • High total exposure
  • Only for strong trends
  • Not recommended for beginners

Sizing Methods

Method 1: Equal Sizing

Each add-on is the same size as the initial position.

{
"pyramiding": {
"sizingMethod": "equal"
}
}

Example: 3 Levels with Equal Sizing

Initial Position: 100 shares at ₹500 = ₹50,000
Profit Threshold: 2%

Level 1 (Entry): 100 shares at ₹500
Total: 100 shares, Avg: ₹500

Price reaches ₹510 (2% profit):
Level 2 (Add-on 1): 100 shares at ₹510
Total: 200 shares, Avg: ₹505

Price reaches ₹520 (4% from entry):
Level 3 (Add-on 2): 100 shares at ₹520
Total: 300 shares, Avg: ₹510

Total Investment: ₹1,53,000
Average Entry: ₹510

Profit Calculation

If price reaches ₹530:
Level 1: 100 shares × (₹530 - ₹500) = ₹3,000
Level 2: 100 shares × (₹530 - ₹510) = ₹2,000
Level 3: 100 shares × (₹530 - ₹520) = ₹1,000
Total Profit: ₹6,000 (3.92% on ₹1,53,000)

If price reverses to ₹490:
Level 1: 100 shares × (₹490 - ₹500) = -₹1,000
Level 2: 100 shares × (₹490 - ₹510) = -₹2,000
Level 3: 100 shares × (₹490 - ₹520) = -₹3,000
Total Loss: -₹6,000 (-3.92% on ₹1,53,000)

When to Use Equal Sizing

  • Strong trends: When you expect sustained movement
  • High conviction: When you're very confident in the trade
  • Liquid markets: Where you can easily enter/exit large positions
  • Longer timeframes: Daily or weekly charts

Method 2: Decreasing Sizing

Each add-on is 50% of the previous level.

{
"pyramiding": {
"sizingMethod": "decreasing"
}
}

Example: 3 Levels with Decreasing Sizing

Initial Position: 100 shares at ₹500 = ₹50,000
Profit Threshold: 2%

Level 1 (Entry): 100 shares at ₹500
Total: 100 shares, Avg: ₹500

Price reaches ₹510 (2% profit):
Level 2 (Add-on 1): 50 shares at ₹510 (50% of 100)
Total: 150 shares, Avg: ₹503.33

Price reaches ₹520 (4% from entry):
Level 3 (Add-on 2): 25 shares at ₹520 (50% of 50)
Total: 175 shares, Avg: ₹506.29

Total Investment: ₹88,600
Average Entry: ₹506.29

3-Level Pyramid Calculation

Level 1: 100% = ₹50,000
Level 2: 50% = ₹25,000
Level 3: 25% = ₹12,500
Total Exposure: ₹87,500

Profit Calculation

If price reaches ₹530:
Level 1: 100 shares × (₹530 - ₹500) = ₹3,000
Level 2: 50 shares × (₹530 - ₹510) = ₹1,000
Level 3: 25 shares × (₹530 - ₹520) = ₹250
Total Profit: ₹4,250 (4.80% on ₹88,600)

If price reverses to ₹490:
Level 1: 100 shares × (₹490 - ₹500) = -₹1,000
Level 2: 50 shares × (₹490 - ₹510) = -₹1,000
Level 3: 25 shares × (₹490 - ₹520) = -₹750
Total Loss: -₹2,750 (-3.10% on ₹88,600)

When to Use Decreasing Sizing

  • Conservative approach: Recommended for most traders
  • Uncertain trends: When trend strength is unclear
  • Risk management: Limits total exposure
  • Learning pyramiding: Good starting point

Benefits of Decreasing Sizing

  1. Lower total exposure: ₹87,500 vs ₹153,000 (equal sizing)
  2. Better risk-reward: More profit at initial levels
  3. Reduced risk: Less capital at higher prices
  4. Psychological comfort: Easier to manage

Method 3: Increasing Sizing

Each add-on is 1.5x the previous level (aggressive).

{
"pyramiding": {
"sizingMethod": "increasing"
}
}

Example: 3 Levels with Increasing Sizing

Initial Position: 100 shares at ₹500 = ₹50,000
Profit Threshold: 2%

Level 1 (Entry): 100 shares at ₹500
Total: 100 shares, Avg: ₹500

Price reaches ₹510 (2% profit):
Level 2 (Add-on 1): 150 shares at ₹510 (1.5× 100)
Total: 250 shares, Avg: ₹506

Price reaches ₹520 (4% from entry):
Level 3 (Add-on 2): 225 shares at ₹520 (1.5× 150)
Total: 475 shares, Avg: ₹513.16

Total Investment: ₹2,43,750
Average Entry: ₹513.16

Profit Calculation

If price reaches ₹530:
Level 1: 100 shares × (₹530 - ₹500) = ₹3,000
Level 2: 150 shares × (₹530 - ₹510) = ₹3,000
Level 3: 225 shares × (₹530 - ₹520) = ₹2,250
Total Profit: ₹8,250 (3.38% on ₹2,43,750)

If price reverses to ₹490:
Level 1: 100 shares × (₹490 - ₹500) = -₹1,000
Level 2: 150 shares × (₹490 - ₹510) = -₹3,000
Level 3: 225 shares × (₹490 - ₹520) = -₹6,750
Total Loss: -₹10,750 (-4.41% on ₹2,43,750)

Risk Warning

Increasing sizing is very aggressive:

  • Highest total exposure: ₹2,43,750
  • Largest position at worst prices
  • Maximum risk if trade reverses
  • Can lead to catastrophic losses

When to Use Increasing Sizing

  • Very strong trends: Only in obvious, powerful trends
  • High conviction: Extremely confident in direction
  • Professional traders: With strict risk management
  • Small initial positions: When starting very small

Not recommended for:

  • Beginners
  • Volatile markets
  • Uncertain trends
  • Large initial positions

Profit Threshold

What is Profit Threshold?

The minimum profit percentage required before adding to the position.

{
"pyramiding": {
"profitThreshold": 2.0 // Add after 2% profit
}
}

How It Works

Entry: ₹500
Threshold: 2%
Max Levels: 3

Price Movement:
₹500 → ₹505 (1% profit) → No add-on (threshold not met)
₹505 → ₹510 (2% profit) → Add-on 1 triggers
₹510 → ₹515 (3% from entry) → No add-on (waiting for 4%)
₹515 → ₹520 (4% from entry) → Add-on 2 triggers

Choosing Profit Threshold

Tight Threshold (0.5-1%)

  • Adds quickly
  • More levels triggered
  • Good for: Scalping, strong trends
  • Risk: May add before trend confirms

Moderate Threshold (1.5-3%)

  • Balanced approach (recommended)
  • Confirms trend before adding
  • Good for: Day trading, swing trading
  • Risk: May miss some add-ons

Wide Threshold (4-6%)

  • Adds slowly
  • Requires strong confirmation
  • Good for: Position trading, conservative approach
  • Risk: Fewer add-ons triggered

Threshold by Timeframe

Scalping (1-5 minute):

{ "profitThreshold": 0.5 }

Day Trading (5-30 minute):

{ "profitThreshold": 1.5 }

Swing Trading (1-4 hour):

{ "profitThreshold": 2.5 }

Position Trading (daily):

{ "profitThreshold": 5.0 }

Total Exposure Limits

Maximum Position Size

Always set a maximum position size to prevent over-concentration:

{
"positionSizing": {
"percentage": 2.0,
"pyramiding": {
"enabled": true,
"maxLevels": 3,
"sizingMethod": "equal"
}
},
"riskParameters": {
"maxPositionSize": 20.0 // Maximum 20% of account
}
}

Calculating Total Exposure

Equal Sizing (3 levels):

Initial: 2% × 3 levels = 6% total
With maxPositionSize: 20%, safe ✓

Equal Sizing (5 levels):

Initial: 2% × 5 levels = 10% total
With maxPositionSize: 20%, safe ✓

Equal Sizing (10 levels):

Initial: 2% × 10 levels = 20% total
With maxPositionSize: 20%, at limit ⚠️

Increasing Sizing (3 levels):

Level 1: 2%
Level 2: 3% (1.5×)
Level 3: 4.5% (1.5×)
Total: 9.5%
With maxPositionSize: 20%, safe ✓

Exposure by Sizing Method

For initial 2% position with 3 levels:

MethodLevel 1Level 2Level 3Total
Equal2%2%2%6%
Decreasing2%1%0.5%3.5%
Increasing2%3%4.5%9.5%

Complete Configuration Examples

Example 1: Conservative Swing Trading

{
"name": "Conservative Swing Pyramiding",
"positionSizing": {
"method": "percentage",
"percentage": 2.0,
"pyramiding": {
"enabled": true,
"maxLevels": 2,
"sizingMethod": "decreasing",
"profitThreshold": 3.0
}
},
"riskParameters": {
"maxPositionSize": 10.0,
"stopLoss": 2.0
}
}

Strategy:

  • Start with 2% position
  • Add 1% after 3% profit (decreasing)
  • Maximum 3% total exposure
  • 2% stop loss on all positions
  • Good for: Conservative traders

Example 2: Aggressive Day Trading

{
"name": "Aggressive Day Trading Pyramiding",
"positionSizing": {
"method": "percentage",
"percentage": 3.0,
"pyramiding": {
"enabled": true,
"maxLevels": 3,
"sizingMethod": "equal",
"profitThreshold": 1.5
}
},
"riskParameters": {
"maxPositionSize": 15.0,
"stopLoss": 1.5
}
}

Strategy:

  • Start with 3% position
  • Add 3% after each 1.5% profit
  • Maximum 9% total exposure
  • 1.5% stop loss on all positions
  • Good for: Experienced day traders

Example 3: Trend Following

{
"name": "Trend Following Pyramiding",
"positionSizing": {
"method": "risk_based",
"riskPercentage": 1.0,
"pyramiding": {
"enabled": true,
"maxLevels": 4,
"sizingMethod": "decreasing",
"profitThreshold": 2.0
}
},
"exitConditions": {
"trailingStop": {
"enabled": true,
"type": "atr",
"atrPeriod": 14,
"atrMultiplier": 2.5
}
},
"riskParameters": {
"maxPositionSize": 20.0
}
}

Strategy:

  • Risk-based sizing (1% risk per level)
  • 4 levels with decreasing size
  • Add every 2% profit
  • ATR trailing stop for all positions
  • Good for: Capturing large trends

Example 4: Scalping

{
"name": "Scalping Pyramiding",
"positionSizing": {
"method": "fixed_amount",
"amount": 50000,
"pyramiding": {
"enabled": true,
"maxLevels": 2,
"sizingMethod": "equal",
"profitThreshold": 0.5
}
},
"exitConditions": {
"takeProfit": {
"enabled": true,
"type": "percentage",
"percentage": 1.5
},
"stopLoss": {
"enabled": true,
"type": "percentage",
"percentage": 0.5
}
}
}

Strategy:

  • Fixed ₹50,000 per level
  • 2 levels maximum
  • Add after 0.5% profit
  • 1.5% take profit, 0.5% stop loss
  • Good for: Quick scalps

Pyramiding with Stop Loss Management

Moving Stop Loss

As you add to positions, consider moving your stop loss:

{
"pyramiding": {
"enabled": true,
"maxLevels": 3,
"profitThreshold": 2.0,
"moveStopOnAdd": true,
"stopMoveMethod": "breakeven"
}
}

Stop Move Methods

1. Breakeven Move stop to entry price after first add-on:

Entry: ₹500, Stop: ₹490
Add-on at ₹510
New Stop: ₹500 (breakeven)

2. Trailing Move stop to trail below each add-on:

Entry: ₹500, Stop: ₹490
Add-on at ₹510
New Stop: ₹500 (2% below ₹510)

3. Fixed Keep original stop for all positions:

Entry: ₹500, Stop: ₹490
Add-on at ₹510
Stop: ₹490 (unchanged)

Scaling In Examples

Example 1: Successful Pyramid

Account: ₹10,00,000
Position Size: 2% = ₹20,000
Stock: ₹500
Levels: 3 (decreasing)
Threshold: 2%

Level 1: ₹500
Shares: 40 (₹20,000 / ₹500)
Stop: ₹490

Price → ₹510 (2% profit)
Level 2: ₹510
Shares: 20 (50% of 40)
Total: 60 shares, Avg: ₹503.33
Stop: ₹500 (moved to breakeven)

Price → ₹520 (4% from entry)
Level 3: ₹520
Shares: 10 (50% of 20)
Total: 70 shares, Avg: ₹506.43
Stop: ₹510 (trailing)

Price → ₹540 (exit)
Profit:
Level 1: 40 × (₹540 - ₹500) = ₹1,600
Level 2: 20 × (₹540 - ₹510) = ₹600
Level 3: 10 × (₹540 - ₹520) = ₹200
Total: ₹2,400 (6.77% on ₹35,450)

Example 2: Failed Pyramid

Same setup as Example 1

Level 1: ₹500 (40 shares)
Level 2: ₹510 (20 shares)
Level 3: ₹520 (10 shares)
Total: 70 shares, Avg: ₹506.43

Price reverses to ₹505
Stop triggered at ₹510

Profit/Loss:
Level 1: 40 × (₹510 - ₹500) = ₹400
Level 2: 20 × (₹510 - ₹510) = ₹0
Level 3: 10 × (₹510 - ₹520) = -₹100
Total: ₹300 (0.85% on ₹35,450)

Result: Small profit despite reversal
(Stop management protected capital)

Verification

After configuring pyramiding, verify:

  1. Total exposure is acceptable

    Initial % × Max Levels × Sizing Factor ≤ Max Position Size
  2. Profit threshold is realistic

    • Should be hit frequently in trending markets
    • Not too tight (avoids false signals)
    • Not too wide (misses opportunities)
  3. Sizing method matches risk tolerance

    • Decreasing: Conservative
    • Equal: Moderate
    • Increasing: Aggressive
  4. Stop loss strategy is defined

    • How stops move with add-ons
    • Protection for all levels
    • Clear exit plan
  5. Max levels is appropriate

    • 1-2: Conservative
    • 3-4: Moderate
    • 5+: Aggressive

Troubleshooting

Add-Ons Never Trigger

Problem: Profit threshold is never reached.

Solution:

  • Reduce profit threshold
  • Check if strategy generates profitable trades
  • Verify trend strength
{
"pyramiding": {
"profitThreshold": 1.0 // Reduced from 3.0
}
}

Too Many Add-Ons

Problem: Excessive position size from too many levels.

Solution:

  • Reduce maxLevels
  • Use decreasing sizing method
  • Lower initial position size
{
"pyramiding": {
"maxLevels": 2, // Reduced from 5
"sizingMethod": "decreasing"
}
}

Exceeding Position Size Limit

Problem: Total exposure exceeds maxPositionSize.

Solution:

  • Reduce initial position size
  • Reduce maxLevels
  • Use decreasing sizing
{
"positionSizing": {
"percentage": 1.5 // Reduced from 3.0
},
"pyramiding": {
"maxLevels": 3,
"sizingMethod": "decreasing"
}
}

Large Losses on Reversals

Problem: Giving back too much profit when price reverses.

Solution:

  • Move stop to breakeven after first add-on
  • Use trailing stops
  • Reduce number of levels
  • Use decreasing sizing
{
"pyramiding": {
"moveStopOnAdd": true,
"stopMoveMethod": "trailing"
}
}

Lot Size Issues (Futures/Options)

Problem: Add-ons don't respect lot sizes.

Solution:

  • Ensure each level is a multiple of lot size
  • For NIFTY (lot size 50):
{
"positionSizing": {
"method": "fixed_quantity",
"quantity": 50, // 1 lot
"pyramiding": {
"enabled": true,
"maxLevels": 3,
"sizingMethod": "equal" // Each add-on is 50 shares
}
}
}

Best Practices

  1. Start conservative

    • Use decreasing sizing
    • 2-3 levels maximum
    • Test in paper trading first
  2. Match to market conditions

    • Strong trends: More levels, equal sizing
    • Weak trends: Fewer levels, decreasing sizing
    • Ranging markets: Disable pyramiding
  3. Manage stops actively

    • Move to breakeven after first add-on
    • Use trailing stops for protection
    • Have clear exit plan
  4. Monitor total exposure

    • Track cumulative position size
    • Respect maxPositionSize limits
    • Don't over-concentrate
  5. Use with trending strategies

    • Pyramiding works best in trends
    • Not suitable for mean reversion
    • Combine with trend indicators
  6. Set realistic thresholds

    • Based on average move size
    • Should trigger regularly in trends
    • Not too tight (false signals)
  7. Consider transaction costs

    • Multiple entries = multiple commissions
    • Ensure profit covers costs
    • May not suit small accounts
  8. Review and optimize

    • Track pyramid success rate
    • Analyze average vs single entry
    • Adjust based on performance