backtest_strategy
Perform a full strategy backtest over a historical period (Walk-forward analysis). Use this for testing general rules or long-term performance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| f | Yes | Forecast horizon | |
| q | Yes | Query length | |
| step | No | Simulation step in bars | |
| topK | No | Number of nearest neighbours | |
| endTs | No | End timestamp for simulation | |
| feePct | No | Per-side fee percentage | |
| symbol | Yes | Ticker symbol | |
| maxBars | No | Maximum recent bars to load for the backtest | |
| minProb | No | Directional probability threshold | |
| startTs | No | Start timestamp for simulation | |
| interval | Yes | Timeframe | |
| token_id | No | Optional Manus access token. Paid tools use tokenized service access, not a monthly subscription: when token_id is omitted the server returns payment_required with a Solana Pay invoice, and after payment you retry with the same token while the server uses Manus token/resolve to recover pending access. | |
| direction | No | Allowed direction: long, short, or both | |
| minAvgSim | No | Minimum average similarity required to trade | |
| onlySignals | No | Return only non-neutral decisions | |
| slippagePct | No | Per-side slippage percentage | |
| includeStats | No | ||
| embeddingMode | No | Pattern embedding mode for ANN retrieval |