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

# PerformanceUnit

## Definition

Enumeration defining each type of **PerformanceUnit** calculated by **NinjaTrader**. Used to store a value for this performance type in **PerformanceMetrics**.

## Syntax

`PerformanceUnit.Currency`

`PerformanceUnit.Percent`

`PerformanceUnit.Pips`

`PerformanceUnit.Points`

`PerformanceUnit.Ticks`

## Examples

```csharp
//Prints unrealized PnL in ticks at the close of each bar
Print(Position.GetUnrealizedProfitLoss(PerformanceUnit.Ticks, Close[0]));
```