Show Backtest Chart (equity + trades)
get_model_chartA trained model's backtest: trades, stats and the data for a cumulative-return chart.
Takes a model's `stem` (from `get_deploy_result`, `one_shot` or `list_models`)
and returns how it traded. In clients that render the openai/outputTemplate
widget (ChatGPT) it shows an interactive chart; elsewhere the structured
output carries the trades and stats a client can draw as a line chart of
the cumulative return and a trade table.
Args:
stem: The model stem (e.g. "14_EURUSD_15min_Model_24") from `list_models` / `one_shot`.
Returns:
dict with: ok, stem, symbol, timeframe, stats {ret, wr, pf, n, mdd, sharpe},
and trades [{type, entry_time, exit_time, entry_price, exit_price, pnl,
pnl_pct, exit_reason, period}] (most recent ~200). exit_reason is one of
TP / SL / close_only / signal / end. ret/mdd/wr are fractions; pnl_pct is percent.
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": {
"stem": "<stem>"
},
"name": "get_model_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stem | Yes | A model's stem from list_models, one_shot or get_deploy_result, e.g. 14_EURUSD_15min_Model_24. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||