Strategy Optimizer
Strategy Optimizer turns a completed Discovery run into specific changes you can test against the same market period. A proposal is a hypothesis, not a result: validate it with a counterfactual child run before promoting it to a strategy template.
The workbench: Configuration, Runs, Results
The Optimizer has three tabs, each with its sections in a sidebar on the left:
- Configuration: Strategy (the saved template that runs, chosen in the same searchable picker as Strategy Controls: type to find a strategy, a version or a template; a version is chosen through the template that holds it, and a template on another timeframe switches the chart to it; its rules in plain words, the risk per trade and the version they make), Universe and data (the symbols, the timeframe and fills, the window, and each symbol's coverage of the window before you run), Tests (a screen first or the full validation, and the robustness tests the run starts when it completes, with their price) and Run (what the run is evidence for, your attempts, what will run, and the Run button with the same price beside it: priced again whenever you change the universe, the window or the tests, Run waits until the new price is in, and a price that cannot be read says so). A fresh configuration runs on the chart's own symbol (choose more symbols or a whole market yourself); a run with no metric added captures its market's default bundle, named under "What will run"; a whole market, or a run priced above about two hours, asks you to type QUEUE first (see "Starting small" below).
- Runs: Attempts (every run, filtered by version, stage, who started
it and state), Compare (One component compares options for one part
of the open run's version, which is its initial stop, entry timing, a filter, its exit
or its trailing stop, as
component-comparisons.mdexplains; Runs side by side reads two to four runs) and Jobs (what is queued or running, with Cancel; what failed, with Retry). After you press Run you land on Jobs; when the run completes it opens on Results, or, if you moved elsewhere or opened another run meanwhile, one line at the top says it finished, with a link. With no run yet, Attempts and Results each offer Set one up in Configuration, which only opens Configuration. - Results: Summary, Trades, Entry, Exits, Robustness,
Context and Diagnostics. Sections a run has nothing to show in yet
fold into one line under the list that names them and says what produces
them: while a run is queued or running, Entry, Exits, Robustness and Context
(and Trades, until the run has saved one) "Appear after the run completes"; on a completed run with no trade,
Trades, Entry and Exits "Appear once a run has trades". Click the line to
show them (it reads and runs nothing; the choice is remembered in this
browser); a link to a folded section opens it. Summary and Diagnostics never
fold, nor does anything on a failed or cancelled run. Every view opens on one line that says what you are
reading:
<strategy> v<n> · run <k> · development data · sealed period excluded · <a> of <m> attempts · editor matches v<n>. "Editor matches v<n>" means pressing Run now would run this configuration again (the server compares the saved template at the risk on the slider with the run's configuration); a version you loaded from its record reads "editor matches v<n> (as it ran)": save it to run it again. Unsaved changes, another template, another risk or a template that holds another version say "editor differs" and why. The risk on the slider starts at the template's own risk per trade (a template saved at 5% starts at 5%), so a template that holds a version runs that version. When the saved template sizes its trades another way than the slider (you moved the slider, a percent per side, sizing by grade, or a percent outside the slider's 0.1% to 5%), a line under the slider says so: the run always uses the slider's risk, and "Use <n>%" sets the slider to the template's own percent when the slider can hold it. Entry › Grades answers whether sizing this version by grade earns its keep (its grade checks; seegrade-checks.md) above the grade rules this run's evidence recommends, with their validate and promote buttons.
The address bar remembers where you are (?opt=results/robustness/fragility&opt_run=<id>,
and &opt_cmp=<id> for an open component comparison):
a reload or a shared link opens the same run on the same view, in any browser,
including one that signs in only after opening the link, and each run remembers the
view you last read it on. Opening a link only shows the run; it never starts one.
A link to a run that is not yours, or no longer exists, shows "Run not found". The tabs, the sidebars and the
Robustness questions move with the arrow keys.
Starting small
Every Optimizer run is an attempt and queues compute on the one worker every account shares, so the defaults make the small run the easy one:
- The universe starts on the strategy's own symbol: the chart's symbol, once a session (your own choice afterwards stays). A whole market is a choice in Universe and data, never the default.
- No metric is needed. With no entry or exit metric added in Strategy, the run captures its market's default bundle (the standard wide-scan bundle for US equities or for crypto), named under "What will run", at its version when the run starts. The run's manifest records it as applied by default. The metrics are never part of the configuration: the same rules with the default bundle, with a bundle you loaded, or with your own metrics are one attempt. A universe that spans both markets has no default bundle: add a metric or run on one market.
- A whole market includes symbols with no stored bars. "What will run", the price and the confirmation say how many of the market's symbols have bars ("2,471 symbols, 2,358 with stored bars (113 with none)"): the run still spends a pass on each of the others, and they add no trade.
- A whole market keeps a quarter of its symbols unseen. The price says
it ("Runs on 1,634 of the 2,179 US equity symbols: 545 are kept unseen for
question 6"): about one symbol in four, spread over every liquidity tier,
is set aside the first time your account runs that market, and the same
symbols are kept for every strategy. They are what question 6 (does it
hold on symbols it never saw) tests on. Agents can run every symbol on
purpose (
universe.all_symbols: true); question 6 then needs another market. - A large run asks first. A whole market always asks, whatever its price. A list of symbols asks when the server's estimate for the run (with the tests it launches) is above two hours, or, with no pace measured yet, above 1,000 engine passes. Run then asks you to type QUEUE before the run is queued.
The symbol search everywhere in the app offers only symbols the price store holds bars for; one with no bar in the last 7 days says "stale since <day>".
Running under: every run says what it is evidence for
Before a Discovery run starts, Configuration › Run asks what it is evidence for, under the heading Running under: <strategy> · v<n> · <r>% risk, and offers these choices:
- One of your strategies (a registered hypothesis). It defaults to the card the template's earlier runs belonged to. The version is the configuration on screen at the risk per trade on the slider: a new version number when the rules or the risk changed since the last run under that strategy, the same number when exactly this configuration at this risk already ran. Every run under a strategy is recorded on it as an attempt.
- The window and the risk are chosen before you look. The window belongs to the hypothesis: a run on a strategy runs from the strategy's data-since date (set when you register it, else the first bar of data) to your account seal, so the date range is shown read-only, and the date can change only until the strategy's first run. The risk belongs to the version: the same rules at another risk are another version, counted as another attempt.
- Register a hypothesis… registers a new strategy without leaving the Optimizer; the run then runs under it.
- Account exploration: not evidence. Counted for your account, never evidence for any strategy. A run is never attached to a strategy afterwards, and a sized promotion from an exploration run is refused (paper is allowed). It is still an attempt on every strategy of the same template or rules, one per window it reads: exploring other dates and then registering the best one as a strategy's data-since date is charged for every date you tried.
The choice is fixed when the run starts. Validation runs and the automatic re-run after a promote inherit it from the run they come from. Runs cannot be deleted: every attempt counts. Run details (on the Results header) opens Results › Diagnostics, which shows the run's manifest: the configuration hash, the universe as asked and as resolved, the window (the one that ran; when your request reached into the sealed period it ends at the seal, and Run details shows what you asked for), sizing, stage, cost model, method versions, and a digest of every price bar and every perpetual funding settlement the run read, so a re-run on changed prices or a repaired funding history says so. The digest covers development data only: no bar from the sealed period is ever read.
Results: two ledgers
A completed run's Results answer two different questions, each in its own unit: Summary what the strategy did to an account, Trades whether the signal is good. The Summary opens with the version's verdict in the server's words and the next step the strategy's page shows for that version (a retired version's says the next step is new research, an archived strategy's that it is archived; an exploration run, which answers no question, opens with its one-sentence reading), then the nine scorecard dots with their names.
Account %: what the strategy did to an account. The run's trades are placed on ONE account, marked to market on the run's own bars and recorded at every daily close:
- each trade is sized by the strategy's own risk rule (the risk % the run used, at the stop distance from the arrival price (the price the order was sized on, before slippage) against the account's equity at the previous close;
- gross exposure is capped at 100 % of equity, exactly. The account rebalances at every fill (exits before entries at the same moment) and at each held symbol's session open and close. If the open positions would be worth more than 100 % of the account's equity at that moment, all of them are scaled down by the same factor until they fit (no signal is skipped); otherwise every position runs at its full size. A scale holds until the next rebalance, so a fill never changes profit or loss the account had already made, and the same trades give the same account on 30-minute and daily bars. Between rebalances positions move with their prices: a long book stays within the cap, a losing short can drift above it until the next rebalance. Trims cost nothing extra: only the strategy's own fills are charged;
- costs are applied as filled (slippage in the prices, commission charged);
- crypto positions pay perpetual funding: every crypto symbol is a Binance USD-M perpetual, so a position pays (or receives) funding at each funding settlement it is held through (notional at the settlement's mark × the rate). A long pays a positive rate, a short receives it. Funding is booked on the settlement's day and is inside each trade's P&L and R. Equities pay none. A run whose positions the funding history cannot price yet (the history is fetched every hour) is refused with the reason, never run as if funding were free;
- days with no position count as flat days.
The chart shows that account on 100,000 of capital after costs, against buy and hold (dashed): an equal amount of each of the run's symbols, bought at its first close and left to drift, on the same calendar (exchange sessions for equities, every UTC day for crypto). Behind them, a full run draws a grey band: on each day, the 5th to 95th percentile of the accounts of the version's random-timing copies: the luck test's copies of the strategy, its own entry pattern placed at random moments of the same bars with the same exits, risk, costs and funding, each on one account like the strategy's. It is where a strategy with no timing edge and the same exposure would most likely have been; on each day 90 % of the copies were inside it. A screen run or a luck test with fewer than 20 complete copies draws no band, and the chart says why. Use the arrow keys on the focused chart to read any day. The panel under it reads, all on daily returns (the Summary shows the headline cells, and "more measures and the method" opens the rest with how the account is modelled):
| Metric | Meaning |
|---|---|
| CAGR | compound annual growth of the account, with its 95 % interval |
| Sharpe | mean ÷ standard deviation of daily returns, annualized (252 days for equities, 365 for crypto, the calendar's own count for a mixed universe), with a 90 % confidence interval |
| Sortino | like Sharpe, against downside deviation only |
| Calmar | CAGR ÷ max drawdown |
| Max drawdown | the deepest fall from a peak, in % of equity, open positions marked |
| Drawdown risk | the max drawdown of 1 simulated path in 20 over a period as long as the history, with the chance of losing more than 25 % of the account under it |
| Risk scale | the largest multiple of the strategy's own risk that keeps the chance of a drawdown deeper than 25 % at or under 10 % (1× = as tested) |
| Longest recovery | the longest time from a peak to the close that regained it |
| Time in market | the share of days with any position open |
| vs buy & hold | annualized return minus buy and hold's |
| Volatility | annualized standard deviation of daily returns |
| Newey–West t | whether the mean daily return is distinguishable from zero, with the lag set by the average holding period |
Trades open on the same day are one day of risk here, not independent bets. Every interval and the drawdown simulation resample whole days in blocks (5 to 63 days long, chosen from the data), so dependent days stay together; their seeds are fixed, never the run's, so the same trades show the same numbers in every run of the version. Which development trades are train and which are validation is fixed for your account until the seal moves: a trade is in the same part in every run, so a rule found on train trades is checked only on trades no run trained on.
Trade R (the top of Trades, above every trade): whether the signal is good: expectancy, win rate and profit factor in R (multiples of the risk taken), the cumulative R curve, the edge by symbol and by side, and the entry/exit analysis (Entry, Exits). Grades read this ledger; the scorecard's Candidate check (the account grows after costs), question 3 (over time) and the sealed exam read the account.
Both ledgers hold the same trades. Every trade is sized from its stop, so an
entry signal whose stop has no value at the signal bar (an indicator stop
still warming up, for example) is not a trade: it is skipped and counted
(skipped_entries.stop_unavailable on the run, next to
skipped_entries.wrong_side_stop for a stop on the wrong side of the entry),
never recorded as a trade of size 0. Every trade risks a share of the symbol's
account, so when one loss goes beyond that account (a gap through a tight stop),
the loss is recorded at its full R and the symbol takes no further entry
(skipped_entries.account_ruined); the random-entry twins stop the same way.
A run completes only with every trade it
produced stored; when they cannot all be stored the run fails and says how many
are missing. Re-run it.
How much evidence a run has is counted in independent trade-days, not trades: trades entered on the same day are one observation, and days that move together count for less. A turn-of-month strategy that buys 50 stocks on the same day each month for five years has about 60 independent observations, not 3,000. Question 2 of the scorecard (is there enough data?) counts those. A grade rule's interval, Kelly fraction and drawdown-limited size resample its trade-days the same way, and need at least 20 of them: a rule whose held-out trades fall on fewer than 20 days has no held-out interval, so it cannot grade B or better. The variance audit (is a metric just telling symbols apart?) resamples the run's trade-days too, all symbols of a day together.
A run's account ends the day before your account's seal (see below). Runs completed before the account ledger existed show "not recorded". Re-run them to get it.
Agents and scripts read the same numbers: get_run returns the headline panel
in its account block, get_run_analysis with kind=daily_returns returns the
panel and a downsampled chart series, and the REST route is
GET /api/v3/research/strategy-runs/{run_id}/daily-returns (max_points,
include_series). A Symbol Tester backtest (POST /api/v3/backtest) returns
the same ledger for its one symbol as account.
A trade's three times: signal, decision, fill
Every trade records, for its entry and for its exit:
- the signal bar: the bar whose close produced the order, or, for a stop or trailing stop, the bar its level was touched in;
- the decision bar: the bar as of whose close the order was decided. For a stop or trailing stop that fills inside a bar, that is the close before it;
- the fill: the bar the order executed in (
entry_time/exit_time) and where in it (open,close, orintrafor inside the bar).
With next-open fills (the default), an entry decided at Tuesday's close fills at Wednesday's open: signal and decision Tuesday, fill Wednesday. Trade tables show the fill date and mark a signal on an earlier day ("← 2 Jan"); hover a date to see all three.
Everything a trade is described by is measured as of its decision. Entry metrics read the entry's decision bar, never the fill bar, because that bar's close comes after the open the order filled at. Exit metrics read the exit's decision bar. Live signals carry entry and exit metrics prepared the same way, with the same indicators, so on the same bars they match what research measured.
The account seal and the held-out splits read the fills. A trade whose entry fills inside the sealed period is sealed, even if it was decided the bar before, and a trade's outcome counts from its exit fill. MAE and MFE cover only the bars the position held: an entry filled at a close starts on the next bar, and an exit filled at an open ends at that open.
At Peak (in Exits) is a diagnostic: each exit metric as of the trade's best bar, with the trade cut off there. The peak is only known in hindsight, so At Peak never suggests an exit rule. If it gives you an idea, write it as a new exit rule and validate it by re-simulation.
Runs recorded before trades carried these times have none. Their trades, charts, analyses, robustness tests and scorecard are not shown; each read says so and asks you to re-run the version.
A metric that reads data the strategy itself does not (a weekly close on a daily strategy, another symbol) is loaded for the metric alone. When that data cannot be loaded (or is finer than the stored prices, like a 5-minute close), the metric is empty for those trades, never another timeframe's value under its name. Live signals carry the same metrics, computed the same way; a live portfolio describes its signals with the indicator code pinned when it was armed, so a portfolio armed before this change shows an empty value for a metric whose indicator its strategy does not use, until you re-arm it.
Analyses and decisions keep their evidence
Every analysis result (entry edges, walk-forward, synergies, grade
recommendations, exit and avoid proposals, …) is stored with a version, a
revision and a digest. The chip next to each panel reads like
v9 · r2 · cached · 1a2b3c4d. Results are append-only: the recompute button
adds a new revision and never replaces the one you were looking at, so an
analysis id keeps returning exactly the result it returned when someone relied
on it.
Every decision keeps a sealed record of what it relied on: a kill, a decision
note, and a grade, exit or avoid promotion (every check the server ran before writing to the
template). On a strategy dossier's Trail, Verify evidence recomputes the
record and the analyses and trades it points at, and says whether everything is
still exactly as it was (Evidence intact), what changed (Evidence changed),
or that a check could not run right now (never shown as intact). For a
promotion it also checks that the template still carries the promotion that
cites the record (Evidence intact · template gone when the template was
deleted). A decision records the trades it actually read; a run that was not
read (still running, or failed) is recorded by its status instead. Saving a
template never removes the record of a promotion that landed on it. No run is
ever deleted: a Discovery run and a portfolio test's result are both the record
of an attempt; archive a card to declutter instead.
Agents use verify_evidence (ss evidence verify <id>); the REST route is
GET /api/v3/research/evidence/{evidence_id}/verify.
The account seal
The last months of market data are sealed for your whole account: by default the twelve months before the current month. Every number that judges a strategy ends before the seal: Discovery runs and their validation runs, portfolio tests, your agents' runs, the attempt count, the scorecard and the Symbol Tester's results alike. The sealed months are kept for each strategy version's one final test on data it has never seen.
What you may look at is your choice, and you make it once.
-
See the whole history? After your first backtest the Symbol Tester asks this once, above the results, with two buttons. Until you answer, backtests end at the seal.
- Show everything. Every backtest shows the whole history. The months since the seal are shown apart, as seen, not evidence. From then on, strategies you freeze cannot be Validated by the sealed exam, until the seal has rolled past your last look (about twelve months after it, see below). Their way up is the forward route: run the frozen version in a live book started after its freeze (incubation). Once questions 1 to 6 are answered yes and question 8 reads inside its expected range on those forward days, it is Forward-tested: a label of its own, shown with "The sealed months were seen, so its proof is the forward record alone." (once kept after the seal rolls past those months, with its kept line, The scorecard). It is never called Validated, and it opens nothing Promising does not (sizing by grade needs Validated; the real-money consent names it below Field-tested).
- Keep the last months sealed. Every backtest ends at your account seal, as every research run does. The sealed exam stays available for the strategies you freeze, unless your account has already looked at these months: then the chooser says so, with the date, and keeping them sealed keeps the last day seen (and the day the seal can roll past it) where it is.
The choice belongs to your account: you make it once, and no other browser asks it again. A full view still never starts by itself: on a browser that has not shown it to you yet, backtests end at the seal and the Symbol Tester offers Show everything here, with the same sentence, until you press it there. If you go back to development only on one browser, the others stop showing the sealed months at their next run. The switch Development data only, beside the seal badge in the chart header, changes the choice at any time. The choice is a preference: what changes an exam is a look, and going back to development only never removes a look already on record.
-
A full view shows two parts kept apart. Development (up to the seal) is the evidence: the tiles, the "after N attempts" Sharpe, the attempt count and a comparison with an earlier run all read it, and it is exactly the result a development-only run gives. Since the seal is shown beside it: trades and markers on the chart, the account line continued as a dotted line, a "since seal" figure under the tiles that have one, the trades under their own caption. No figure is ever taken over both parts. A full view and a development view of the same settings are one attempt, not two.
-
Looking is recorded, and it counts for the whole account. A full view records a look. Months you have looked at are no longer a test nobody has seen, whichever strategy was on screen: the sealed exam of every version that has not taken it yet stops counting on those months, including strategies you never opened. An exam taken before the look keeps its result. Looks are permanent and visible on the account, and the same view is recorded once however often you run it. (Looks recorded before 25 November 2026 follow the earlier rule: they count only against the strategy that was on screen. A look recorded before 8 October 2026 cannot say which rules it showed, so it counts against every strategy on the months it showed.)
-
Fresh months count again, about a year later. A look covers the months it showed, up to its last day. Exams count again once the seal starts after that day, and a roll always keeps twelve months sealed, so the roll that gets there is refused until twelve months after the month of your last look: after a look on 26 November 2026, the seal can start on 1 December 2026 only from 1 December 2027. Every later look moves that date, so keep "Development data only" on in the meantime. The seal panel (click the seal badge) shows the date for your account.
-
A pending exam is never voided by accident. While any version is frozen and waiting for an exam that would still count, a full view stays a development view and says which versions are waiting. "Show sealed months (voids v1's exam)" then asks you to confirm before anything is shown. The run also stays a development view, with no look recorded, when the months since the seal could not be shown: run it again later.
-
A run that reaches into the seal is cut at it, and says so. A research run records the window you asked for and the window it ran; results show an "Ends at seal" chip with the last day used. A window that starts inside the seal has no development data: a research run of it is refused, and a full view of it shows only sealed months, none of it evidence.
-
The seal badge in the Backtest chart header shows the sealed period. Its panel lists the last day research may use, the looks on record and the roll history. On the chart the sealed months are shaded; the candles are always visible (prices are not sealed).
-
Roll seal forward… moves the seal to a later month, for example once a year. The months that leave the seal become development data for every run, yours and your agents'. The seal only moves forward, always keeps at least twelve months sealed, and a roll cannot be undone. Each roll is recorded. After a roll the chart re-runs as a development view; the newly sealed months are shown only when you run again.
Agents and API keys can read the seal (get_seal, ss seal,
GET /api/v3/account/seal) but never see a strategy's results on the sealed
months and never roll the seal: every backtest an agent runs ends at the seal,
whatever it asks for. The full view and the roll are yours, in the app.
The sealed exam
Every strategy version gets one exam on the sealed months. You open it from the strategy's card on the Research page, in the Sealed exam section.
-
Freeze the version you pick. Freezing pins exactly what the exam will run: the version's rules, symbols, timeframe and risk, taken from a completed run of it on the strategy, and the code of every indicator it uses. Editing the template afterwards does not change a frozen version; it makes a new version. Editing the code of an indicator the version uses (or deleting it and creating it again) blocks the exam until that code is back. Freezing is permanent, so the app asks first: it names the version and what the freeze fixes.
-
Take the exam. The app shows what will happen and asks you to confirm. The frozen version then runs once over the twelve sealed months, after costs. The exam is one shot and permanent: it cannot be taken again, cancelled or deleted. If its run stops before it finishes, the exam waits for you to resume it: the server runs the same frozen code again, up to five attempts in all.
-
Read the result. The exam compares the sealed year with how the same version behaved in similar markets during development: the same trend direction and the same volatility. The chart shades that expected range and marks the sealed result, and names the kind of markets the sealed year had.
- Passed: the return and the drawdown are inside what this version did in similar markets. A result above the range still passes and is flagged.
- Failed: the sealed year shows behaviour its history never showed, for example losing far more than it ever did in the same kind of market, or not trading at all where it always traded.
- Inconclusive: the history has too few days of the markets the sealed year shows (at least 60 are needed). The result says what would settle it. It is never a pass.
If the price data does not cover the sealed months yet, nothing is graded: the exam stays unfinished until a run over complete data grades it.
One sealed year is a small sample. A pass means "not broken", not "proven". Every result names the market conditions the sealed year had and the ones it did not have, for example "Tested in mostly rising markets that were calm. It was not tested in sideways or highly volatile markets." A strategy that passed in a calm year has not been tested in a highly volatile one: its forward record is where that shows.
What counts. Only a strategy's first contact with the sealed months counts as evidence, and only if your account had not looked at those months before it. If another version of the same strategy already took its exam on those months, or you looked at them in a full view (whichever strategy was on screen), a later exam is still recorded and shown, marked as not counted with the reason ("You looked at these months on …"). When the reason is a look, question 7 reads Not available (never a failure, never a pass) and names the way forward: the forward route above. The look is your account's, never one version's: no exam you have not taken yet can count, whichever version and whenever you froze it (a new version included), until the seal rolls past the last day you saw. An exam you took before the look keeps its result (the scorecard and the exam panel name that day and the date the roll rule allows it). An exam taken before the look keeps its result, and nothing recorded afterwards is held against it. Rolling the seal forward past the months you looked at gives every strategy fresh months; the roll rule allows that about twelve months after your last look (the account seal).
Who takes the exam. You do. Taking an exam spends the version's one exam
for good, so only a person signed in to the app can confirm it. An agent can
freeze a version (freeze_version, ss exam freeze) and can ask for its exam
(take_sealed_exam, ss exam take): the server runs nothing, hands the agent
no confirmation, and answers with what the exam would do and "Ask the owner to
take the exam from the card". The agent relays that to you; an agent working
on a goal in the app asks its question there, and it waits for you under
"Needs you". A goal that ends at Validated therefore stops and waits for you
to take the exam. This holds for every API key, whatever its scopes, and for
the agent built into the app.
Opening Entry runs nothing
Three Results views run scans whose comparisons count against a later promotion: Entry › Predictive Metrics (every entry metric), Entry › Synergies (pairs of metrics) and Entry › Grades (composing grade rules records the same entry scan). The first time one runs on a result it is recorded with that result, and a promotion of a rule from the strategy charges those comparisons in its multiple-testing bar. So opening the view never runs it: a scan already recorded is shown at once; otherwise the view says so and waits for Run the entry analysis, Run the synergies analysis or Compose the grade rules. None is an attempt. Exits and Diagnostics load on open: what they record is not charged.
Which entry analysis the money checks read
The Predictive Metrics analysis (Results › Entry › Predictive Metrics; the
entry-edge-analysis route) lets you change the train/test split and the
bucket settings to explore. Only its default settings count as evidence:
the A+ strong-verdict check and the multiple-testing check a promotion with real
risk runs (the rule's own false-discovery q, and its discovery p charged across
the strategy's lineage) both read that one analysis, computed over the run's development trades
(everything before the account seal) and charged across every entry metric the
run recorded. Re-running it with another split or bucket count never changes
either check. Recommend grade rules and the Synergies analyses (at their default split
and bucket count) produce the same analysis; a
promotion with real risk computes it if it is missing, and is refused when that
analysis has no false-discovery q for the rule's metric. Promote at risk 0, or
investigate why the held-out sample cannot support one. When the strategy's
lineage cannot be read in full at that moment, a promotion with real risk is
refused with "safe to retry" and nothing is written: an unread lineage is never
charged as a smaller one.
The discovery p is charged against the largest of three counts: the strategy's distinct experiments, the comparisons its runs scanned (entry metrics with their sign twins, the exit router's families, the joint pairs), and the widest family any run of these rules scanned: on this strategy, another strategy with the same template or rules, or in exploration. The entry metrics a run records are not part of its configuration, so re-running the same rules on the one metric a wide scan picked is the same experiment: its own false-discovery q is its raw p, and the promotion still pays for the wide scan. A strategy with a single experiment is charged too; a charge that cannot be computed refuses.
Robustness: enough data, over time, fragility, costs, unseen symbols
Results › Robustness answers the scorecard's questions for the run's version, one tab per question: Luck (is it luck, and is there enough data to tell?), Over time, Fragility, Costs, Unseen symbols and Sealed exam. Each test has one fixed rule, and every tab ends in ONE plain sentence: the version's answer and why, in the scorecard's words. Luck also shows this run's own luck test and the control that extends it; Over time the edge year by year; Sealed exam the version's exam. (The strategy dossier's Scorecard tab shows the same tests for the version the scorecard judges: its frozen version, else its latest.)
| Test | Question | Passes when |
|---|---|---|
| Power check | Is there enough data to tell? | the independent trade-days (trades entered the same day count once) reach what the measured edge (per trade, averaged by trade-day) needs, and the years of daily account returns reach what its Sharpe needs, both at 80% power and 5% one-sided. For example +0.05 R per trade takes about 2,500 independent trades, and a Sharpe of 1.0 about 6 years. Short of either (or below 30 closed trades) it is inconclusive with what would settle it, never a fail: not significant on thin data means "not yet", not "false" |
| Calendar folds | Does it hold up over time? | the account (percent, after costs) grows over the calendar years the window covers (each year judged on its own; a year counts when the window spans at least half of it, and two are needed) AND still grows without its best year: no single year carries the result. "Positive in k of n years" is shown beside it |
| Unseen symbols | Does it work where it wasn't built? | the same version, re-run on symbols your strategy never used, keeps a positive edge after costs at 95% confidence. It fails when that data rules out that even half of the development edge carries over, and is inconclusive (with the trade-days that would settle it) in between |
| Cost speed limit | Does it survive costs? | the costs each trade paid (commission + slippage, in R) are at most a third of its gross edge, shown as the trades a year the edge can afford against the trades it makes (Robert Carver's speed limit). The gross edge is measured on the data the version was developed on, so it is optimistic: treat the affordable turnover as an upper bound |
| Cost stress | Does it survive costs? | with every commission and slippage leg doubled, the average trade still makes more than 0 R and the account still grows. The 1.5× and 2× runs are full re-simulations of the version (slippage moves the fills, later trades size on the smaller account), not a rescale. If the 2× re-run has no account series the answer is inconclusive and the next launch replaces it, never a pass on the trade ledger alone |
| One-bar delay | Is it fragile? | with every entry one bar late, and with every exit you decide on a close one bar late, the strategy keeps at least half of the net R it earned on time. Intra-bar stops are resting orders and still fill when touched. It is read only when the edge stands at least one standard error above zero (t ≥ 1: a low bar, p ≈ 0.16, that screens out noise but does not prove the edge) |
| Neighbor settings | Is it fragile? | each numeric setting of your rules (indicator settings, thresholds such as RSI < 30, bar counts) moved 10% and 20% either way, one at a time, plus a small grid of two settings moved together: at least two thirds of these neighbors keep half the net R, and no setting loses most of it on both sides of its nearest step. A plateau passes; an edge that lives on one exact value (a spike) fails. Whole numbers round to the nearest integer, and a step that rounds back, repeats or leaves the setting's range is skipped and named. A whole number too small for a percentage (a period of 2) moves by one either way; a threshold at exactly zero stays where it is (named); a setting you left out of a built-in indicator moves from its default. Your own indicator's schema is your word, not a fact: a setting left out of one, a number its schema does not declare, a setting at 0 that is not a whole number or a range with no room for a step is named as not moved, so write every setting of your own indicators into the configuration; a setting its schema hides is moved anyway, to check the schema (a spike there still fails, but it never counts toward the plateau). A setting chosen from a list of numbers moves to the next number on the list on each side. The Standard tests move at most 8 settings, taken in turn from the entry, filter, exit and stop rules; the Deep preset moves the rest (up to 24). While any setting is left unmoved the test reads inconclusive and names it, so the scorecard never calls the version not fragile over a setting nobody tested; "Move every setting" starts the Deep sweep, priced on its own (every re-run it starts, with any Standard re-run still missing). Same t ≥ 1 rule as the delay |
| Noisy prices | Is it fragile? | across 30 copies of your bars where every bar is shifted a little (by up to a quarter of its typical range, open, high, low and close together, so every bar keeps its shape), the median copy keeps half the net R. Same t ≥ 1 rule; not used for weekly or monthly strategies. If your strategy fills at the signal bar's close, the result says so: noise drawn bar by bar flatters reversal entries there a little (about 0.08 of a bar's typical range per trade) and costs momentum entries about as much; next-open fills carry no such bias |
| Selection check | Is it fragile? | when your chosen setting earns clearly more than its typical neighbor, the setting that did best in one calendar year should still rank above the median setting the next year. Passes when little rides on the exact setting or when that lead clearly carries over; fails when picking each year's best clearly backfires the next year; otherwise inconclusive, with how many more years of data would settle it |
The power check and calendar folds read the run itself and need no re-run. "Run the Standard tests" (above the tabs) starts the re-runs the other tests still need (one pass per symbol each, shown with an estimate; the unseen-symbols re-run runs over the unseen symbols instead) and the tabs update while they run. You can also choose them before the run (below: "Choosing the tests before you run"). The neighbor grid and the noisy prices are the heavy part (up to about 80 re-runs together): read the estimate before you start.
Neighbor settings, read as a surface. Before it runs, the Fragility tab shows the planned grid and which steps were skipped; in every state it names the settings the grid does not move ("Not moved, so not covered by this verdict"). Once planned, the grid stays the one it launched with, even if an indicator's settings change later. Once run, it shows the grid of two settings around your chosen one (each cell: the share of the edge that setting keeps) and every setting's own profile with its shape: plateau, cliff (one side falls off) or spike. Do not pick the best-looking cell: a neighbor is another configuration, and running or freezing one of them as a version counts every neighbor of the grid as an attempt. A plateau means the exact value does not matter.
Unseen symbols, chosen once. "Unseen" means never touched by this strategy's
research: every run of any of its versions, every other run of the same template
or the same rules (even under another strategy card), its Symbol Tester
evaluations and its portfolio tests (a copy of its template included) count as used. Before the first
unseen run you choose the set: the rest of the same market (the default), or a
whole other market, which is refused if the strategy ever used any of its
symbols. The set is then fixed for the version: a failed run is re-run on the
same symbols, and a different choice is refused, so the better of two sets can
never stand in for the test. Running the strategy on those symbols before the
test answers spends them: the test is then never re-run on them. The choice
you make in the row is also what "Run the Standard tests" sends. Once a
version's set is fixed, the Tests step shows it instead of the choice, and a
run that asks for Standard or Deep tests re-runs that set (a run asked for
another market says it ran the fixed set instead). When more symbols are unseen than one run holds
(5,000), a fixed random sample of them runs. Before it runs, the card says
whether the window could settle it at all, and each choice shows its set's
size and the time it would take (or why that market cannot be chosen). Agents choose it with unseen (same_market, equity
or crypto).
A run with no trades says why. It records where its entries stopped: for
each entry and filter condition, the bars it was true on alone and together with
the ones before it, and the first condition no bar got past ("'RSI(14) < 5' is
true on none of the 61,200 bars"). It shows as the zero-trade trace in Results ›
Diagnostics, and as zero_trade_trace on the run for agents.
A condition that could not be decided on any bar of any symbol (an indicator
it reads has no value there: it computed nothing, or its warm-up is longer than
every symbol's history in the window) is named as such (never_readable),
never as a threshold that was not reached; in an OR group, when no alternative
can be decided on any bar. Each condition's row also carries bars_readable.
Every number is measured on the run's development data: the sealed period is excluded for the run and every re-run. A test needs at least 30 closed trades; with fewer, or with an edge too close to zero to measure a share of it, the answer is inconclusive with what would settle it.
A re-run keeps the run's own window and, like every research run, ends before the account seal. It is compared with the run only when it ran the same symbols and every symbol that produced a result in one produced a result in the other; a re-run that did not is inconclusive, and the next launch replaces it. If the run's universe now resolves to different symbols, or the run predates the account seal (or these records), Robustness says so instead of offering the button: re-run the version first, then test the new run.
A re-run recorded before trades carried their signal, decision and fill times is replaced when you launch the test again; the unseen-symbols test runs the version's same fixed set again, from the run you launch it on. Only the run you are reading can refuse: a run recorded before those times shows "No battery for this run" (re-run the version), and a version frozen before them shows "No battery for this version" (freeze a new version: a frozen version is judged on its own run only, so running it again cannot help). Neither offers a retry button, because retrying cannot change them.
The re-runs are hidden from Runs › Attempts until you turn on "re-runs"; then each is named by what it changed ("re-run: costs ×2", "re-run: entries 1 bar late", "re-run: noisy prices, path 7", "re-run: neighbor: …" and so on) with a link to its version. A failed re-run's "Retry the test" (Runs › Jobs) launches its test again on the version. They are diagnostics of the version: they are never counted as attempts or iterations (a neighbor only once you make it a version), and nothing can be promoted or validated from them.
Choosing the tests before you run
Configuration › Tests says what a run will be checked with, and what it costs, before it runs:
- The stage: a screen first (every symbol once, no luck test: quick to iterate, never a verdict) or the full validation (the luck test's random-timing copies, the band on the Summary, the scorecard's answers), each priced at the server's recently measured pace, with the advisory on whether the run is likely to have enough trades.
- The tests the run starts when it completes: Quick (the tests that read the run itself: no re-run), Standard (every re-run the full scorecard needs) or Deep (Standard plus the heavier tests, which can only turn a "yes" into "no", and more luck-test copies when the count cannot decide). Each test is listed with the question it answers in one line and whether it is approved (it can change a label) or a diagnostic (shown, never a label). Custom lists the diagnostics you or your agents wrote for this version. With Standard or Deep you choose the unseen symbols' set here too.
- The price: the run, then up to how many re-runs its tests start and how long they take, and the attempts: one for the run, none for its tests (they are diagnostics of the version).
A screen runs Quick. The tests start on their own when the run completes, as if
you had pressed "Run the Standard (or Deep) tests" on it; if they cannot start
(for example the run's universe has changed since), the run still completes and
Robustness says why. Agents send tests (quick, standard or deep) and
unseen with submit_discovery, and price it first with compute_estimate
(tests).
Context and Diagnostics
Context splits the run's daily account, after costs, by the state of its
own market (its symbols held equally) on each day, labelled from the day
before, so a label never knows the day it describes: rising, flat or falling
(the 20-day average's slope), calm, normal or volatile (20-day volatility
against the last 120 days) and near its high or more than 10 % below it. For
each it shows the days, the account's growth a year and its Sharpe with a 90 %
interval (none below 20 days: too few to tell), buy and hold on the same days,
time in market and the share of the whole result, then one sentence per family
("It grew in rising markets; in flat and falling markets it cannot be told apart
from zero"). Market breadth is not recorded, and Context says so. Agents read it
with get_run_analysis (regimes).
Diagnostics collects what is known to be wrong with the data the run read:
what the run itself recorded (prices that did not load, a window narrower than
asked, entries it could not trade and why), each symbol's coverage of the window
(starting late, stopping early, no data; gaps inside the window are not
counted), the price store's split and jump checks for its symbols, and the
funding it read. A part that could not be read says so; it never reads as
"nothing found". It also holds the zero-trade trace, the variance audit and the
run's manifest. Configuration › Universe and data shows the same coverage before
you run. Agents read it with get_run_analysis (data_warnings).
Runs: attempts, compare, jobs
Attempts lists every run with its strategy, version, risk and run number
("v2 · 1% risk · run 7"), filtered by version, stage, who started it (you or an
agent) and state. Click a run (or press Enter on it) to open it on Results;
Parts on a row compares one part of that run's version. The row's actions
stay pinned on the right in a narrow window.
Compare › One component is the component comparison of the open run's
version: the strategy's comparisons so far, a new one (pick the part, add the
options, price it, start it) or an open one: the table, the recommendation,
"Recorded as N attempts" and Save the recommended option as the next
version, with the findings library for that part beneath
(component-comparisons.md). Compare › Runs side by side reads two to four
runs: first whether
they share one basis (the same symbols, window, timeframe and cost model,
because numbers compare only on one basis), then their results, and the
configuration settings that differ. Jobs shows what is queued (its place in
the queue) or running (its phase, progress, a time range, and whether it has
stalled), with Cancel; and the last failed and cancelled runs, with "Retry,
without tests": a new run on the same inputs (a new attempt), never an edit of
the old one. It launches no robustness tests, whatever the failed run asked
for: launch them from its Results › Robustness once it completes, where they
are priced.
Agents and scripts use the robustness_battery tool (no run id = the test
catalog; a run id = the results; a card_id (+ version) = the results of the
version the scorecard judges; plus preset or tests (+ unseen) = launch),
ss robustness tests|get|run (ss robustness get --card <id>), or
GET/POST /api/v3/research/strategy-runs/{run_id}/robustness and
GET /api/v3/research/cards/{card_id}/robustness.
Trailing families
The Exits → Trailing leaderboard compares a bounded grid across four families:
- ATR ladder: arms from the winners' peak distribution in stop-normalized R and tests tight-to-loose ATR distances.
- Candle structural: arms when price closes through the prior 10- or 20-bar high/low, then trails the breakout candle low for longs or high for shorts.
- RR activation: arms an ATR trail when unrealized return reaches 1R or 2R.
- Z/volume activation: arms an ATR trail on a rolling-z price extension or normalized dollar-volume expansion. Raw cross-symbol volume is not compared.
Each proposal row shows its family, activation, and trailing distance. Selecting
Validate creates one child run for each row and replays the full strategy with
that trailing configuration applied. The validation ledger reports the measured
change in expectancy in R (ΔR) against the parent run.
Trust only the measured ΔR from the counterfactual child run. The proposal's rationale and thresholds explain what is being tested; they are not evidence that the change improves the strategy. Promote is available on a completed validation cell and writes the chosen exit configuration to the strategy template.