---
title: "Optimization"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/optimization
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/optimization.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/30%20Optimization
modified: 2026-11-24
index: https://www.quantconnect.com/llms.txt
---

# Optimization

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

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

## Pages in This Section

- [Parameters](https://www.quantconnect.com/docs/v2/writing-algorithms/optimization/parameters.md): Parameters are project variables that your algorithm uses to define the value of internal variables like the length of lookback windows.
- [Walk Forward Optimization](https://www.quantconnect.com/docs/v2/writing-algorithms/optimization/walk-forward-optimization.md)
