formula_evaluate
Evaluate a Basis formula expression over a loaded window. Functions are listed by catalog_search kind=formula; series named open, high, low, close, volume, returns and more. Multi-line with let bindings is supported; the last expression is the result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "formula_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Reuse a handle from market_candles instead of loading. | |
| market | No | Default: the chart. | |
| reduce | No | ||
| symbol | No | Default: the chart. | |
| exchange | No | ||
| timeframe | No | e.g. 1h, 4h. Default: the chart. | |
| expression | Yes | ||
| parameters | No | ||
| includeForming | No |