strategy_compare
Compare all built-in strategies on one stock's history, ranked by return above buy-and-hold after costs. Identify whether trading adds value over simply owning the stock.
Instructions
Run every built-in strategy over ONE stock's history and rank them — the bars are fetched once for all nine, so this costs the same as a single backtest.
Ranked by return ABOVE buy-and-hold over the same window and costs, not by raw return: over a rising window every long-only strategy shows a profit, and the only question worth asking is whether the trading added anything to owning the stock.
Taking the winner of nine on one window is a SELECTION, not a finding. Run backtest with walk_forward on the winner before believing it.
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": {
"symbol": "<symbol>"
},
"name": "strategy_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| bars | No | Sessions of history (default 500) | |
| from | No | ||
| symbol | Yes | IDX ticker, e.g. BBRI | |
| strategies | No | Which to compare. Default: all nine. | |
| stop_loss_pct | No | Applied to every strategy | |
| initial_capital | No | ||
| take_profit_pct | No |