Strategy Evolution
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ Generate │ ──▶ │ Backtest │ ──▶ │ Analyze │ ──▶ │ Feedback │
└──────────┘ └──────────┘ └──────────┘ └─────┬────┘
▲ │
└──────────────────────────────────────────────────┘Quick Usage
import vibetrading
result = vibetrading.evolve(
"BTC momentum strategy with RSI and SMA crossover, 3x leverage",
iterations=3,
model="gpt-4o",
interval="1h",
)
print(f"Best score: {result.best_score}/10")
print(f"Improved: {result.improved}")
print(result.best_code)How It Works
EvolutionResult
EvolutionResultField
Type
Description
Properties
EvolutionStep
EvolutionStepField
Type
Description
Parameters
Tracking Progress with Callbacks
Using StrategyEvolver Directly
StrategyEvolver DirectlyPre-loading Data
Last updated
