dwlf_evaluate_custom_event
Run an on-demand evaluation of a custom event and backfill the needed history so backtests and event queries include fires from the full date range you specify.
Instructions
⚠️ Trigger an on-demand evaluation run for a specific custom event. This is the workflow step BETWEEN activating symbols and querying fires — without it, the custom event only evaluates on the daily cron and historical data is not backfilled until then. Returns { requestId, status: "pending" } — poll dwlf_get_evaluation_status(requestId) until status is "completed", then query fires via dwlf_get_events(type: "custom_event"). Consumes one EVALUATION quota. IMPORTANT: by default only the most recent ~400 candles (~14 months of daily data) are backfilled; older history produces NO fires and any backtest spanning it silently sees zero entries before that window. To backfill the full history a backtest needs, pass lookbackDays covering the whole backtest range (e.g. 2200 for a ~5-6yr window).
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": {
"eventId": "<eventId>"
},
"name": "dwlf_evaluate_custom_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventId | Yes | Custom event ID to evaluate | |
| lookbackDays | No | How many days of history to (re)evaluate, overriding the default ~400-candle (~14-month) backfill window. Set this to at least the span of any backtest that gates on this event (e.g. 2200 ≈ 6 years) or its early period will have zero fires. Larger-than-history values are safe — evaluation just starts from the earliest available candle. | |
| idempotencyKey | No | Optional client-supplied idempotency key — if a request with this key already exists for this account, the existing requestId is returned instead of creating a new one |