SwingSurfer

SwingSurfer is in private alpha. These pages describe the app as it works today.

Strategies, versions and saving changes

A strategy is one reason to make money: a hypothesis you registered (its name, market, timeframe, mechanism and falsifier). A version is any way of expressing that reason that you actually ran: its rules, its risk per trade and its timeframe. Versions are numbered by their first run (v1, v2, v3 …), the same numbers in the editor, the Optimizer, the dossier and for your agents. A template is what you edit: the strategy controls on the Backtest page.

The rule matters for honesty: a version inherits the strategy's attempt count, a new strategy starts at zero. So when in doubt, a change is a version.

You changeResult
Parameters, filters, the stop, an exit, a trailing stop, the sizingA new version
The same rules on another marketThe same strategy, tested for transfer
Buying pullbacks becomes buying breakoutsA new strategy: a different reason
Following a move becomes fading itA new strategy
A short twin of a long strategyA new strategy, linked to it as a sibling

The picker

The Strategy · version picker at the top of the strategy controls lists your strategies, each with its market, timeframe, stage and label, and under it its versions: v3 · PROMISING · 147 trades · +0.05 R · 1% risk, the template that holds that exact version (or as it ran when none does), and the strategy's templates that have not run yet. Retired and archived strategies sit in the folded Library; templates in no strategy in the folded Exploration row, which says how many there are (Exploration · 16 templates): click it, or press Enter on it, to unfold it. It is already open when you have no strategy of your own, when the editor holds one of its templates, when you choose a template for a portfolio slot or the Strategy Optimizer, and when what you type matches a template inside it.

  • Type to find a strategy, a version (v3) or a template. A timeframe is matched exactly as written: 1M is a month, 1m a minute.
  • ↑ ↓ move, Enter loads, Esc closes.
  • Loading a version loads exactly the configuration it ran: its template when one holds it, otherwise the configuration its first run recorded, as an unsaved draft (save it to run it again). A template edited since never stands in for a version.
  • A version on another timeframe switches the chart to it first.

Under the picker one line says what the editor holds: Gap-down fade · v3 · editor matches v3, v3 + unsaved changes, not run yet for a template of the strategy that has not run, or Exploration for a template in no strategy. The labels in the picker are the board's copy; to decide on a strategy, read its scorecard.

Saving changes

