What makes an EA a portfolio EA
A portfolio EA has a book-level view. It knows the total risk that is open, the correlation between positions, the contribution of each strategy and the distance to the daily loss limit. It can reduce or block a new trade because the book is already full, even if the individual setup is valid.
That book-level view is the difference between a multi-symbol script and a portfolio system. The script asks, "Is this symbol a buy?" The portfolio asks, "Do I have room for this risk, and does it diversify what I already hold?"
Risk budgeting
Risk budgeting starts with a hierarchy. At the top is the account's maximum acceptable drawdown. Below that is the portfolio heat cap, then the per-strategy or per-symbol allocation, then the per-trade risk. Each level constrains the one below it.
| Level | Question | Example control |
|---|---|---|
| Account | How much drawdown can the account survive? | Hard equity stop, daily loss lock. |
| Portfolio | How much total heat is allowed? | Maximum open risk across all positions. |
| Strategy or symbol | How much can one component contribute? | Per-symbol risk cap, per-strategy allocation. |
| Trade | How much can one setup risk? | Fixed fraction or volatility-based size. |
The exact percentages are a risk decision, not a coding decision. What matters is that the EA enforces the hierarchy before every order. A per-trade risk limit that is checked only after the order is sent is not a risk limit.
Correlation and concentration
Correlation is the most common hidden risk in a multi-symbol EA. Long EURUSD, long GBPUSD and short USDCHF can all be expressions of the same dollar view. Long XAUUSD and long XAGUSD can both be precious-metal exposure. Long US100 and long US30 can both be US equity beta.
The portfolio layer should group exposure by currency, asset class or a measured correlation matrix. A simple rule is often enough: cap the number of same-direction positions in a correlated group, and reduce size when the group is already active. The cap should be visible in the inputs and logged when it blocks a trade.
Volatility targeting
Fixed lot sizing ignores volatility. A 1.0 lot position in a quiet market is not the same risk as a 1.0 lot position before a news release. Volatility targeting adjusts position size to ATR or realized volatility so that each trade contributes a similar amount of risk.
Volatility targeting is not a guarantee of better returns. It can reduce size during strong trends and increase it during calm periods. The important benefit is consistency: the portfolio's risk contribution is less dependent on which symbol happens to be volatile that week.
Strategy allocation and rebalancing
A portfolio can allocate risk equally across strategies, by volatility, by recent performance or by a fixed policy. Equal risk is the simplest starting point. Performance-based allocation is more fragile because recent performance may not persist.
If the EA rebalances, the rules should be explicit. A monthly rebalance, a volatility-based rebalance and a drawdown-triggered reduction are all valid, but they are different strategies. Test the rebalancing rule, not just the underlying signals.
Drawdown controls and kill switches
Drawdown controls should operate at multiple levels. A daily loss lock stops trading for the day. A peak-to-trough guard reduces risk or stops new entries. A hard equity stop closes the book. These are not the same control, and a portfolio EA should distinguish between them.
- Daily loss lock resets on a defined server-time boundary.
- Peak-to-trough guard tracks the account high-water mark.
- Per-symbol loss cap prevents one instrument from dominating the book.
- Portfolio heat cap limits total open risk.
- Hard equity stop is independent of the signal engine.
- All limits are logged when they trigger.
Monitoring and attribution
A portfolio EA needs attribution. If the account is down, which component caused it? If the book is flat, is that because the signals are quiet or because a risk cap is blocking everything? The EA should log the state of each component and the reason for each block.
Monitoring should include open risk, margin level, correlation groups, daily loss usage and the number of active symbols. A single equity chart is not enough to understand a portfolio.
Backtesting a portfolio EA
Test each component as a unit, then test the combined book. The combined test should use realistic spreads, commissions and slippage, and it should include the portfolio-level controls. If the backtest ignores the heat cap or the correlation cap, it is not testing the portfolio EA.
Evaluate portfolio drawdown, recovery time, exposure and correlation, not only total return. A strategy with a high return and a deep drawdown may be unsuitable once it is combined with other components. The multi-pair backtesting guide covers the metrics and the test plan.
Product examples
The Chandelier Exit EA is a trend-following portfolio design with an ATR trailing stop and a portfolio heat cap. The Candle Time Probability EA uses independent sample pools per symbol, which makes attribution and risk budgeting easier. The MTF Pullback EA shows how a multi-timeframe signal can be combined with correlation-aware exposure caps.
These are examples of the same principle: the portfolio layer is explicit, documented and testable. It is not hidden inside the signal code.
Build a portfolio, not a pile of trades
The AlgoSpecial suite documents portfolio heat, correlation caps and magic-number ownership for every EA.
Compare the suite Prop firm guideFAQ
What is a portfolio EA?
A portfolio EA manages more than one strategy, symbol or risk stream as a single book. It allocates risk across the components and monitors total exposure, correlation and drawdown rather than treating each trade in isolation.
Is a multi-pair EA automatically a portfolio EA?
No. A multi-pair EA may still size each trade independently. A portfolio EA adds allocation, total heat, correlation and drawdown controls across the whole book.
How much risk should a portfolio EA take per trade?
There is no universal number. A common starting point is a small fixed fraction per trade, with a lower total heat cap. The right value depends on the strategy, the account and the drawdown tolerance.
How do you handle correlated symbols?
Measure or group correlated exposure, cap same-direction positions and reduce size when several components express the same theme. Correlation can change, so the cap should be reviewed regularly.
Do portfolio EAs need rebalancing?
If the EA allocates risk dynamically, yes. Rebalancing can be scheduled, volatility-based or triggered by drawdown. The rules should be explicit and testable, not discretionary.
How should I backtest a portfolio EA?
Test each component as a unit, then test the combined book with realistic costs. Use out-of-sample and walk-forward tests, and evaluate portfolio drawdown, exposure and correlation, not only total return.
Trading foreign exchange, metals, indices and CFDs on margin carries a high level of risk. This article is educational and does not promise profits. Test every EA on a demo account with your broker's data and execution before using real capital.