Generate Strategy Code (no training)
generate_strategyGenerate Python strategy code (no training/deploy). Use when the user wants raw code.
Args:
features: NL description of features (e.g. "RSI 14, Bollinger Bands").
signals: NL description of signal logic (e.g. "Buy when RSI < 30").
model: ML model name (default Random Forest).
risk: NL risk rules (e.g. "0.5% stop loss").
description: Optional one-line summary; treated as PRIMARY USER REQUEST.
symbol: Currency pair the code should target. One of: EURUSD, USDJPY,
GBPUSD, USDCHF, USDCAD, AUDUSD, NZDUSD. Default EURUSD.
timeframe: Candle granularity. One of: 1min, 5min, 15min, 1h. Default 15min.
claude_model: "sonnet" (default) or "haiku" (faster, higher daily cap).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | ||
| model | No | Random Forest | |
| symbol | No | ||
| signals | No | ||
| features | No | ||
| timeframe | No | ||
| description | No | ||
| claude_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||