register_strategy
Register a custom strategy spec with entry and exit rules, validated before enabling backtesting on AlgoChains.
Instructions
Register a custom strategy spec JSON with the AlgoChains platform. The spec must contain entry_rules and exit_rules. Once registered, the strategy can be backtested via run_backtest(strategy_id=...). Validates the spec file before registering.
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": {
"name": "<name>",
"asset_class": "<asset_class>",
"timeframe": "<timeframe>",
"symbols": "<symbols>",
"spec_path": "<spec_path>"
},
"name": "register_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable strategy name. | |
| author | No | ||
| symbols | Yes | List of ticker symbols this strategy trades. | |
| spec_path | Yes | Absolute path to strategy spec JSON file. | |
| timeframe | Yes | ||
| asset_class | Yes | ||
| description | No |