Tutorials#
This section is a hands-on guide to QF-Lib. Each tutorial is self-contained and
includes runnable code samples based on the demo_scripts folder in the repository.
Suggested order for new users
How to backtest your strategy - implement and run your first strategy.
Create an Alpha Model based strategy - use the Alpha Model abstraction.
Customize your backtest - add commissions and slippage.
Analysing Backtest Results - read tearsheets and trade statistics.
Working with Data Providers - connect data providers and configure settings.
Portfolio Construction - optimise portfolio weights.
The remaining tutorials cover specialised topics (fast parameter testing, plotting, and short how-to recipes).
Backtesting#
Data and portfolio#
Visualisation#
Architecture reference#
These pages explain how the backtester is structured. They complement the API reference.