talib.ema
Exponential moving average of source over length bars, weighted so that recent bars count for more than older ones.
It takes the same two arguments as talib.sma, so swapping one for the other is a one-word change.
talib.ema(series float source, series int length) → series float| Parameter | Type | Required | Description |
|---|---|---|---|
source | series float | yes | The series to average. |
length | series int | yes | How many bars the average covers. |
Returns series float — A series float: one average per bar.
indicator("Exponential moving average")
plot(talib.ema(close, 20))See also talib.alma · talib.atr · talib.barssince
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.