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

# Format()

## Definition

This method allows you to customize the rendering of the performance value on the Summary grid.

## Syntax

`public override string Format(object value, Cbi.PerformanceUnit unit, string propertyName)`

## Examples

```csharp
public override string Format(object value, Cbi.PerformanceUnit unit, string propertyName)
{
    double[] tmp = value as double[];
    if (tmp != null && tmp.Length == 5)
        switch (unit)
        {
          case Cbi.PerformanceUnit.Currency : return Core.Globals.FormatCurrency(tmp[0], denomination);
          case Cbi.PerformanceUnit.Percent   : return tmp[1].ToString("P");
          case Cbi.PerformanceUnit.Pips : return Math.Round(tmp[2]).ToString(Core.Globals.GeneralOptions.CurrentCulture);
          case Cbi.PerformanceUnit.Points : return Math.Round(tmp[3]).ToString(Core.Globals.GeneralOptions.CurrentCulture);
          case Cbi.PerformanceUnit.Ticks : return Math.Round(tmp[4]).ToString(Core.Globals.GeneralOptions.CurrentCulture);
        }
    return value.ToString();
}
```