EMA

Top  Previous  Next

Keyword Description

Exponential Moving Average

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

EMA[p,n]  

Where p is the price and n is the number of days in the study.

Example

Sample code

COL2 = EMA[COL1, 30]

 

ThumbTack white

Unlike a simple moving average, the exponential average does not discard older data.  Rather, it places a greater weight on more recent data.  Thus, an exponential moving average is more sensitive to recent market behavior than a simple moving average of similar length.