A template no strategy relies on saves in place, as before. A template is relied on when its rules ran as a version of a strategy, or a recorded promotion decision cites it, and its configuration is never overwritten: that would rewrite what the record means. Its save button becomes Save as v4 (the strategy's next number), which opens one dialog:

Save changes to Gap-down fade These rules share 71 percent of their trades with v3, and their daily returns move together at 0.84. Save as v4 · recommended Save as a new strategy · needs a different mechanism, written below Why should this make money for a different reason?

  • Save as v4 always works, at once: a new template linked to the strategy is saved and loaded; the one you edited stays exactly as it ran. Renames never count as a change, and a template a live portfolio runs stays locked as before. It is saved on the strategy's timeframe (the one it was registered on, or one its versions ran on): the same rules on other bars are not a version of it.
  • To tell a version from a new strategy, SwingSurfer runs the new rules once, on v3's universe and the strategy's own window. That run is recorded and counted as an attempt of the strategy: a look at the data always counts. If you then save the rules as v4 and run it on the same universe and window, it is the same attempt, counted once.
  • The sentence gives two facts against v3: the share of trades the two take together (same symbol, side and signal bar, out of the smaller set) and how their daily returns move together. The same facts are measured against every version of this strategy and of every other strategy of yours on the timeframe, so a tweak of v2 changed from v3 is still caught.
  • The check runs on a timeframe the version ran on. Trades are compared on the bar that signalled them, so a check on other bars would find nothing in common.
  • A strategy on other symbols shares no trade with these rules. Only the daily returns can show that the same bet moved to new symbols.
  • A new strategy is allowed only once the check has completed and the new rules share less than half of their trades and move together at less than 0.7 with every strategy on the timeframe. Otherwise the dialog says which strategy they overlap: save them as a version. The one exception is an opposite-side twin (a short twin of a long strategy that no version of it trades short): it is a new strategy by construction, linked to its sibling.
  • Registering a new strategy needs its own mechanism ("Why should this make money for a different reason?"), a name, an edge type and a falsifier; it starts at zero attempts beyond the check itself.

Save as New, other strategies and a withheld label

A new strategy starts at zero attempts, so there is only one way to make one out of changed rules: the check above.

  • Save as New on a template of a strategy opens the same dialog. You can save the template as the strategy's next version, or as a new strategy if the check allows it. A template in no strategy saves as before.
  • A template of one strategy does not run under another. Run it under its own strategy, or save its rules as a template of the other one. The exception is a strategy registered through the check of exactly these rules.
  • Every version gets a label only when it trades differently from every other strategy's versions that existed before it on its timeframe. It is measured with the same two facts, on the run its label is read from: a frozen version's run, or its newest completed run. So a version re-run on another strategy's symbols is measured by that re-run. If it is not distinct, its label is withheld: the board card, the dossier and the picker say which strategy it overlaps and what would make it distinct. Two things never withhold a label: a later copy of this strategy (it is the copy that is withheld), and the exact rules the check approved when this strategy was registered through it.
  • When the two strategies share too few days, or one barely traded in them, their daily returns cannot be compared: then the shared trades alone decide. Sharing at least half of the smaller set of trades withholds the label; anything less keeps it. Only two runs with no day in common cannot be told apart at all: run one of them again on a window that overlaps the other's.
  • While a run of another strategy that started before it is still running, the label waits for it ("waits for … 's run"). It is decided when that run ends.
  • A failure is never withheld.

The flow

A strategy's flow is the path a trade takes, read-only: per side Universe → Entry → Filter → Risk → Exit, Grades as an optional branch into Risk when the sizing is graded, and a dashed Position step reserved for pyramiding. In a strategy's dossier, Versions → Flow shows each version as it ran, with the steps its change touched outlined. Agents read the same flow: get_strategy and get_strategy_version carry it.

Position (reserved)

Pyramiding arrives as a fifth section, Position: adding to winners, partial exits, and one stop for the whole position. Until then it appears only as the dashed, reserved step of a version's flow; Strategy Controls has no Position row. A strategy that sets it is refused ("position rules arrive with pyramiding").

For agents

The same rules, as tools (MCP research.*, the ss CLI, /api/v3/research/…):

  • list_strategy_versions: every strategy with its numbered versions, labels, trades, net R, risk and holder; per template what it holds and what relies on it.
  • get_strategy_version: one version exactly as its first run recorded it, with its flow.
  • save_strategy with card_id: save a NEW template as the next version of a strategy, on the strategy's timeframe (another is 409 STRATEGY_TIMEFRAME_MISMATCH, listing the timeframes it may go on). Changing a relied template in place is refused (409 TEMPLATE_RELIED_ON, which version or decision relies on it, and the next step). Every save answers save_changes: each difference between what you sent and what was stored (a default slippage added, a label filled in, promoted grade rules a new template never carries), with the reason; faithful: true means stored exactly as sent.
  • card_attach_template: attach a template you already saved to a strategy you registered after, as it is: no copy, nothing in it changes, its configuration hash stays the same. Refused with 409 TEMPLATE_ATTACH_CONFLICT when the strategy contradicts it (conflicts: another timeframe, or the template is another strategy's). In the app: an empty Versions tab offers your saved templates on the strategy's timeframe that belong to no strategy.
  • A run of a template takes the template's own risk per trade unless you name another (fixed_risk_pct, shown as an override); a template with no single flat risk runs at 1%, and the answer says so. The run-identity preview shows the risk and where it comes from before you run.
  • check_version, then get_version_check: the check above. Register a new strategy with register_hypothesis and version_check_id. It is refused with 409 VERSION_NOT_DISTINCT, naming the strategy it overlaps, or with 409 VERSION_CHECK_NOT_DONE while the check runs. A check on a timeframe the version never ran on is refused with 409 CHECK_TIMEFRAME_MISMATCH. A registration through the check records the check in the hypothesis.
  • A run under one strategy of another strategy's template is refused with 409 TEMPLATE_OF_ANOTHER_STRATEGY. A withheld label reads as label.state: "withheld", with the reason in the scorecard's headline and in the stage's withheld.
  • get_strategy and get_strategy_version carry the strategy's flow: the steps as structured nodes and the same in plain words.