Portfolio Guide
A portfolio is one set of strategies you pick yourself, taken from any market and tested together over one account. It answers the question a single backtest cannot: not "does this strategy work?" but "what does my account do when all of my strategies trade at the same time?"
Every other part of SBP looks at one strategy or one market. The Portfolio is the one place where the subject is the account — the money all of those strategies share.
Quick reference
| Page | Purpose |
|---|---|
| Portfolio | Keep one set of strategies from any market and read them as a single account |
| Portfolio Expert | Turn that set into one MT5 Expert Advisor that trades every strategy on its own market |
What a portfolio is
- A list of strategies, not a market. A collection belongs to one market. A portfolio has no market of its own: every strategy keeps the market it was tested on, and the portfolio spans as many markets as its strategies do.
- A copy of each strategy. Adding a strategy stores its own copy together with the trades of its last backtest. Clearing a market's collection never empties the portfolio, and removing a portfolio strategy never touches the collection.
- A calculated set. The balance line and the statistics are derived from the entries: remove a strategy and the figures follow at once, with nothing to recalculate. Calculate exists for the entries that have no trades yet, and for re-running all of them after an account or data change.
- One set. The application holds exactly one portfolio and calls it Portfolio. It has no name to edit and no catalog to choose from.
- Yours to curate. Removing a strategy is the only curation action — there is no per-strategy switch, so a strategy that is in the list is in the figures and one that is out is out. Every change is undoable.
What a portfolio is for
- See the account instead of the strategies. Ten strategies that each look good on their own can still meet in one account at the worst possible moment: three of them buying the same currency, all of them drawing down together. The portfolio is where that shows.
- See where the drawdowns overlap. Several strategies losing at the same time is one deep dip on the account, even though each of their curves looked acceptable alone. The merged line is where that becomes visible.
- Keep the best of several markets in one place. The Collection ranks candidates inside one market; the portfolio is where the winners of all markets meet, so the strongest market's strategies do not have to be dropped to make room for the others.
- Hand the whole set to MetaTrader 5. The Portfolio Expert turns the portfolio into one Expert Advisor that trades every strategy on its own market from a single chart.
- Keep it, move it, compare it. The portfolio lives in this browser only, so Export → Portfolio JSON is the backup and the way to keep two sets side by side — "conservative" and "aggressive" are two files, loaded one at a time.
How a strategy gets in
| Where | What arrives |
|---|---|
| Strategy Editor — Add → Add to Portfolio | The strategy with the trades of the run the editor just made, so the figures include it at once |
| Collection — the briefcase button on a record card | The strategy alone, pending: press Calculate to run it inside the portfolio |
| Portfolio — Import → Portfolio JSON | A whole portfolio document; entries without trades arrive pending |
| Portfolio Expert — Import → Portfolio Expert | The strategies of an MT5 Portfolio Expert Advisor, always pending |
Each entry is a copy, so the four ways in are independent of each other and none of them changes the collection it came from.
What the figures answer, and what they leave out
- The Balance card draws one line over the merged time axis of every involved market. It counts closed profit only: the portfolio line is the realised part of the account, because a live portfolio also carries floating exposure.
- Aggregate trades counts one trade per close moment on the account — two strategies closing at the same instant are one event. Included trades is the sum of the strategies' own trade counts, so the difference between the two rows is visible rather than surprising.
- Profits from different markets are converted with this browser's snapshot forex rates. After the rates or the account currency change, press Calculate once to re-convert every strategy.
- The portfolio's figures are full-data only. A portfolio result has no out-of-sample window, because the entries' fit boundaries fall at different times; each card still shows its own strategy's OOS line when the OOS switch is on.
- Statistics that only make sense for one strategy's holding time — bars in trade, average position length — are deliberately not shown on a portfolio line, because they would measure the gaps between closes of different strategies.
What a portfolio is not
- Not a collection. A collection is a per-market store with filters, correlation detection and a capacity that trims the weakest entries. The portfolio has none of those: it holds what you chose, and the only way out is removal (with undo).
- Not a second backtester. It never re-runs a strategy you already calculated; it aggregates the trades each strategy produced.
- Not synced to your account. The portfolio lives in this browser, so another machine, another browser or a cleared storage starts empty. Export is the backup.
- Not several accounts. Every strategy is converted into the one account currency the app configures, with the one initial account in Settings. Two portfolios are two files, not one page with two results.
Pages
Portfolio
Purpose: Keep one set of strategies from any market and read them as one account.
Summary: The toolbar (Calculate, undo and redo, Import and Export, Clear and the live progress), the strategy cards on the left with the sort control, the OOS switch and the paginator, and on the right the Balance chart, the Backtest stats, the Portfolio summary and the Markets table.
Key actions:
- Add strategies from the Strategy Editor or from a Collection record card.
- Press Calculate to run every strategy that has no trades yet, or to re-run all of them after an account or data change.
- Remove a strategy (or clear them all) and step back with Undo when the figures change.
- Sort the cards by any criterion; the sort never changes the figures.
- Read the account's performance on one merged line, and the per-market contribution in the Markets table.
- Export the portfolio as a JSON backup, or import one back.
Portfolio Expert
Purpose: Turn the portfolio into one MT5 Expert Advisor that trades every strategy on its own market.
Summary: A dialog that shows the strategy count and the cap, one broker-symbol row per market, and the account-wide settings the export bakes, with a download for the source (.mq5) and for the compiled Expert (.ex5).
Key actions:
- Map the app's markets to the broker symbols your terminal uses.
- Download the composed source or the compiled
.ex5. - Attach the Expert to a chart of one of its markets.
- Import an Expert Advisor back to get its strategies into the portfolio as pending entries.
Related pages
- Collection — where strategies are compared inside one market before they reach the portfolio.
- Strategy Editor — where a strategy is built, tested and sent to the portfolio.
- Strategy Backtest Stats — the statistics the account's figures are computed with.
- Settings — MQL5 Export Options — the account-wide settings the Portfolio Expert bakes.
- Data Horizon — limits the data a calculation runs on.