Trend / moving average
EMA (Exponential Moving Average)
A moving average that weights recent prices more heavily, so it reacts faster.
What is EMA (Exponential Moving Average)?
An Exponential Moving Average (EMA) is a trend-following average that gives more weight to recent prices than a Simple Moving Average (SMA). That makes it respond faster to new information, which is why it's a staple of crossover and trend systems.
How it works
Each new EMA value is a weighted blend of the current price and the previous EMA, controlled by a smoothing factor derived from the chosen length. A shorter length hugs price closely; a longer one is smoother and slower. Traders read direction from the EMA's slope and signals from crossovers between fast and slow EMAs.
How traders use it
- ▸Crossovers: fast EMA crossing a slow EMA signals a trend shift.
- ▸Dynamic support/resistance: price often respects a key EMA in a trend.
- ▸Slope: a rising EMA confirms uptrend, falling confirms downtrend.
- ▸Pullback entries: buy dips to the EMA in an established uptrend.
Build EMA (Exponential Moving Average) without code in Algovex
EMA is a node in Algovex, drop one or more on the canvas, wire a crossover or price-vs-EMA condition into your entry logic, backtest, and export. A full EMA-crossover strategy takes a few nodes, or a few when / then rules in the Simple Editor.
Key parameters
| Parameter | What it does |
|---|---|
| length | Number of bars in the average (e.g. 9, 21, 50, 200). |
| source | Price input, usually close. |
Frequently asked questions
What is the difference between EMA and SMA?
An SMA averages all bars equally; an EMA weights recent bars more, so it reacts faster to price changes but can whipsaw more. Algovex provides both as nodes so you can backtest which fits your strategy.
What are the most popular EMA lengths?
Common choices are 9, 21, 50 and 200. The 50/200 pair is widely watched for 'golden cross' and 'death cross' signals. Always backtest lengths on your instrument and timeframe.