This study is a version of the Exponential Moving Average using calculation mechanism prior to November 13, 2010. Its difference from the updated EMA is in the way the initialization point is determined. For the Legacy EMA, the specified price of the first bar is considered the initial value, while the updated EMA study comprises historical data prefetching for that purpose. The absence of the prefetching mechanism makes the Legacy EMA study highly range-dependent.

Input Parameters

Parameter Description
price The price used to calculate the Legacy EMA.
length The number of bars to calculate the smoothing factor.
displace The displacement of the Legacy EMA study, in bars. Positive values signify a backward displacement.


Plot Description
LegacyEMA The Legacy EMA plot.


*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

You may also like
The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...
thinkScript®: Q&A
What is thinkScript®? thinkScript® is a built-in programming language that gives you the ...
The Slow Relative Strength Index is a version of the classic Relative Strength Index (RSI), ...