backtest_my_signals
Answers "what would have happened to MY OWN past signals with different settings?" - for example "5x instead of 10x" or "a 2% stop instead of 1%".
It replays the signals YOU actually received (your Telegram channels and your
TradingView webhooks) against real historical 1-minute price data, twice: once with
each signal's original stop-loss, take-profit and leverage, and once with the
settings you asked for. The difference is reported under `comparison`.
This runs in the background because a full replay can take several minutes. The call
returns a `job_ref` immediately; the result is available from `get_job_status(job_ref)`.
What the result always reports:
- `coverage`: how many of their signals could actually be simulated. If some had no
historical price data or no stop-loss, the numbers describe only the subset.
- `assumptions`: fees, slippage, partial-take-profit behaviour and what is NOT
modelled (funding fees). Never present the PnL without these.
- Past performance does not guarantee future results. This is not investment advice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "backtest_my_signals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days (1-90). Only your own signals received inside this window are replayed. | |
| sl_pct | No | Override the stop-loss distance, in percent from entry (e.g. 2 means 2%). Leave empty to use each signal's own stop-loss. | |
| source | No | Which of your signal sources to replay: 'all' (default), 'telegram' for your connected Telegram channels, or 'tradingview' for your webhook strategies. | all |
| tp_pct | No | Override the take-profit distance, in percent from entry. Leave empty to use each signal's own take-profit. | |
| symbols | No | Optional list of symbols to restrict the run to, e.g. ['BTCUSDT','SOLUSDT']. If omitted, every symbol in your signal history is included. | |
| leverage | No | Override the leverage for every signal (1-125). Leave empty to use whatever leverage each signal originally carried. The exchange's own limit still applies to real orders. | |
| margin_usd | No | Margin in USD to assume per trade (default 100). This is the collateral, not the position size: position size = margin x leverage. | |
| partial_tp | No | If true, model AlgoVesta's partial take-profit behaviour: close half the position at half the take-profit distance and move the stop to break-even. Default false (plain stop-loss / take-profit). | |
| taker_fee_bps | No | Taker fee in basis points applied on entry AND exit (default 5 = 0.05%, the public Binance futures taker tier). Your own VIP tier is usually lower. | |
| max_hold_minutes | No | Maximum time to hold a position, in minutes, before it is closed at market (default 1440 = 24 hours). |