Stoqey documentation

Write the main algorithm in SJS, test it in Agent Lab, and run a verified app.

Use SJS for the main strategy: inputs, signals, state, entries, and exits. Add Pine calculations or SQX rules when useful, and use L3 for advanced coordination and policies.

Start with the engine

Follow SJS → market data → orders and positions → backtesting.

The engine overview shows how these pieces run together. The first strategy tutorial provides complete source and an entry/exit fixture.

Develop with Agent Lab

Follow create an experiment → run and investigate → annotate → compare → publish.

Publishing saves an app. Use Apps & Running Sessions to review launch configuration, execution environment, monitoring, and lifecycle controls.

Add advanced capabilities

Follow indicators and algorithms → Advanced L3 → policies.

Keep most strategy code in SJS. Policies are available in L3; the ordinary SJS scope does not expose the policy module.

Find the right guide or reference

NeedStart here
A complete worked examplePractical tutorials
Apps, servers, and workspacesFAQs
OR logic, sessions, sizing, riskGuides
Pine inputs, signals, and native strategy limitsPine Script
Current SQL-inspired grammarSQX
Historical versus running or broker behaviorCapability matrix
A term used across the docsGlossary
Model parameters and verified usage caveatsReference
A source-to-outcome investigationUnexpected-trade tutorial

Configure your workspace

Start in FAQs: what a workspace is, find its ID, or change the default workspace.

On this page