strategy_create
Create algorithmic trading strategies with iterative refinement for the Jesse framework. Define parameters, indicators, and risk settings to generate ready-to-backtest code.
Instructions
Create strategy with iterative refinement (Ralph Wiggum loop).
If async_mode=True, creates a Job and returns job_id immediately. Otherwise runs synchronously with progress logging.
Args: name: Strategy name (used as class name) description: Human-readable description of the strategy indicators: List of technical indicators to use (optional) strategy_type: Type classification (default: trend_following) risk_per_trade: Risk percentage per trade (default: 0.02 = 2%) timeframe: Primary trading timeframe (default: 1h) max_iterations: Maximum refinement iterations (default: 5) overwrite: Overwrite existing strategy (default: False) async_mode: Run asynchronously (default: False) skip_backtest: Skip dry-run backtest validation (default: False)
Returns: Dict with status, name, iterations, validation_history, path, code, ready_for_backtest
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | Yes | ||
| indicators | No | ||
| strategy_type | No | trend_following | |
| risk_per_trade | No | ||
| timeframe | No | 1h | |
| max_iterations | No | ||
| overwrite | No | ||
| async_mode | No | ||
| skip_backtest | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||