Back to MCP catalog
builder_compile

Validate and freeze the strategy into a revision, ready to backtest.

Area

Strategy Builder

Group

Compile

Access

Write

Risk

May change server state

Details

Full description

Validate then freeze the strategy — call when ready to backtest, after all entries/exits/gates are attached and sizing/risk are configured.

Validates completeness first. Bidirectional strategies may contain one long and one short entry group and must use flat-only single-position market execution. If validation has errors it raises VALIDATION_ERROR with the specific problems and does not create a revision — fix the issues and call again. Warnings (e.g. no exit attached) do not block compilation and are returned in the result.

The returned entry_behavior makes reversal semantics explicit: same-bar reversal is disabled. An opposite signal on an exit bar cannot enter; its complete group must fire again on a later bar while flat. Directional exits expose applies_to; an exit applying to both sides reports [long, short].

Returns a blueprint and revision_id; the next call is run_backtest(strategy_id=...), which uses the latest revision. Safe to call repeatedly; each call snapshots the current state into a new revision.

Capabilities

Bounded options and operating modes surfaced above the full JSON schema.

No bounded capability options are declared for this tool.

Required Inputs

strategy_idstringStrategy ID to compile

Optional Inputs

None.
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.