DSL Inputs¶
Inputs declare configurable script constants.
Syntax¶
input name = value
Supported values:
- number;
- string.
Examples¶
input length = 20
input volume = 0.01
input symbol = "BTCUSD"
Runtime Inputs¶
| Input | Script kind | Description |
|---|---|---|
timeFrame |
robot | Candle frame in seconds |
historyCount |
robot | Number of historical candles to load |
volume |
robot | Default trade volume |
dryRun |
robot | 1 simulates trading, 0 sends real trade requests |
maxPositions |
robot | Maximum open positions per symbol |
cooldownSeconds |
robot | Minimum delay between open trade actions |
maxActionsPerEvent |
robot | Maximum number of trade actions processed from one event |
In the current MVP these values are configured directly as STS Script input declarations. This keeps the script source as the single source of truth and does not require extra backend fields.
On Run, the platform parses the script, validates the AST, and extracts input values from the AST. Runtime does not use ad-hoc source string matching for these settings.
Inputs are immutable. Use var for values that must change while the script is running.