# Minimum (MIN)

#### Description <a href="#description_120" id="description_120"></a>

Minimum (MIN) outputs the lowest value for a predefined number of periods.

#### Usage <a href="#usage_112" id="usage_112"></a>

```csharp
MIN (int period)
MIN (IDataSeries inSeries, int period)
MIN (int period)[int barsAgo]
MIN (IDataSeries inSeries, int period)[int barsAgo]
```

#### Return value <a href="#return-value_110" id="return-value_110"></a>

**double**

When using this method with an index (e.g. **MIN**(Close, 10)\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_102" id="parameters_102"></a>

inSeries Input data series for the indicator

period Number of bars included in the calculations

#### Visualization <a href="#visualization_109" id="visualization_109"></a>

![Minimum (MIN)](https://agenatrader.github.io/AgenaIndicator-documentation/media/MIN.jpg)

#### Example <a href="#example_106" id="example_106"></a>

```csharp
// Outputs the lowest value for the last 20 periods
Print("The lowest value of the last 20 periods is " + MIN(Low, 20)[0]);
```
