Record a setup backtest result
record_backtest_resultSave one backtest result (e.g. from TradingView run-pine-backtest) for step 1 of the user's routine. Pass winRate as a FRACTION 0..1 (TradingView's percent_profitable as-is), profitFactor as a ratio, and netProfitPct / maxDrawdownPct as fractions too. A pair passes when it has >= 20 trades, win rate >= 38% and profit factor >= 1.3. Only record numbers a real backtest returned — never estimates. Requires a personal SocialForex API token. Create one at /mt5 (section "Connect an AI assistant (MCP)") and add it to the MCP client as header Authorization: Bearer sfmcp_....
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>",
"timeframe": "<timeframe>",
"strategyName": "<strategyName>",
"totalTrades": "<totalTrades>",
"winRate": "<winRate>"
},
"name": "record_backtest_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| symbol | Yes | e.g. GBPAUD or OANDA:GBPAUD | |
| rangeTo | No | ||
| winRate | Yes | ||
| rangeFrom | No | ||
| timeframe | Yes | e.g. 1h, 4h, 1D | |
| totalTrades | Yes | ||
| netProfitPct | No | ||
| profitFactor | No | ||
| strategyName | Yes | ||
| maxDrawdownPct | No |