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

# Risk Management

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

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

## Pages in This Section

- [Key Concepts](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/risk-management/key-concepts.md): The Risk Management model seeks to manage risk on the PortfolioTarget collection it receives from the PCM before they reach the Execution model.
- [Supported Models](https://www.quantconnect.com/docs/v2/writing-algorithms/algorithm-framework/risk-management/supported-models.md): This page describes the pre-built Risk Management models in LEAN. If none of these models perform how you want, create a custom Risk Management model.
