Collection
The Collection page stores backtested strategies grouped by market. Use it to compare several candidates instead of relying on one final result, inspect their balance curves, and send a chosen strategy back to the Strategy Editor.
Collections
The Collections panel lists every collection by market with its stored strategy count and the data date it was last calculated through. Click a collection to load it; the right side then shows its records, and the panels below the list show the selected collection's status, the filters, the capacity, and the correlation settings.
A collection is created by the first strategy stored in it: Add → Add to Collection in the Strategy Editor, Accept in the Strategy Optimizer or Walk Forward, a Generator run writing the candidates it accepts, or an import. A market's collection then exists only while it holds a strategy: one with no strategies left is removed automatically, and naming a market without storing anything in it does not create it at all.
The Coll side panel follows the Generator market, so it can point at a market whose collection does not exist yet. It then still names that market in its collection list, reports Count: 0 strategies, disables the collection actions and says There are no strategies in this collection. with the line Run the Generator to create new strategies. — nothing is created until the first strategy is stored. Removing the collection the panel shows leaves the same market selected in that empty state instead of jumping to another collection; Undo on the strip brings the collection back. The Collection page follows the same rule: a market the panel re-selects stays selected there, with the records column reading There are no strategies in this collection yet. The panel lists the same strategies as the page, so the records filters apply to it too.
The collections and their settings live in this browser. They are written as one payload, so they share one storage budget: a collection big enough to exceed it cannot be saved at all. The Generator's Collection statistics report that as Persisted: No, and the Collection page shows a storage warning above the Collections list naming the cause. Trim or export such a collection to make it writable again.
Records
Each row shows the record's balance/equity chart and its key statistics. Records marked by the correlation detection carry a Correlated badge. Click a row to open that strategy in the Strategy Editor. The trash button removes a single strategy; the undo strip above the list restores it until it is dismissed or replaced.
The list shows ten records per page. Use the paginator next to the sort control, or the Prev / Next buttons below the list, to move between pages.
Send strategies to the portfolio
A record card has a briefcase button next to the trash: it adds a copy of that strategy to the Portfolio. The Coll side panel's compact cards carry the same button, so a strategy can be sent from the panel too. The toolbar's Add menu does the same for several strategies at once — Top 3, Top 5, Top 10, Top 15, Top 20 or All — taking them in the collection's current sort order, so "the best three by net profit" is one click. The batch is taken from the current view: while the records filters are on, All adds the strategies that pass them. One toast reports the batch ("3 added", "1 updated", "2 already in the portfolio", …).
A collection record carries no trade list of its own, so the portfolio receives its strategies pending: the Portfolio page's Calculate all runs them there.
Expert Advisors
Every record card has a mortarboard button next to the briefcase, and the Coll side panel's compact cards carry it too. It opens the same menu as the Strategy Editor's Expert button, for that one stored strategy:
- MT5 Compiled Expert composes the Expert Advisor on the SBP server and downloads the compiled
.ex5for MetaTrader 5. The first download of a strategy compiles it (a few seconds); later downloads of the same expert come from the server's cache. - MQL5 Source Code downloads the composed
.mq5source for MetaEditor (labelled pro; open to every signed-in account until licensing ships).
The strategy, its market, its stored statistics and the account-wide MQL Options settings travel with the request, and the Data Horizon trade start is baked in when it is enabled — exactly like the editor's download. Only the selected record is exported; a toast names the file, its size, the traded volume and the expert ID, which the MQL export log can look up later.
While a download runs its button is disabled and pulses; a second click is ignored. The result is page state (collection-mql5-*), not only a file: it names the item that ran, the expert ID, the file name and, for a compile, the .ex5 size and MetaEditor build.
Export
The toolbar's Export button downloads the whole selected collection as a JSON file (SBP format, re-importable) — every stored strategy, in the current sort order, regardless of the records filters or of the page you are on.
Out of sample
Besides the full-data statistics, each record can show how the strategy performed on the data it was not fit against. A strategy records the data time of the bar it was last modified against — the Strategy Editor backtest, the Generator, or an out-of-sample Optimizer run. The data after that boundary is the strategy's out-of-sample (OOS) window.
The record shows two timestamps: Last modified (when the strategy itself last changed) and Calculated through (the data date its stored statistics cover). While the OOS view is on, the OOS line reports OOS time, OOS trades, OOS profit, and OOS profit factor; the metric that matches the current sorting criterion is highlighted.
- OOS is derived when a strategy is calculated against data newer than its last modification. A strategy that was just backtested has no data after its fit boundary, so its OOS window is empty and its OOS figures are zero; Recalculate re-runs the stored strategies against the current data and grows the window when newer data exists. This is also what an Optimizer run without an OOS split shows.
- Only a record that has never been calculated here — an imported EA Studio collection or a legacy record, whose fit boundary is unknown — shows
not calculated — use Recalculateinstead of figures. Recalculate resolves it: the record's last calculation time becomes the fit boundary, so the OOS window starts where its previously calculated data ended. - The OOS switch next to the Sort control shows or hides the OOS line and the OOS marker on the record's balance chart. The Collection page and the Coll side panel have independent switches: changing one does not change the other view.
- Choosing an OOS sorting criterion turns the OOS view on for that view automatically.
- The record's balance chart marks the start of the OOS window with a vertical dashed line in the theme's primary color, labelled OOS at its bottom-left, while the OOS view is on.
The Sort control groups the criteria into Full data and Out of sample. The OOS criteria are OOS profit, OOS profit factor, OOS trades, and OOS time. Sorting by one of them highlights that metric on the OOS line, and strategies without an OOS window always sort last, whatever the direction. A new collection starts sorted by Net profit, best first.
A full-data criterion carries the same name as its Backtest stats row, so Net profit (not "Profit") is the money statistic, Net profit % is its percentage variant, Max drawdown % is the percentage drawdown, and the risk rows (Maximum daily loss, Maximum loss, Max consecutive losses) sort the safest strategy first. The full-data list covers the profit, drawdown, risk, quality (Backtest quality), and trade-distribution (Win/loss, Winning trades, Winning trades %) statistics; a criterion whose statistic is not among the five configured rows is inserted as the table's first row, highlighted.
Collection Status
The Collection Status panel summarizes the selected collection: Stored / capacity and Correlated (marked) — the latter counts every stored strategy, including the ones the records filters hide — or Not checked while the correlation detection is off. The filter count lives in the Filters card and the correlated-strategy removal in the Correlation card.
Filters
Turn on Use records filters in the Filters card to show only the strategies that pass the configured validation criteria; the criteria editor is the same component the Generator's acceptance criteria use. The filters belong to the page, not to a collection: the switch and the criteria stay in force while another collection — or none — is selected, and every selected collection is filtered by the same list. The Coll side panel lists the same passing strategies. The records list updates as soon as a criterion value, the switch, or the criteria list changes, and its paginator follows the new list; the page returns to the first page. While the filters hide strategies, the records column's count names both numbers — Count: 4 shown of 98 strategies — so a filtered view is never mistaken for a trimmed collection. The filters are a view: they never remove or hide strategies from storage, from an export, or from a recalculation. The criteria toolbar's Add criteria menu appends one criterion per metric, and the reset button beside it restores the collection's default list — Minimum net profit 0, i.e. every strategy passes — whatever the page was filtering with before.
While the filters are on, the card's footer reports the passing count against the strategies the selected collection stores — Passing filters 38 of 40 — and offers Remove failing to drop the records that fail them from that collection (records beyond the collection capacity are never removed by this action). The removal asks for confirmation and reports how many strategies it would remove.
Capacity
The Capacity panel holds the collection capacity shared by all ordinary collections.
- Collection capacity is the maximum number of strategies every stored collection keeps: 10, 20, 50, 100, 200, 300, 500, or 1000 (default 100). Strategies beyond the capacity are trimmed from every stored collection, best first by the current sorting criterion.
Reducing the capacity, or changing the correlation settings in a way that removes strategies, asks for confirmation first and names every affected collection with the number of strategies it would lose. The same capacity applies to every collection, so one confirmation covers them all.
Correlation
The Correlation card is the last panel of the left column and holds the correlation settings shared by all ordinary collections together with the selected collection's correlated-strategy removal.
- Detect balance correlation marks strategies whose balance lines move together above the correlation threshold.
- Correlation threshold sets how similar two balance lines must be before they count as duplicates (0.5 to 1; default 0.98). Changing the threshold, or switching the detection on or off, re-derives the marks of every stored collection at once: the Correlated badges, the Collection Status count and the table's Correlated cell always describe the current settings and the current sort order.
- Auto-resolve correlations is on by default: correlated strategies are removed instead of only marked. Turning it on, or changing the threshold while it is on, removes the currently correlated strategies after confirmation; later additions, updates and recalculations are resolved automatically. Switch it off to keep every strategy and only mark the correlated ones.
Remove correlated appears inside the same card while the automatic resolution is off, and the card's footer names how many strategies the collection keeps against the stored total — Passing correlation 96 of 98 — while the detection is on. It removes the correlated strategies from the selected collection only, asks for confirmation and reports how many strategies it would remove.
Toolbar
- Recalculate re-runs the stored strategies in the background against the current market data and updates their statistics (see below).
- Import reads a collection from a JSON file (SBP or EA Studio format), chosen with the file picker or dropped onto the page. A market that stores no collection yet is created at once; only a market that already has one waits for the Replace or Merge choice. An assistant that holds the file's JSON uses
ui_apply_documentwith targetcollection-recordsand{ source: <the parsed file or its text> }instead of the picker: it merges existing markets, creates missing ones and never replaces without the page's own choice. - Export writes the selected collection to a JSON file.
- Add copies the best strategies of the current view to the portfolio (see above).
- Clear deletes the whole selected collection. The undo strip can restore it until it is dismissed or replaced.
Recalculating a collection
Recalculate re-runs every stored strategy of the selected collection over the market's current data and the current account, Forex, and Data Horizon settings, then replaces the stored statistics, balance/equity lines, and update time. The work runs in the background, so you can keep working or leave the page.
- A refreshed strategy can correlate with another one; with Auto-resolve correlations on, the run removes it, exactly like a new strategy would be handled. The result message names those removals, so the collection can be smaller afterwards.
- The Collection tab shows a red play marker while a recalculation is queued or running, from any page, and the Collections panel marks the collection being recalculated with a red play marker in its row.
- The Collection page toolbar reads
Recalculating … <done>/<total>. - A run keeps the data and settings it started with: it uses the market data loaded when it began, the ordered strategy list captured when you clicked Recalculate, and the account, Forex, and Data Horizon settings from that moment. Changing the collection, the strategies, the account, or the Data Horizon while it waits or runs does not change the batch.
- The run survives leaving the Collection page. Its results are applied to the collection in one update when it finishes. A canceled or partially failed run still keeps whatever completed.