Skip to content

Strategy anatomy

Strategy anatomy

A strategy revision is the saved version of a strategy that Structure can validate, compile, evaluate, and run through live deployments, paper deployments, and backtest jobs. This section explains the parts of a revision and how they work together.

The model is intentionally explicit. A revision separates calculation, state, intent, persistence, reuse, validation, and runtime preparation so that users can inspect what the strategy is doing and why.

At a high level, a revision follows this path:

  1. Source events act as evaluation triggers for the graph paths inside their source-event containers.
  2. The strategy graph computes typed values from event data, other available inputs, constants, memory reads, and derived logic.
  3. Labels expose named typed values for state transitions and strategy actions.
  4. The state machine decides whether the strategy stays in its current state or transitions to another state.
  5. Strategy actions describe what each state should express or do. Today, the public strategy action type is the target-position action.
  6. Memory slots preserve selected values across evaluations.
  7. Groups package reusable graph logic behind typed inputs and outputs.
  8. Validation and compilation turn a valid revision into a stable runtime artifact.

That structure is what lets the same revision be used across live deployments, paper deployments, and backtest jobs while keeping the selected revision, Strategy Variable values, venue, instrument, and run context traceable.

A revision contains the strategy definition that Structure evaluates:

Strategy Variables are different. They are run-provided values for exposed node parameters. A live deployment, paper deployment, or backtest job can provide Strategy Variable values without changing the saved revision.

Today, Structure’s public strategy action type is the target-position action. Strategies emit target positions, and the Target Position Executor manages order activity to move account positions toward those targets.

Direct order actions are roadmap functionality. When introduced, they will let strategies place, cancel, and modify orders directly for strategies that need order-level control.