Backtest a trading rule on Binance history
backtest_ruleReplays a rule over Binance's real closed-candle history with the live engine's own decisions: fees each way, stop-loss, take-profit, leverage, daily limits. Returns the result against the stake, just holding, win rate, worst drop, fees and the latest trades with the engine's reason for each. Fills at candle close; slippage and funding are not modelled. A Jev check (confirm) is skipped here, so this shows every buy Jev would be asked about. Past results do not predict future ones.
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": {
"rule": "<rule>"
},
"name": "backtest_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | A trading rule in Dolphin's rule language - the same one the build chat writes and the live engine runs. | |
| candles | No | How much history, 100-1500 candles. Default 1000. |