I'd like to “scan” for stocks that have gapped up and have high relative daily volume, but TBH, I'm not really sure how to do either. I think I've got gap up figured out, but the RelativeDailyVolume indicator is confusing and the documentation isn't well-covered for using it along with universe selection. How can I accomplish this?
Mia Alissi
Here is your corrected code with the necessary namespace references:
This includes the necessary references for
RelativeDailyVolume
,CoarseFundamental
, andSecurityChanges
. Make sure you have these dependencies available in your development environment.Sources: Sector Rotation Based On News Sentiment, Coarse Fine Fundamental Combo Algorithm, Opening Range Breakout for Stocks in Play, Coarse Fundamental Top3 Algorithm
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.
Michael R
You guys gotta improve this AI agent. Literally all it did was remove the code comments.
Louis Szeto
Hi Michael
We recommend that you work within the selection function:
Best
Louis
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.
Michael R
But universe selection runs at midnight, right? I'd want to filter stocks that have high relative volume at the open (or after the first candle, anyway).
Louis Szeto
Hi Michael
Yes, it runs at midnight for backtesting and around 8 a.m. for live deployment. In your case, you will need to pre-select a large number of stocks and further filter by the first bar or the last pre-open bar. Note that, given the heavy computational work, you will need a large node to run the backtest or live algorithm.
Best
Louis
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.
Michael R
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!