# TesterStatistics

This method retrieves various statistical values about trading performance.

## Syntax

```typescript
TesterStatistics(statistic_id: ENUM_STATISTICS): number
```

## Parameters

* `statistic_id`: `ENUM_STATISTICS` - The identifier of the statistic value to return

## Available Statistics

See [Statistics Constants](https://fto-2.gitbook.io/fto-strategies-docs/strategies/constants/statistics-constants) for a complete list of available statistics identifiers.

## Return Value

Returns a `number` representing the requested statistical value.

## Description

The `TesterStatistics` method provides access to various trading statistics and performance metrics. It takes a statistic identifier as input and returns the corresponding value.

## Example

```typescript
// Get the net profit
const netProfit = this.api.TesterStatistics(ENUM_STATISTICS.STAT_NET_PROFIT)

// Get the total number of trades
const totalTrades = this.api.TesterStatistics(ENUM_STATISTICS.STAT_TOTAL_TRADES)

// Get the profitability factor
const profitFactor = this.api.TesterStatistics(ENUM_STATISTICS.STAT_PROFITABILITY_FACTOR)
```
