To my understanding, all price data is by default dividend/split normalized. However what happens if I want to filter by stock price?
Let's for example take a stock that was once priced at $10 on 2010 and doubled its price each year to be $20 in 2011, $40 in 2012, $80 in 2013. in 2014, after reaching $160, they decided to split it 4:1 so it again costs $40.
now let's say my algorithm filters out from the universe stocks that cost less than $5. does it mean that in 2010 it wouldn't buy the stock (which now has an adjusted price of $2.5?
If so - is there a way to negate it? because after all, at the original price of $10 I'd want to buy the share but on 2.5 i wouldn't due to my commission fee structure and other reasons. But o the other hand I don't want my algorithm results to get screwed up by data that is not adjusted. So what do you do in cases like that?
Alexandre Catarino
When we use Coarse Universe Selection in our algorithms, we receive a snapshot of the market at that date with data that is not dividend/split normalized. After we select the symbols for our trading, their data will be normalized.
Taking your example, if you select stocks that are below $5, you will not pick that stock that was $10. On the other hands, if you select stocks that we above $5, you will pick it and if you buy it, you will at adjusted price of $2.5.
Eyal Netanel
Excellent! Thanks!
Eyal Netanel
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!