Workflow Designer

A workflow is a linear chain of stages: each stage does one thing to the strategies of every market you choose when you run it, and passes on the ones that survive. The Designer is where that chain is built. It never runs anything — Workflow does — and it never edits a Collection.

The document is market-free: the same workflow runs on one market or on ten, and the markets are picked on the run page. It also carries no name of its own — the saved record owns that.

The two columns

ColumnWhat it holds
Workflow design (left)The Design settings card, the Input card, the numbered stage cards, Add stage and the Output card
RightThe built-in and saved designs, or the one form a selection opened — never both

The right column starts on the designs, in two groups: Built-in designs and Saved designs (the account's, newest first). Clicking a design loads it and nothing else: the left column fills with that design and the list stays where it is, so a design can be read before any of its settings are opened. Clicking a Design settings card or a stage card opens that card's form on the right, and the list gives way until the form is closed; the card stays marked while its form is open.

A first visit does not open on an empty draft: it opens on Quick Generate, the default design and the first row of the library, so the page is runnable (or at least complete) before anything is chosen. Reset returns to the default design, and an empty design is reached by removing its stages.

Blocking problems are shown as one plain line each, above the columns: a bold label naming what is wrong, then what to do about it — for example Error - no stages Add stages to the Workflow Design. Nothing on that line is a button; warnings are not drawn on the page at all.

Every form is a card with Reset and Close in its header and Cancel and Accept in its footer. Accept applies the form in one undo step and closes it; Cancel discards the form's edits and closes it; Reset restores that section's defaults (the three validation lists for the design settings, the stage type's own settings for a stage). A typed name or comment is applied by Accept, and the saved row of the workflow keeps the Loaded mark.

The Design settings card

The first card of the flow is the design itself. Its body outlines what the design settings hold — the design's name and the number of criteria in each of the three validation windows — and clicking it opens the design settings form on the right: the name, the comment and the three validation lists. It is selected like a stage card while its form is open, so the flow always says which card the right column belongs to.

Input and Output

The Input card is derived, never chosen: it names the first enabled stage. A Generator there means the workflow starts by searching; anything else means it starts from each market's Collection.

The Output card decides what happens to each market's Collection. Its modes follow the Input card instead of contradicting it: adding, removing or moving a stage moves the mode with the input — a Generator input offers Replace or Add, and a Collection input keeps its survivors, so no error has to be shown about the pair:

InputOutput modesMeaning
GeneratorReplace or AddReplace empties the Collection when the market starts and keeps only what this run produces. Add keeps the existing strategies and adds the new ones
Each market's CollectionKeep the survivors (trim)The Collection is the input; whatever a stage rejects leaves it and the survivors stay

Keep best is how many strategies each market keeps at the end, ranked by the Collection's own sorting criterion. all stores no number at all: the Collection's capacity still decides how many it can hold.

The six stages

StageKindWhat it does
GeneratorCreateSearches for new strategies inside an embedded template. Only ever the first stage
ValidatorCheckRecalculates the strategies (optionally) and keeps the ones that pass the workflow's criteria
OptimizerImproveOptimises each strategy and keeps the better version when it is the best passing candidate
Walk ForwardImproveWalks each strategy forward over moving windows and keeps the last segment's parameters
Monte CarloCheckStress-tests each strategy with random variations and keeps the ones that pass enough tests
Multi MarketCheckTests each strategy on the run's other markets and keeps the ones that validate enough of them

Each card is the strategy-feature card of the Generator Template: a rounded item whose head is one full-width button holding the stage's icon, number and name, its kind tag and its one-line settings summary — clicking it opens the stage's settings — with move up, move down and remove controls as small quiet icons in its top-right corner. A card is also tinted by what its stage is for, so the chain reads at a glance: Create stages are green, Improve stages amber, Check stages blue, while the Design settings card keeps the strategy-feature beige. The Generator stays first and cannot be moved; the other stages can be reordered, with the arrows disabled at the ends. Every stage in the chain runs — there is no on/off switch, and a stage is left out by removing it.

The Generator stage's settings

The Generator is the one stage whose settings describe a search, not a rule, so its form is the fullest one:

SettingMeaning
Generator timeMinutes the search works on each market. It is a budget, not a promise: the run stops when the time is up
Stop at (kept)Stop collecting once the market's Collection holds this many strategies of this run. Empty = no target
Search bestThe objective the search climbs. The labels are the ones the Generator page uses
Out-of-sample (%)The share of each market's data the search keeps aside, so a strategy can be judged on data it was not fitted to
ThreadsParallel search islands. The worker pool may run fewer
Search balanceHow much of the search explores new strategy frames instead of climbing the current one
Restart afterCalculations without a new best before the search restarts
Minimum trades and Minimum net profitThe two hard filters every accepted strategy has to pass

The search space — the strategy template and the indicator pools — is part of the document, not a reference to a saved template, so an exported workflow runs the same search on any account. Copy from the Generator page reads that page's own configuration, pools and run settings and writes them into this stage as one undoable step; the line above the button names where the current search space came from. The one thing it never copies is the run seed, because a workflow document holds no seed: every run draws its own.

The Check stages' settings

Monte Carlo and Multi Market decide about strategies they do not change, so their forms are acceptance rules over what the tool already measures.

SettingStageMeaning
Market, Strategy, Execution, Start, Combined testsMonte CarloHow many simulated tests each counted group runs. A count of 0 switches that group off, so the plan is five complete numbers in a fixed order
Validated tests (%)Monte CarloThe share of the simulated tests a strategy has to pass to stay
Test marketsMulti MarketThe run's markets tests each strategy on the run's other markets; These servers, symbols and periods tests the lists below
Servers, Symbols, PeriodsMulti MarketThe cross product each strategy is tested on — every server, then every symbol of that server, then every period. Used only when the lists select the markets
Max testsMulti MarketHow many markets one strategy is tested on at most
Validated marketsMulti MarketHow many of the tested markets have to validate. A market whose data cannot be loaded is not a validation

A Monte Carlo run never splits a market's data: the out-of-sample window belongs to the strategy the Generator found, so every simulated variation is judged on the full window. A Multi Market run has no split of its own either, for the same reason.

Both stages run one strategy at a time: the job behind each strategy gets its share of the worker pool and the next strategy waits for it. The run page says how many tests and market loads the whole plan adds up to before anything starts.

Validation: one list per window, three levels

The workflow owns three lists — full data, in sample and out of sample — and every stage either uses them or keeps a full copy of its own. There is exactly one live list per window: switching a stage back to the workflow's criteria discards its copy, and there is no additive composition.

Only the windows a stage consumes are shown: Validator, Monte Carlo and Multi Market read the full-data window, while the Generator, the Optimizer and Walk Forward also read the in-sample and out-of-sample lists.

The Collection has its own filters, and they are a different thing: a filter hides strategies from a view, while a workflow stage removes them from the Collection.

Saving, loading and transferring

ControlWhat it does
Save / Ctrl+SSaves over the open workflow. Blocked while an error line is shown above the columns, and its tooltip says which one
Save as…Saves a copy under a new name. A name already in use is reported under the field
ResetReturns the workflow to the default design (Quick Generate). It asks first when the draft has unsaved edits
Export workflowDownloads the document as <name>.sbp-workflow.json
Import workflowReads a file, reports its first real problem as an issue, and replaces the draft only when the file is readable
Undo / Redo (Ctrl+Alt+Z / Ctrl+Alt+Y)Walk the edit history. Loading a document, adding a stage, an accepted form and an import are each one step; typing inside a form is not
Refresh (Saved designs)Reads the account's saved designs again. The list also loads on every visit

The five built-in designs load a copy: the built-in itself can never be edited or overwritten, and the row it came from stays marked Loaded while the copy is the working document.

The draft lives in this browser, not on the server: leaving the Designer and coming back keeps it, and so does closing the tab or reloading the page — the last design, the row it came from and its unsaved-changes mark are all restored. The undo history is the one thing a reload drops.

Built-in designs

WorkflowStarts fromStages
Quick Generate (the default design)the GeneratorGenerator → Validator
Clean Collectioneach market's CollectionValidator
Harden Collectioneach market's CollectionValidator → Optimizer → Walk Forward → Monte Carlo → Multi Market
Search & Hardenthe GeneratorGenerator → Monte Carlo → Multi Market
Polisheach market's CollectionOptimizer → Validator

The Optimizer and Walk Forward stages of a built-in search two universal parameters — the first entry rule's and the first exit rule's period — because a built-in has no strategy of its own to copy a parameter list from. Copy from the page replaces that list with the tool page's own, and a record whose slots do not carry a parameter simply ignores it.