> 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.

# Optimization Fitness

Custom Optimization Fitnesses can be used when optimizing to help you choose custom metrics your Strategy can be measured against. The methods and properties covered in this section are unique to custom Optimization Fitness development.

## In this section

| Name                                                                                                                | Description                                                                                  |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [OnCalculatePerformanceValue()](/developer/desktop-sdk/references/optimization-fitness/oncalculateperformancevalue) | This method calculates the value for the Optimization Fitness.                               |
| [Value](/developer/desktop-sdk/references/optimization-fitness/value)                                               | The value an optimization would be calculating against when using this Optimization Fitness. |