Hi all
I wonder what's wrong with my backtest (see attached). It's my understanding that
self.SetBenchmark("SPY")
sets the reference benchmark for the calculations in the statistics section. Nevertheless I get some positive Alpha of 0.142 (I assume this means 14.2% p.a.), even when I just go long the SPY:
if not self.Portfolio.Invested:
self.SetHoldings("SPY", 1)
Furthermore, the beta is -0.049, shouldn't it be 1?
Is there anything I missunderstand? And if so, what do I have to do?
Many thanks!
Shile Wen
Hi Jason,
Beta calculations on Daily Resolution is a known issue, and we have yet to fix it. Since Alpha uses Beta in it's calculation, it's also wrong. To get a more accurate calculation, please use Hourly or more granular resolution.
Best,
Shile Wen
Jason McConnell
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!