sr_backtest
Backtest a strategy with an S/R config block (read-only simulation).
Runs the existing backtest engine with strategy_type (default "support_resistance": bounce-long off detected support, exit on a support break or resistance-fail; on spot a SHORT signal is exit-to-flat) and merges the validated sr_config into params["sr"]. asset is a token mint; timeframe one of 1m/5m/15m/1h/4h/1d; start_date/end_date ISO-8601. Returns the standard performance metrics plus persisted SUPPORT_RESISTANCE signals carrying zone metadata. Read-only simulation -- no fee, no on-chain action, not financial advice (DYOR).
Workflow: SIMULATE step -- validate an S/R setup on history before risking capital; feeds get_risk_assessment -> sr_configure_strategy. See get_trading_workflow.
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": {
"asset": "<asset>",
"timeframe": "<timeframe>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "sr_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| params | No | ||
| fee_bps | No | ||
| end_date | Yes | ||
| caller_id | No | ||
| sr_config | No | ||
| timeframe | Yes | ||
| start_date | Yes | ||
| slippage_bps | No | ||
| strategy_type | No | support_resistance | |
| slippage_model | No | fixed | |
| wallet_address | No | ||
| initial_capital | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||