EMA Signal Indicator
- Indicatori
- Sascha Ritter
- Versione: 1.0
- Attivazioni: 5
# EMA Signal Indicator — 20 / 50 / 100 / 200 with Trend-Filtered Buy & Sell Signals
## Overview
The **EMA Signal Indicator** is a clean, rule-based trend-following tool for MetaTrader 5. It plots four exponential moving averages (EMA 20, 50, 100, 200) directly on your chart and generates buy and sell signals only when the market is in a clearly defined, structured trend — no noise, no guesswork.
Designed for traders who want high-quality setups on pullbacks within a strong trend, this indicator waits for price to tap the EMA 50 and then confirms the move by closing back beyond the EMA 20 — but only when all four EMAs are perfectly stacked in the right order.
---
## How It Works
### The Four EMAs
| EMA | Color | Width |
|-----|-------|-------|
| EMA 20 | Green | Normal |
| EMA 50 | Red | Normal |
| EMA 100 | Light Blue | Normal |
| EMA 200 | White | Thicker |
### Signal Logic
**Buy Signal (↑ green arrow below candle)**
All of the following conditions must be true simultaneously:
1. **Trend filter:** EMA 20 > EMA 50 > EMA 100 > EMA 200 — all four EMAs in perfect bullish alignment
2. **Pullback:** The previous candle's low touched or crossed below the EMA 50
3. **Confirmation:** The current candle closes **above** the EMA 20
**Sell Signal (↓ red arrow above candle)**
All of the following conditions must be true simultaneously:
1. **Trend filter:** EMA 20 < EMA 50 < EMA 100 < EMA 200 — all four EMAs in perfect bearish alignment
2. **Pullback:** The previous candle's high touched or crossed above the EMA 50
3. **Confirmation:** The current candle closes **below** the EMA 20
> Signals only appear when the trend is unambiguous. If even one EMA is out of order, no signal is generated — keeping your chart clean and your focus sharp.
---
## Key Features
- **Strict 4-EMA trend alignment filter** — no signals in choppy or ranging markets
- **Pullback-to-EMA 50 logic** — catches high-probability re-entries within the trend
- **EMA 20 close confirmation** — avoids false signals from wicks alone
- **Visual arrows directly on the chart** — green arrow for buy, red arrow for sell
- **Optional alert system** — get notified the moment a signal forms on the current bar
- **Fully customizable EMA periods** via input parameters
- **No repainting** — signals are based on confirmed closed candles
- **Compatible with all instruments and timeframes** — works on Forex, Gold, DAX, indices, crypto, and more
