Pyramid Trading
Master the art of scaling into winning positions with the TradeSgnl EA's advanced pyramid trading system.
Pyramid trading is a sophisticated position management strategy that allows you to automatically scale into trades as they move in your favor. The TradeSgnl EA's pyramid system groups trades by strategy (comment), manages them as unified positions, and exits them together when targets are reached.
Core Concepts
Strategy Grouping
All trades with identical comments are treated as a single strategy. The EA manages them collectively rather than individually, creating unified position management.
Level-Based Entries
Trades are organized into "levels" based on price movement. Each level can contain multiple trades with increasing position sizes as you move further from the initial entry.
Unified Exit Target
The entire strategy exits together when the combined weighted-average breakeven price plus target distance is reached, ensuring coordinated profit-taking.
Key Features:
Automatic TP Removal: When a second trade is added to a strategy, individual take-profits are removed and replaced with strategy-level targets
Weighted Breakeven: Target calculations use volume-weighted average prices, ensuring fair profit distribution
Level Progression: Each level can have different spacing, trade limits, and position sizes
Visual Management: Strategy target lines are displayed on charts for real-time monitoring
Activation & Setup
Pyramid trading can be controlled through three modes:
Mode | Description | Activation Method |
---|---|---|
Disabled | Feature completely disabled (default) | No pyramid functionality available |
Enabled | Always active using EA input settings | All strategies automatically use pyramid settings |
Signal | Controlled per-strategy via webhook signals | Include "py" parameter in signal to enable for that strategy |
Signal Mode Example: To enable pyramiding for a specific strategy when using Signal mode:
LicenseID,EURUSD,buy,risk=0.01,sl=50,tp=100,comment=TrendStrategy,py
The "py" parameter activates pyramid management for the "TrendStrategy" comment group. All subsequent trades with the same comment will be managed as a unified pyramid strategy.
Pyramid Management
The Pyramid Management section controls the overall strategy behavior - how trades are grouped, when they exit, and how profits are calculated. These settings determine the "big picture" behavior of your pyramid strategies.
Core Management Parameters
Parameter | Function | Impact |
---|---|---|
Pyramid Management | Main control (Disabled/Enabled/Signal) | Determines if and how pyramid features activate |
Volume Calculation | How targets scale with position size | Initial = easier targets, Total = harder targets with growth |
Pyramid Target | Profit target in pips for the strategy | Sets the exit distance from weighted breakeven |
Enable Pyramid Trailing | Activates dynamic target adjustment | Allows targets to move favorably with price movement |
Volume Calculation Methods
This is one of the most important settings as it determines how your Pyramid Target scales with position size:
Method | How It Works | Best For |
---|---|---|
Initial Volume | Target based only on first trade size. Adding trades makes target easier to reach. | Conservative scaling - maintains original risk/reward |
Total Volume | Target scales with combined volume. Larger pyramids need more price movement. | Proportional scaling - maintains consistent risk across all trades |
Average Volume | Target based on average volume of all trades in the strategy. | Moderate scaling - middle ground between other methods |
The Volume Calculation method determines how the EA calculates the profit target for your pyramid strategy. This is crucial because it affects how difficult it becomes to reach your target as you add more trades. The EA uses the selected method to calculate a weighted target price that all trades in the strategy will exit at simultaneously.
Trailing Management
These parameters control dynamic exit targets that move favorably with price:
Parameter | Purpose | Typical Values |
---|---|---|
Enable Pyramid Trailing | Activates dynamic target adjustment | false (static targets) / true (trailing targets) |
Trailing Distance | How far behind favorable price the target trails | 15-25 pips (adjust for instrument volatility) |
Trailing Step | Minimum price movement before target adjusts | 5-10 pips (smaller = more frequent adjustments) |
Trailing Management allows your pyramid's exit target to move dynamically with favorable price movement, protecting profits while still allowing for additional gains. When enabled, instead of a fixed target price, the EA maintains a target that "trails" behind the most favorable price by a specified distance. This means if price moves strongly in your favor, your exit target moves up with it, but if price retraces, the target stays at the best level achieved.
How it works: The EA monitors the most favorable price reached and maintains the target at [Best Price - Trailing Distance]. The target only moves favorably - it never moves against you. The Trailing Step prevents excessive updates by only moving the target when price has moved at least that distance.
Entry Control Features
Additional controls that affect how and when new pyramid entries are allowed:
Parameter | Function | Behavior |
---|---|---|
Direction Lock | Restricts all trades to same direction | Prevents mixing buy and sell trades within same strategy |
Separate Buy/Sell Pyramids | Manages buy and sell positions independently | Creates separate targets for each direction within strategy |
DCA Filter | Only allows entries at better prices than previous | BUY: new entries must be LOWER. SELL: new entries must be HIGHER |
Entry Control Features provide sophisticated filters and rules that govern when and how new trades can be added to your pyramid strategy. These features help maintain strategy coherence and implement specific trading methodologies.
Direction Lock ensures all trades in a strategy move in the same direction - once you have a BUY trade, only additional BUY trades are allowed. Separate Buy/Sell Pyramids treats BUY and SELL trades as independent strategies even with the same comment, each with their own targets. DCA Filter implements dollar-cost averaging by only allowing new entries at better prices than previous trades, ensuring each addition improves your average entry price.
Profit Overlap System
Advanced risk management using profits from closed trades to fund new entries:
Parameter | Function | Example |
---|---|---|
Overlap Threshold | Minimum trades before overlap activates | 3 = feature activates after 3rd trade in strategy |
Overlap Profit % | Percentage of closed profits to use | 50% = use half of previous profits for risk offset |
The Profit Overlap System is an advanced risk management feature that uses profits from winning trades within a strategy to offset losses from losing trades. This creates a dynamic "profit buffer" that can help sustain longer-term strategies even when some individual trades go against you.
How it works: Once your strategy reaches the Overlap Threshold number of trades, the EA monitors for profitable trades. When a profitable trade is closed, a percentage of its profit (set by Overlap Profit %) is allocated to offset losses from other trades in the same strategy. This effectively allows you to "reinvest" profits to support the overall strategy's success.
Pyramid Levels
The Pyramid Levels section controls the entry structure - when new trades are added, at what price levels, with what position sizes, and how many trades per level. These settings determine the "entry mechanics" of your pyramid strategies.
Level Structure Parameters
These settings control the basic framework of how levels are spaced and how many trades can be placed at each level:
Parameter | Function | Impact on Strategy |
---|---|---|
Level Size | Base distance in pips between levels | Determines how often new entry opportunities arise |
Level Size Multiplier | Increases level distance at higher levels | Creates wider spacing as price moves further from entry |
Trade Limit Per Level | Maximum trades allowed at each level | Controls how many positions can be opened at each price level |
Lot Size Multiplier | Increases position size at higher levels | Makes trades larger as they move further from initial entry |
Level Structure Parameters define the fundamental architecture of your pyramid - how far apart price levels are, how many trades can be placed at each level, and how these parameters evolve as you move further from your initial entry. The EA uses these settings to determine when new entry opportunities arise and how aggressive your scaling becomes.
Level Size sets the base pip distance between levels. Level Size Multiplier progressively increases this distance at higher levels (e.g., 1.5x means level distances grow: 20, 30, 45, 67.5 pips). Trade Limit Per Level caps how many positions can be opened at each price level, while Lot Size Multiplier scales position sizes larger as levels increase.
Level Calculation Logic
The EA continuously monitors price movement and calculates which "level" the current price represents relative to your strategy's initial entry. This level system determines when new trades can be added and how the pyramid structure evolves. The EA maintains a reference price for each level and updates it as new levels are reached.
Understanding the progression: Level 0 is your initial entry point. When price moves favorably (with your trade direction) by the Level Size distance, you reach Level -1, -2, etc. When price moves unfavorably (against your position), you reach Level 1, 2, 3, etc. Each time a new level is reached, the EA resets its reference point, creating dynamic entry opportunities.
Level 0: Initial entry level where the first trade was placed
Favorable Movement: When price moves WITH your trade direction by Level Size distance, level decreases (Level -1, -2, etc.)
Unfavorable Movement: When price moves AGAINST your trade direction, level increases (Level 1, 2, 3, etc.)
Level Reference Update: Each time a new level is reached, the "last level price" resets to current price
Position Sizing Control
These parameters determine how position sizes scale as you move to higher levels in your pyramid:
Parameter | Effect | Example (1.5x multiplier) |
---|---|---|
Multiply All Level Trades | Applies lot multiplier to all trades at same level | false = only first trade at level gets multiplier |
Lot Size Multiplier | Factor to increase lot sizes at each level | Level 0: 0.1, Level 1: 0.15, Level 2: 0.225 lots |
Position Sizing Control manages how your trade volumes scale across different pyramid levels. This is crucial for risk management and determines whether your pyramid becomes more aggressive or maintains consistent exposure as you add trades.
Lot Size Multiplier increases position sizes at each level (e.g., 1.5x means: Level 0 = 0.1 lots, Level 1 = 0.15 lots, Level 2 = 0.225 lots). Multiply All Level Trades determines whether this multiplier applies to all trades at a level or just the first trade - when enabled, if you have 3 trades at Level 1, all three get the 1.5x multiplier.
Progressive Limit Management
Advanced feature that allows more aggressive pyramiding by automatically increasing the number of allowed trades at specified level intervals:
Parameter | Purpose | Configuration Example |
---|---|---|
Trade Limit Increase | Amount to add to trade limit | 1 = add one more trade to the limit |
Limit Increase After | Level interval for applying increases | 3 = increase limit every 3 levels |
Progressive Limit Management automatically increases the number of trades allowed at each level as your pyramid grows larger. This creates a system where higher levels (further from initial entry) can accommodate more trades, allowing for increasingly aggressive scaling when markets move against your position.
How to configure: Set Trade Limit Increase to how many additional trades you want to allow, and Limit Increase After to the level interval. For example, with Trade Limit = 2, Increase = 1, After = 3 levels, you get: Levels 0-2 allow 2 trades each, Levels 3-5 allow 3 trades each, Levels 6-8 allow 4 trades each, and so on. This creates a progressive scaling strategy that becomes more aggressive at extreme levels.
Example Configuration:
• Trade Limit Per Level: 2
• Trade Limit Increase: 1
• Limit Increase After: 3 levels
Result: Levels 0-2 (2 trades), Levels 3-5 (3 trades), Levels 6-8 (4 trades), etc.
Practical Examples
Example 1: Basic Trend Following Pyramid
Setup: EURUSD uptrend, Level Size: 15 pips, Pyramid Target: 30 pips, Total Volume calculation
Entry | Price | Level | Lot Size | Comment |
---|---|---|---|---|
Initial | 1.2000 | 0 | 0.10 | EURUSD_Trend |
Add #1 | 1.2015 | 1 | 0.15 | EURUSD_Trend |
Add #2 | 1.2030 | 2 | 0.20 | EURUSD_Trend |
Result: Weighted breakeven ≈ 1.2019, Combined target = 1.2049 (30 pips from breakeven)
Example 2: Counter-Trend Recovery Pyramid
Setup: GBPUSD short position moving against, Level Size: 25 pips, Initial Volume calculation
Entry | Price | Level | Individual P&L | Strategy Target |
---|---|---|---|---|
Initial Short | 1.3000 | 0 | -25 pips | 1.2970 |
Add Short | 1.3025 | 1 | +5 pips | 1.2970 |
Add Short | 1.3050 | 2 | +30 pips | 1.2970 |
Result: Despite first trade being -25 pips, overall strategy profits when price reaches 1.2970 due to volume-weighted targeting.
Troubleshooting Guide
Issue | Possible Cause | Solution |
---|---|---|
Trades not grouping into pyramid | Comment strings don't match exactly | Ensure all trades have identical comments - check for spaces, capitalization, special characters |
Individual TPs disappear after 2nd trade | Normal pyramid behavior | This is expected - pyramid manages exits at strategy level. Check chart for strategy target lines |
Target seems unreachable | Total Volume calculation with large pyramid | Switch to Initial Volume or Average Volume calculation method |
New trades rejected at level | Trade limit per level reached | Increase Trade Limit Per Level or enable progressive limit increases |
Levels not progressing correctly | Level Size too large for market movement | Reduce Level Size to match typical price movements for the instrument |
Trailing exits too early | Trailing Distance too small | Increase Trailing Distance to give trades more breathing room |
No new entries when DCA Filter enabled | Price hasn't moved to better entry level | DCA Filter only allows entries at better prices than previous entries - this is normal behavior |
Pyramid not activating with signals | Missing "py" parameter or wrong control mode | Ensure Pyramid Management is set to "Signal" mode and include "py" in webhook signals |
For complete parameter references and additional configuration options, see the Configuration Guide.