> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Value

## Definition

The value an optimization would be calculating against when using this Optimization Fitness.

## Property Value

A **double** value.

## Syntax

`Value`

## Examples

```csharp
protected override void OnCalculatePerformanceValue(StrategyBase strategy)
{
     Value = strategy.SystemPerformance.AllTrades.TradesPerformance.Percent.Drawdown;
}
```