Will my whole share for that company be counted as loss?
I backtested my very simple low PE strategy and it recorded pretty impressive CAGR of 58.6% for 20 years of backtest period. (But fitness score is only 2.2. I don't know how to improve this score. ;-P)
I wonder if there were companies that were delisted in the backtest period and how it was handled by QC.
Thanks.
Aaron Tawil
Fitness is based on a number of different things combined together to form your fitness score. Jared posted his notebook in the Alpha Stream Scoring Criteria and it explains the different criteria for fitness scoring.
Potential candidate fitness functions were judged by the following:
So, if lets say the equity you are trading gets de-listed at some point and your algorithm stops trading that equity, your fitness is going to go down because any gains your algorithm will see is due to standard market movements and not your algorithm.
You can read further about de-listing events and how to capture the event by looking at this Delisting Events Algorithm example which is talked about in the References for Handling Data
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!