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.
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 | |||