đŸē
/Documentation

Building

Strategy Builder

Last updated March 1, 2026

The Strategy Builder is a full-screen visual workspace powered by Blockly. Blocks connect together like puzzle pieces to define your trading logic: no code required.

The Editor

The editor workspace auto-saves to your browser as you work. When you're ready to apply changes, you Compile, which converts the current workspace into the JavaScript the Runner executes.

Editor overview: full-screen Blockly workspace with toolbox open on the left, strategy blocks in center
  • Pan: Middle-click drag, or hold Space + left-drag.
  • Zoom: Scroll wheel, or use the controls in the bottom-right corner.
  • Center workspace: Double-click an empty area of the canvas.
  • Delete a block: Select it and press Delete/Backspace, or drag it to the trash.
  • Duplicate: Right-click a block → Duplicate.

The toolbox has a Search bar at the top. Type any keyword (e.g. rsi, cross, buy) to filter blocks across all categories instantly.

The Blocks button at the top-left of the canvas opens and closes the toolbox panel. When you click a category inside the toolbox, a flyout of available blocks slides out.

Toolbox Categories

Blocks are organized into categories. Here's what each category contains and when to use it:

CategoryColorContents
TradingBUY, SELL, Take Profit, Stop Loss
Market DataPrice (OHLCV), Candle Patterns, Volume Spike, Price Change %
Lookback / HistoryPrevious value, Highest, Lowest over N bars
Indicators → TrendSMA, EMA
Indicators → MomentumRSI
Indicators → VolatilityATR, Bollinger Bands
Indicators → MACDMACD (line, signal, histogram)
Indicators → VolumeVWAP
Events → CrossCross Up, Cross Down
Events → BreakoutBreakout Up, Breakout Down
Filters → TrendPrice Above MA, Price Below MA, Trend Direction
Filters → RegimeVolatility Regime
Strategy → StateIn Position, Bars Since Entry
Strategy → ControlCooldown Bars
Logicif/else, AND, OR, NOT, comparisons
MathArithmetic, number blocks

Compile & Run

Compiling

Clicking Compile converts your current block workspace into JavaScript code and saves it to your project. The compiled code is what the Runner actually executes. You must compile after every change you want to take effect.

The compile step also extracts which timeframes your strategy uses (e.g. 1m, 4h) from the generated code, so the Runner knows which market data to preload.

Running & Pausing

Clicking Run sets your project status to live. The Runner daemon picks up live projects every few seconds. For each tick it fetches kline data, executes the compiled strategy in a sandboxed environment once per symbol, processes any buy/sell orders via the Paper Broker, and writes results to logs.

Clicking Pause sets the project to paused. The Runner skips it on the next tick. Open positions are not automatically closed when you pause, they remain open until your strategy sells them.

â„šī¸
Execution timeout: Each strategy run has a 5-second timeout per symbol. If your block logic takes longer than that, the run will fail with a timeout error visible in Logs.