This post focuses on customizable Zero Lag Exponential Moving Average (ZLEMA) factory scans, which can be edited, modified, or rewritten and then scanned using ChartAlert’s native stock screener or technical analysis scanner, namely the Basic Scanner and Advanced Scanner.

**Display Zero Lag Exponential Moving Average (ZLEMA) Values**

Tags: zero lag ema strategy, zero lag exponential moving average formula, zero lag exponential moving average zlema, zero lag moving average, zero lag exponential moving average, zero lag exponential moving average screener, zero lag exponential moving average strategy

```
List symbols
Add Column Zero Lag Exponential Moving Average(14) as ZLEMA chart
Apply to NSE
```

This scan calculates and displays the 14-period Zero Lag Exponential Moving Average (ZLEMA) values for all symbols listed on the National Stock Exchange (NSE).

**OPTION 1**

By default, the ZLEMA is calculated based on the “Close” price. However, similar to other types of Moving Averages, the ZLEMA can be calculated using any other parameter. An example is provided below, demonstrating how the ZLEMA is calculated using the 21-period Relative Strength Index (RSI).

```
List symbols
Add Column ZLEMA(14) as ZLEMA_Close chart
Add Column ZLEMA(14,RSI(21)) as ZLEMA_RSI(14) chart(panel=price,c=blue)
Apply to NSE
```

**Zero Lag EMA Bullish Crossover**

**Zero Lag EMA Bullish Crossover**Tags: zero lag exponential moving average bullish crossover screener, zero lag exponential moving average crossover scanner, zero lag exponential moving average crossover screener, zero lag exponential moving average crossover stocks

```
List symbols where ZLEMA(14) crossed above ZLEMA(21) after remaining below for 3 bars
Add Column ZLEMA(14) as ZLEMA14 chart(c=red)
Add Column ZLEMA(21) as ZLEMA21 chart(c=blue)
Apply to NSE
```

This scan is designed to identify NSE symbols that meet specific criteria involving two types of moving averages. The first moving average is the 14-period Zero Lag Exponential Moving Average (fast), while the second one is the 21-period Zero Lag Exponential Moving Average (slow). The scan aims to find instances where the fast moving average has recently crossed above the slow moving average, after having been below it for 3 consecutive periods.

**OPTION 1**

To modify the scan and focus on bullish crossovers, we can introduce a horizontal shift of 5 bars for both moving averages. This means that we will be looking for situations where the fast and slow moving averages cross each other after a 5-bar delay in their original positions.

```
List symbols where ZLEMA(14,Close,5,0) crossed above ZLEMA(21,Close,5,0) after remaining below for 3 bars
Add Column ZLEMA(14,Close,5,0) as ZLEMA14 chart(c=red)
Add Column ZLEMA(21,Close,5,0) as ZLEMA21 chart(c=blue)
Apply to NSE
```

**Zero Lag EMA Bearish Crossover**

**Zero Lag EMA Bearish Crossover**Tags: zero lag exponential moving average bearish crossover screener, zero lag exponential moving average crossover scanner, zero lag exponential moving average crossover screener, zero lag exponential moving average crossover stocks

```
List symbols where ZLEMA(14) crossed below ZLEMA(21) after remaining above for 3 bars
Add Column ZLEMA(14) as ZLEMA14 chart(c=red)
Add Column ZLEMA(21) as ZLEMA21 chart(c=blue)
Apply to NSE
```

This scan aims to identify NSE symbols where the 14-period Zero Lag Exponential Moving Average (fast) crossed below the 21-period Zero Lag Exponential Moving Average (slow) after having been above it for 3 bars.

**OPTION 1**

Modify the scan to search for a bearish crossover, where both the moving averages have been shifted horizontally by 5 bars.

```
List symbols where ZLEMA(14,Close,5,0) crossed below ZLEMA(21,Close,5,0) after remaining above for 3 bars
Add Column ZLEMA(14,Close,5,0) as ZLEMA14 chart(c=red)
Add Column ZLEMA(21,Close,5,0) as ZLEMA21 chart(c=blue)
Apply to NSE
```

**Price Zero Lag EMA Bullish Crossover**

**Price Zero Lag EMA Bullish Crossover**Tags: price zero lag exponential moving average bullish crossover

```
List symbols where Close crossed above ZLEMA(14) after remaining below for 3 bars
Add Column ZLEMA(14) as ZLEMA14 chart
Add Column CHGRs(Close,ZLEMA(14)) as DiffRs
Add Column CHG%(Close,ZLEMA(14)) as Diff%
Apply to NSE
```

This scan is designed to identify NSE symbols that exhibit a specific pattern. It looks for instances where the closing price has recently crossed above its 14-period Zero Lag Exponential Moving Average (ZLEMA) after having remained below it for 3 consecutive periods. Additionally, the scan displays the ZLEMA(14) values and calculates the difference between the closing price and ZLEMA(14) in both Rupees and percentage.

**OPTION 1**

To modify the aforementioned scan, we will adjust the criteria to identify a bullish crossover occurring above the 14-period ZLEMA. This crossover will be detected when the ZLEMA has been shifted horizontally by 5 bars and vertically by 2%.

```
List symbols where Close crossed above ZLEMA(14,Close,5,2) after remaining below for 3 bars
Add Column ZLEMA(14,Close,5,2) as EMA50 chart
Add Column CHGRs(Close,ZLEMA(14,Close,5,2)) as DiffRs
Add Column CHG%(Close,ZLEMA(14,Close,5,2)) as Diff%
Apply to NSE
```

**Price Zero Lag EMA Bullish Crossover**

**Price Zero Lag EMA Bullish Crossover**Tags: price zero lag exponential moving average bullish crossover

```
List symbols where Close crossed below ZLEMA(14) after remaining above for 3 bars
Add Column ZLEMA(14) as ZLEMA14 chart
Add Column CHGRs(Close,ZLEMA(14)) as DiffRs
Add Column CHG%(Close,ZLEMA(14)) as Diff%
Apply to NSE
```

This scan examines NSE symbols to identify situations where the closing price has recently crossed below a 14-period Zero Lag Exponential Moving Average (ZLEMA) after having consistently been above it for 3 periods. Additionally, the scan displays the values of ZLEMA(14) and calculates the difference between the closing price and ZLEMA(14) in terms of Indian Rupees (₹) and percentage (%).

**OPTION 1**

Modify the aforementioned scan to identify a bullish crossover above a 14-period ZLEMA that has been shifted horizontally by 5 periods and vertically by 2 percent.

```
List symbols where Close crossed below ZLEMA(14,Close,5,2) after remaining above for 3 bars
Add Column ZLEMA(14,Close,5,2) as ZLEMA14 chart
Add Column CHGRs(Close,ZLEMA(14,Close,5,2)) as DiffRs
Add Column CHG%(Close,ZLEMA(14,Close,5,2)) as Diff%
Apply to NSE
```

For comprehensive insights into the Zero Lag Exponential Moving Average (ZLEMA), including its computation methodology, how to use the Zero Lag Exponential Moving Average in trading, as well as an exploration of its advantages and limitations as an indicator, click here.