Show Backtest Chart (equity + trades)
get_model_chartVisualize a trained model's backtest — a cumulative-return chart + trade log + stats.
Use after `one_shot` / `list_models` with the model's `stem` to SHOW the user how it
traded (the "is it actually any good" view). In ChatGPT this renders an interactive
widget. In Claude, render an interactive **artifact** from this tool's structured
output: a line chart of the cumulative return plus a table of the trades.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stem | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||