Installation Guide¶
Get QuantSim up and running on your system in just a few minutes.
Requirements¶
- Python: 3.9 or higher
- Operating System: Windows, macOS, or Linux
- Memory: At least 4GB RAM recommended for backtesting
- Storage: 1GB free space for data and results
Installation Options¶
Option 1: Core Package (Recommended)¶
For most users, the core package provides all essential features:
This includes: - Event-driven backtesting engine - Built-in strategies (SMA, Momentum, Mean Reversion) - Yahoo Finance data integration - CSV data support - Performance analytics and reporting
Option 2: With Machine Learning¶
If you plan to use ML-enhanced strategies:
Additional features: - Scikit-learn integration - TensorFlow support - ML-based strategy examples - Feature engineering utilities
Option 3: With Pairs Trading¶
For statistical arbitrage and pairs trading:
Additional features: - Cointegration testing - Pairs trading strategies - Statistical analysis tools
Option 4: Full Installation¶
Get all features in one package:
Option 5: Development Installation¶
For contributors or advanced users:
Verification¶
Verify your installation:
Troubleshooting¶
Common Issues¶
ImportError: No module named 'statsmodels'
If you're using pairs trading strategies, install the pairs extra:
SSL Certificate errors
For corporate networks:
Platform-Specific Notes¶
- Ensure Python is added to PATH
- Consider using Anaconda for easier package management
- Visual C++ build tools may be required for some dependencies
- Xcode command line tools may be required
- Consider using Homebrew to install Python
Updating¶
Keep QuantSim up to date:
What's Next?¶
Once installed, continue with:
- Quick Start Guide - Build your first strategy
- SMA Crossover Example - See a real strategy in action
- Contributing - Help improve QuantSim