# ZLEMA - Zero Lag Exponential Moving Average

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

The Zero Lag Exponential Moving Average is another variation of the EMA. Zero lag in this context signifies no delay, which means that the indicator adapts to the price changes more closely. The indicator does so by removing older price data and decreasing the cumulative effect in order to minimize the lag.

#### Further information <a href="#further-information_29" id="further-information_29"></a>

FMLabs: <http://www.fmlabs.com/reference/default.htm?url=ZeroLagExpMA.htm>

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

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

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

**double**

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

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

inSeries Input data series for the indicator

period Number of bars included in the calculations

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

![ZLEMA - Zero Lag Exponential Moving Average](https://agenatrader.github.io/AgenaIndicator-documentation/media/ZLEMA.jpg)

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

```csharp
//Output for the value of the Zero Lag Exponential Moving Average
Print("The current ZLEMA value is " + ZLEMA(14)[0]);
```
