DocsDeveloper guidesRun a systematic strategy

Run a systematic strategy

Signals to weights to holdings to deliveries.

A systematic strategy is a signal turned into a portfolio on a schedule, repeatedly and without discretion. The platform's job is the "repeatedly and without discretion" part: the same graph runs at every rebalance, sees only the data that existed at that moment, and produces share counts a trading system can act on.

This guide follows one strategy end to end — raw data, factor construction, cross-sectional scoring, selection, weighting, cadence, and getting the resulting orders to an OMS.

The full graph

multifactor_100 is a four-factor strategy: twelve-month momentum, 60-day volatility, return on equity and debt-to-equity, combined into a composite score and used both to select the top 100 names and to weight them.

rebal_trigger
sec_ref
eod_snap
liq_filter
eod_hist
return_12m
vol_60d
join_price_factors
fundamentals
calc_bs
merge
winsorize
zscore
composite
rank_composite
top_100
universe
weights
holdings
Multifactor 100 — price factors and fundamental factors computed separately, joined, standardised, combined.
Drag to pan, and select a node to see its configuration.
  1. Quarterly aligned trigger, then core_securities_reference with the sector exclusion applied at source (sector not_in Energy, Utilities).
  2. A market-cap screen to the top 500 defines the estimation universe — every factor below is computed on that set.
  3. i1_core_eod pulls price history bounded by the run time; return and volatility each compute a factor from it, in parallel.
  4. i1_core_fundamentals pulls TTM statements as_of the run time; calculate derives roe and debt_equity from them.
  5. Two joins bring the four factors onto one row per security.
  6. winsorize caps the tails at the 2nd and 98th percentiles, then z_score standardises each factor cross-sectionally.
  7. composite_score combines them with signed weights, rank orders by the result, filter takes the top 100.
  8. create_index_universe records the selection; create_index_weighting weights proportionally by composite score; create_index_holdings produces shares and divisor.

Where the signal comes from

Three sources, and they wire in differently.

SourceOperationNote
Computed from pricesreturn, volatility, max_drawdown, sharpe_ratio, tracking_errorFed by i1_core_eod history; always bound the date filter to the run time.
Computed from statementsi1_core_fundamentals + calculatestorage_type picks quarterly, annual or ttm; the date filter uses as_of for point-in-time.
Your own signalload_dataset or dataset_triggerUpload it, then join on id after map_identifiers. See Bring your own data.
Fitted modelmodel_fit + model_predictTrain on a Polars frame and append predictions as a column, which then feeds the ranking like any other factor.

Point-in-time is your responsibility

The executor replays the graph at each historical trigger, but it cannot know which filters you meant to be time-bounded. {"field": "date", "operator": "lte", "value": {"$ref": "context.request_context.time"}} on price history and as_of on fundamentals are what keep a backtest honest. Fundamentals are the sharper edge: a quarter's statements are not public on the quarter-end date, and as_of on the reported date is the correct selector.

Making factors comparable

The three operations between the joins and the composite are the ones that make a multi-factor score mean anything. Skipping them is the most common reason a plausible strategy backtests badly.

winsorize → z_score → composite_score
{
"id": "winsorize",
"operation": "winsorize",
"parameters": {
"data": { "$ref": "merge.output" },
"columns": ["momentum_12m", "volatility_60d", "roe", "debt_equity"],
"lower": 0.02, "upper": 0.98
},
"input": [{ "$ref": "merge" }]
},
{
"id": "zscore",
"operation": "z_score",
"parameters": {
"data": { "$ref": "winsorize.output" },
"columns": ["momentum_12m", "volatility_60d", "roe", "debt_equity"],
"suffix": "_z", "drop_nulls": true
},
"input": [{ "$ref": "winsorize" }]
},
{
"id": "composite",
"operation": "composite_score",
"parameters": {
"data": { "$ref": "zscore.output" },
"factors": [
{ "column": "momentum_12m_z", "weight": 0.3 },
{ "column": "volatility_60d_z", "weight": -0.2 },
{ "column": "roe_z", "weight": 0.3 },
{ "column": "debt_equity_z", "weight": -0.2 }
],
"output": "composite_score", "method": "weighted_average"
},
"input": [{ "$ref": "zscore" }]
}
  • Winsorize first. One company with a near-zero equity base produces an ROE of 400. Left in, it dominates the z-score's standard deviation and flattens every other name toward zero. Capping at the 2nd and 98th percentiles removes that without dropping the row.
  • Then z-score. A 12-month return of 0.4 and an ROE of 0.18 are not on the same scale and cannot be averaged. Z-scoring puts each factor in cross-sectional standard deviations, which is what makes the weights in the next step meaningful.
  • Signs go in the weights. Volatility and leverage carry negative weights because low is good. Do not invert the factor upstream — keeping the raw factor and expressing preference in the weight means inspect_run still shows you a number you recognise.
  • drop_nulls decides who survives. A security missing one factor drops out of the composite entirely. That is usually right, but check how many you are losing; a fundamentals coverage gap can quietly shrink the estimation universe.

Inspect the distribution, not just the columns

inspect_run with view: "stats" returns count, nulls, mean, std, min, quartiles and max per column. It is the fastest way to find the factor that is skewed or dominating the composite — before the backtest tells you by producing a strategy that is secretly a single-factor bet.

From score to weight

