Hi community!
We have just updated our Exponential Moving Average (EMA) indicator implementation to fix a small bug on the first value calculation, matching the implementations of other platforms like TradingView and TA-Lib. An EMA with period N will start with a Simple Moving Average (SMA) of the first N samples and then use the EMA formula for the following samples.
This migth cause your algorithms relying on EMA indicators – or any other indicator based on EMA – to behave a bit differently given that the EMA values will be sligthly different now, so we recommend looking into them to get a better understanding on whether this will affect your algorithms.
As always, please let us know if you have any concerns about this change so we can look into it ASAP.
Thank you!
Yuri Lopukhov
This is great, but one should be aware that 100% match is only achievable if calculations start at the same date and time as in TradingView, otherwise they might still be a little bit off. And of course the data should match as well, so, for example, for correct intraday NASDAQ & NYSE prices you need to add corresponding data subscriptions in TradingView for $3/month each, and also make sure you use the same adjustment method for prices.
Jhonathan Abreu
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!