---
title: "Algorithm Framework"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/34%20Algorithm%20Framework
modified: 2026-11-22
index: https://www.quantconnect.com/llms.txt
---

# Algorithm Framework

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Algorithm Framework

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Pages in This Section

- [Overview](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/overview.md): The Algorithm Framework is our attempt to provide a well-defined algorithm structure, encouraging good design and making your work more reusable.
- [Universe Selection](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/universe-selection/key-concepts.md)
- [Alpha](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/alpha/key-concepts.md)
- [Portfolio Construction](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/portfolio-construction/key-concepts.md)
- [Risk Management](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/risk-management/key-concepts.md)
- [Execution](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/execution/key-concepts.md)
- [Hybrid Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/hybrid-algorithms.md): A hybrid algorithm is an algorithm with less than 5 framework models. An algorithm that uses all of the default models isn't a hybrid algorithm.
- [Insight Manager](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/insight-manager.md): The InsightManager tracks all of the Insight objects by storing insights in an internal dictionary which is accessible anywhere in the algorithm.
