Exponential Moving Average (EMA)
In this article, you'll learn about exponential moving average (EMA), how it's calculated, and how it's used in Composer.
In this article, you'll learn about exponential moving average (EMA), how it's calculated, and how it's used in Composer.
What is exponential moving average?
EMA of price is an average price of a selected time period, but with more weight and significance placed on recent datapoints. The amount of weight given to recent results is called the "smoothing factor" with the most commonly used smoothing factor being 2.0. This is what Composer uses.
Formula
The formula for exponential moving average is as follows:

Example
In our piece on simple moving average, we used an example of an asset that increased by $1 every day of a week, as follows:
Monday: $6
Tuesday: $7
Wednesday: $8
Thursday: $9
Friday: $10
The 5-day simple moving average for this asset would be calculated as $8.00. Using a smoothing factor of 2, the 5-day EMA would be calculated as $9.33, giving more weight to Thursday and Friday's values.
Where is EMA in Composer?

Exponential moving average can be used in conditional and filter blocks. In the example above, we'd take the 5-day EMA of SPY, and compare that to the 5-day SMA of SPY. The exponential moving average could signal a recent upswing, given its weighting towards recent data. If the 5-day EMA of SPY is greater than or equal to the 5-day SMA of SPY, the blocks underneath the "IF" would execute, while if the EMA was less than the SMA, the blocks underneath the "ELSE" function would execute.
More information on EMA
Given EMA's complexity, we'd recommend checking out this article.
Important Disclosures
Investing in securities involves risks, including the risk of loss, including principal. Composer Securities LLC is a broker-dealer registered with the SEC and member of FINRA / SIPC. The SEC has not approved this message.
Certain information contained in here has been obtained from third-party sources. While taken from sources believed to be reliable, Composer has not independently verified such information and makes no representations about the accuracy of the information or its appropriateness for a given situation. In addition, this content may include third-party advertisements; Composer has not reviewed such advertisements and does not endorse any advertising content contained therein.
This content is provided for informational purposes only, as it was prepared without regard to any specific objectives, or financial circumstances, and should not be relied upon as legal, business, investment, or tax advice. You should consult your own advisers as to those matters. References to any securities or digital assets are for illustrative purposes only and do not constitute an investment recommendation or offer to provide investment advisory services. Furthermore, this content is not intended as a recommendation to purchase or sell any security and performance of certain hypothetical scenarios described herein is not necessarily indicative of actual results. Any investments referred to, or described are not representative of all investments in strategies managed by Composer, and there can be no assurance that the investments will be profitable or that other investments made in the future will have similar characteristics or results.
Charts and graphs provided within are for informational purposes solely and should not be relied upon when making any investment decision. Past performance is not indicative of future results. The content speaks only as of the date indicated. Any projections, estimates, forecasts, targets, prospects, and/or opinions expressed in these materials are subject to change without notice and may differ or be contrary to opinions expressed by others. Please see Composer's Legal Page for additional important information.