Skip to content
INDEPENDENT MARKET RESEARCHSWISS DESIGN · GLOBAL PERSPECTIVE
SWISSINTERACTIVE TRADERSINDEPENDENT RESEARCH
DEVELOPER PORTAL / STRATEGY LANGUAGE V1

Build on a clear contract.

The visual builder and AI architect produce the same inspectable JSON language. Validate a definition here, export it, and use it across the research terminal.

INTERACTIVE CONTRACT CHECK

Rule definition validator

Choose an example or paste your own definition. Validation checks structure, bounds and supported operations; it does not establish that a hypothesis is sensible or profitable.

Open Infinite Lab

The version 1 envelope

FieldTypeMeaning
version1Explicit schema version; future formats cannot silently alter an existing strategy.
name1–100 charactersA human-readable name. Names do not affect calculations.
entry / exitRuleSeparate conditions evaluated using completed bars.
triggeredge | levelEdge requires known false followed by true. Level triggers on every true bar.
functions?FinancialFunction[]Up to 12 named expression definitions, each with at most six parameters. Calls expand validated expressions; recursion and executable source text are rejected.
program?StrategyProgramOptional bounded modules, routing, state transitions, persistent variables and portfolio conditions. Earlier version-1 definitions remain valid without this field.

Composing conditions

Use compare with two expressions and an operator; combine conditions with group using all or any; negate with not. consecutive requires every bar in a trailing window; within requires at least one true bar. sequence requires ordered stages on distinct bars before the final stage. event inspects an attached observation key for arrival, change, positive or negative values; it does not fetch an external event feed.

ExpressionInputsPurpose
numbervalueA finite constant.
fieldfieldOHLCV or candle body/range/wick measures.
metricmetric, field, period, lagA supported rolling or smoothed indicator.
mathop, left, rightAdd, subtract, multiply, divide, minimum, maximum, power or remainder.
rollingop, period, lag, valueRolling mean, sum, highest, lowest, standard deviation, median, percentile rank, z-score or regression slope of a formula.
lagbars, valueRead a formula from an earlier bar.
serieskeyA dated external observation attached to your imported dataset.
unaryop, valueValidated absolute, sign, square-root, logarithmic, exponential and rounding transforms. Invalid numeric domains remain unknown.
timeframetimeframe, valueA formula on completed 1h, 1d, 1w or 1mo buckets. Incomplete future buckets are withheld.
call / parameterfunctionId, args / keyA declared reusable expression and its scoped inputs; no arbitrary code execution.

Periods are 1–250; lags are 0–250. Raw definitions are limited to depth 20 and 6,000 values before schema validation. Expanded function trees have separate depth-24 and 12,000-value bounds. The batch compiler accepts at most 24,000 daily or canonical UTC timestamp bars per study. The classic shared workspace retains its own smaller daily-data limits. The separate partition executor uses bounded retained state and its own validated input envelope; see the methodology for its logical ceilings, tested capacity and storage quotas. Computation limits still apply; complex rules can require smaller windows.

Semantics that matter

Unknown stays unknown

Warm-up, missing observations and division by zero produce unknown values. Negating unknown does not turn it into true. An AND group containing false is false; an OR group containing true is true.

Breakouts use prior ranges

A close above the previous 20-bar high uses highest on high, period 20, lag 1. Including the current high changes the condition and can make the intended rule impossible.

Know the exact indicator

ATR is a simple average of true ranges. Slope is endpoint change per bar, not regression. Relative volume compares the current selected field with a trailing average; lag 1 excludes the current bar from that average.

Signals precede fills

The rule sees completed-bar data. Bot fills occur on a later open with the selected execution delay, fees and slippage. Alert event studies and bot trades are distinct outputs.

Full execution methodology

Data interchange

Daily prices use date,open,high,low,close,volume with chronological, unique dates. Check that corporate-action adjustments are consistent across all four prices. Additional observations use:

date,key,value
2026-01-05,research_score,0.72
2026-01-06,research_score,0.64

Observation dates must already exist in the price file and represent when the observation was knowable. Missing dates are not forward-filled. Event CSV files use title,date,available_date,kind,source_url; quoted fields are supported.

Release 06 contracts

The Visual Builder compiles a typed acyclic graph into the same version-1 definition envelope. Calendar expressions expose UTC day-of-week, day-of-month, month, hour and minute-of-day. Pair statistics accept correlation, covariance or beta over bounded trailing windows. Modules use validated acyclic dependencies, and state updates become visible from the next completed bar. Unknown inputs remain unknown. Research Scientist generates a conservative subset of this language; unsupported specialised models remain conceptual. Its account-scoped Builder handoff requires Accept or Discard and preserves the previous canvas draft.

The Historical Vault imports date or timezone-qualified timestamp OHLCV records, optional symbols, and separate corporate actions. Availability-aware observations use observed_at,available_at,key,value,source_url; attachment is strictly after both timestamps. A rights label is an importer declaration, not a license grant.

Authenticated private interfaces include GET/POST /_api/vault, POST /_api/vault/noaa, POST /_api/hypothesis, GET/POST /_api/connections, GET /_api/scientist/conversations, POST /_api/scientist/conversation, and the exchange/research-job interfaces used by their respective workspaces. Live broker execution and public developer API keys are not enabled. Protected rules are resolved server-side and must never be included in public job responses.

Application endpoints

These are the app’s own request interfaces. External API keys, paid API access, webhooks for broker execution and a third-party service guarantee are not enabled.

EndpointAccessCurrent behaviour
GET /_api/company-intelligence?cik=…Public research requestSelected SEC filings and company facts. Shared source cache and access throttle.
GET /_api/sec-filings?query=…Public research requestIssuer Form 4 lookup. Use Insider Lens for the supported request flow.
POST /_api/architectSigned-in sessionJSON with prompt and available seriesKeys. Returns a reviewable draft or clarification questions. Shared daily quota applies.
GET /_api/research-librarySigned-in sessionThe current user’s saved definitions and plan limit.
POST /_api/research-librarySigned-in sessionValidated private definition save/delete actions, scoped to the authenticated user.

Never embed credentials in a strategy definition. The language contains data and bounded operations; it does not execute arbitrary JavaScript, shell commands or network calls.