Studio
Workflow Editor
Build strategies visually with the drag-and-drop workflow editor.
The Workflow Editor is the heart of strategy building in AlgoHive. It provides a visual, node-based interface for creating trading logic.
Node Types
Data Source Nodes
Data sources bring market data into your strategy:
- Exchange — Spot market data (open, high, low, close, volume)
- Perpetual — Futures data including funding rate, open interest, CVD
- Prediction — Prediction market odds (yes_odds, no_odds, volume)
- Custom — Your own data sources via API
Each data source has an alias (like btc) you use to reference it in expressions.
Analysis Nodes
Analysis blocks process data and produce outputs:
| Block Type | Description | Example |
|---|---|---|
| Value | Constant value | 14 |
| Function | Single indicator | RSI(btc.close, 14) |
| Compare | Comparison | rsi > 70 |
| Cross | Crossover detection | CROSS_ABOVE(fast, slow) |
| Logic | Combine signals | signal1 AND signal2 |
| Advanced | Multiple outputs | Multiple expressions |
| Code | Custom JS/Python | Complex logic |
Entry Nodes
Entry rules define when to open positions:
- Direction — Long, Short, Yes, or No (for predictions)
- Market — Which data source to trade
- When — Signal condition to trigger entry
- Leverage — For perpetual markets
Manage Nodes
Manage rules control open positions:
| Rule Type | Description |
|---|---|
| Stop Loss | Exit at loss threshold |
| Take Profit | Exit at profit target |
| Trailing Stop | Dynamic stop that follows price |
| Exit | Exit on signal condition |
| Move Stop | Adjust stop loss level |
| Add | Add to position on signal |
Connections
Nodes connect via edges that represent data flow:
- Cyan edges — Numeric values (prices, indicators)
- Yellow edges — Boolean signals (true/false conditions)
- Green edges — Market connections (for trading)
- Orange edges — Entry targeting (manage rules)
Making Connections
- Click on an output handle (right side of a node)
- Drag to an input handle (left side of another node)
- Release to create the connection
Or use expressions to reference outputs directly: analysis_block.output_name
Toolbar
The top toolbar provides:
- Add Data Source — Create new data source
- Add Analysis — Add analysis block
- Add Entry — Create entry rule
- Add Manage — Add risk management rule
- Undo/Redo — Revert or restore changes
- Auto Layout — Organize nodes automatically
- Zoom — Fit to view, zoom in/out
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Z | Undo |
Cmd/Ctrl + Shift + Z | Redo |
Cmd/Ctrl + C | Copy selected |
Cmd/Ctrl + V | Paste |
Delete | Delete selected |
Cmd/Ctrl + A | Select all |
Validation
The editor validates your strategy in real-time:
- Errors (red) — Must fix before deployment
- Warnings (yellow) — Potential issues
- Info (blue) — Suggestions
Hover over warning icons on nodes to see details.
Tips
- Use descriptive aliases for data sources (
btc,eth, notdata1) - Name your analysis blocks clearly (
trend_signals,entry_logic) - Connect manage rules to entries using the targeting edges
- Use the AI assistant for complex expression help