multifactor_100 weights proportionally on the composite score, which ties position size directly to conviction. It is simple and transparent, but it inherits whatever the score distribution does — and a z-score composite can be negative, which is not a weight.

Three alternatives, in increasing order of control:

ApproachHowTrade-off
Equal weight the selectionweighting_type: "equal"Score decides membership only. Robust, higher turnover in the tail.
Tieredweighting_type: "tiered" with tiersFixed weight bands by rank position — top decile 3% each, remainder split. Predictable and easy to explain.
Optimisedoptimizer then weighting_type: "custom"Risk-aware weights with explicit constraints. More machinery, and sensitive to the covariance estimate.

constraints applies to any of them, after the initial weights are computed. Every capping rule is a list of rows, each picking units — a position, or a group value via column — and bounding them: {scope: "security", max: 0.05}, {scope: "group", column: "sector", max: 0.30}, {scope: "top_n", n: 5, max: 0.40} (the five largest combined), {scope: "above", threshold: 0.05, max: 0.40} (UCITS 5/40). Freed weight is redistributed to the names that still have room, and a bound no book can satisfy is an error rather than a quietly non-compliant index.

Optimiser-driven weights

max_sharpe_50 shows the optimiser path: select by market cap, pull the price history for the selection, and let the optimiser choose the weights subject to constraints.

0
1
3
4
5
6
7
8
9
Max Sharpe 50 — selection by size, weights from a constrained quadratic program.
Drag to pan, and select a node to see its configuration.
  1. Selection is ordinary: reference data, quote snapshot, top 50 by market cap, universe written.
  2. i1_core_eod supplies the long-format price history the optimiser estimates returns and covariance from.
  3. optimizer with objective max_sharpe, long_only: true and max_weight: 0.2 solves for the weight vector.
  4. create_index_weighting takes the result with weighting_type: "custom" — the optimiser's weights are used as-is, not renormalised — reading id_attribute "asset" and weight_attribute "weight" from the optimiser output.

custom, not proportional, after an optimiser

proportional normalises the column you give it. An optimiser has already produced a weight vector that satisfies its constraints; renormalising it can break max_weight. custom uses the values as-is. Note too that the optimiser's identifier column is asset, not id — read the operation's output shape rather than assuming.

The optimizer also supports minimum variance, risk parity, tracking-error minimisation, transaction-cost optimisation and maximum return, with group constraints, target return or risk, and a current-weight vector — the last of which is what lets you penalise turnover rather than re-solving from scratch each quarter.

Cadence and calendar alignment

The rebalance schedule is a strategy parameter, not an implementation detail. Faster rebalancing tracks the signal more closely and costs more in turnover; slower is cheaper and lets the portfolio drift from the model. Backtest the cadence itself — the same graph with a monthly and a quarterly cron are two different strategies.

{
"cron": "0 0 1 1,4,7,10 *",
"alignment_enabled": true,
"align_time": true,
"trading_calendar": "XNYS",
"trading_day": "preceding",
"session_time": "close"
}

Alignment is what makes the cadence executable. The raw cron lands on the first of the month at midnight — a date that is regularly a holiday and a time at which no prices exist. trading_day: "preceding" moves the run to the last session at or before it and session_time: "close" stamps it at that close, so every context.request_context.time downstream is a real market moment. trading_day: "following" is the other convention; pick one, document it, and do not change it on a live index — it moves every future rebalance date.

If the strategy should rebalance when your data updates rather than on a calendar, use dataset_trigger instead of a cron: it fires at each distinct timestamp in the file's time column.

Validating before it is live

  1. 1

    Preview the factor stage

    Run trigger through composite_score with POST /execute or MCP run_workflow, then inspect_run with view: "stats". Check row counts at every join — an inner join that halves the universe is a coverage problem, not a filter.

  2. 2

    Check the selection is stable

    Run the preview at two nearby dates. If the top 100 barely overlap, the signal is noise and the strategy will be all turnover.

  3. 3

    Backtest the full history

    POST /simulate, or MCP run_backtest. Runs beyond 29 seconds must stream over the websocket or poll a bkt_ id — see Build and backtest.

  4. 4

    Deploy

    MCP deploy_index with confirm=true. It backfills history and registers the schedule.

Getting holdings to an OMS

A live strategy has to reach a trading system. Two ways, and they suit different setups.

Push. A delivery with trigger.mode: "index_event" and event_type: "weighting" fires the moment the rebalance publishes. payload_type: "changes" sends the adds, drops and weight moves — the deltas, which is what an OMS wants — while weightings sends the full target book. SFTP for counterparties with a file intake, webhook for anything you control.

Pull. GET /query on index-weightings with order=descending&limit=1 returns the current target (on index-holdings, the book held). Use this when your trading system runs its own schedule and would rather ask than be told, or as the reconciliation check against what a delivery sent.

rebalance file to the OMS
{
"trigger": { "mode": "index_event", "event_type": "weighting" },
"payload_type": "changes",
"history": "latest",
"index_ids": ["idx_…"],
"filename_template": "{index_id}_rebalance_{date}.csv",
"channel": "sftp",
"sftp": { "host": "sftp.example.com", "port": 22, "username": "…",
"private_key": "…", "directory": "/incoming/rebalances" }
}

Targets are not orders

The index publishes the portfolio it should hold. Turning that into orders — netting against actual positions, applying lot sizes, splitting across venues, handling a name that is halted — is the OMS's job. Feed it the target and the deltas; do not treat a changes file as an executable order list.