I was trying to add RSI to one of my algorithms, and it looked like it was completely off, so I built a simple rsi buy/sell algorithm to debug. If you open trading view and input a 14 RSI using EMA on 1Minute resolution, it is clear that things are very wrong. Originally I was using consolidated data and a constructor, so I thought that might be it, but this backtest is literally as barebones as it gets, and the values are way off. What gives?
Vladimir
Jack Bueller
Try to compare like this.
If you are satisfied with my answer, please accept it and don't forget to like it
Varad Kabade
Hi Jack Bueller,
We need to compare the price values because the indicators will be different if the prices are slightly different. We validate the indicators against third-party sources, and when the values are the same, the indicator values are similar too.
The difference in prices can be due to different normalization modes. The default in Lean/QC is Adjusted price data. There may be some because data was consolidated differently because of different timestamps.
Best,
Varad Kabade
Vladimir
Jack Bueller
Completely agree with Varad Kabade comment.
Another source of different outputs could be the insufficient warm-up period, which can be 5-6 times longer than the indicator period for indicators using exponential moving averages.
Vladimir
Jack Bueller
I'm wondering if you had a chance to see what I asked you about:
If you are satisfied with my answer, please accept it.
Jack Bueller
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!