Quickstart
This guide walks you through creating and backtesting your first trading strategy.
Create a Strategy
from conquest import Strategy
strategy = Strategy.create(
name="Simple Mean Reversion",
description="Buy when RSI < 30, sell when RSI > 70",
universe=["SPY", "QQQ"],
timeframe="2020-01-01:2026-01-01"
)
Run the Backtest
results = strategy.backtest()
print(results.summary())
Output:
Strategy: Simple Mean Reversion
Period: 2020-01-01 to 2026-01-01
Total Return: +47.3%
Sharpe Ratio: 1.42
Max Drawdown: -8.7%
Win Rate: 64.2%
Analyze Results
results.plot()
results.export("csv")
Next Steps
- Learn about creating strategies
- Understand backtesting methodology
- Explore option analytics