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
| Need | Start here |
|---|---|
| A complete worked example | Practical tutorials |
| Apps, servers, and workspaces | FAQs |
| OR logic, sessions, sizing, risk | Guides |
| Pine inputs, signals, and native strategy limits | Pine Script |
| Current SQL-inspired grammar | SQX |
| Historical versus running or broker behavior | Capability matrix |
| A term used across the docs | Glossary |
| Model parameters and verified usage caveats | Reference |
| A source-to-outcome investigation | Unexpected-trade tutorial |
Configure your workspace
Start in FAQs: what a workspace is, find its ID, or change the default workspace.