# 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]);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/moving-averages/zlema-zero-lag-exponential-moving-average.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
