Back

How to build a screener to feed an algorithm.

New here, obviously. In reviewing the tutorials, it appears that the main thrust of what I saw was how/when to trade a known universe of equities. Is there anything in this tool that allows for decision making in which equities to trade?

Effectively I would like to select equities on a periodic basis that are to be traded based on characteristics such as price, volatility, yield, etc. The initial tutorials didn't cover how to select equities.

Update Backtest








Hi Paul,

Yes, the coarse universe selection function does exactly what you're asking for:

1.) In the entire universe of equities, apply logic to reduce the universe to a select number of equities every day (or whatever period you want).
2.) Buy/sell the reduced universe, etc.
3.) Repeat.

Here is my favorite example that the QC guys have put together to highlight this:

https://github.com/QuantConnect/Lean/blob/master/Algorithm.CSharp/EmaCrossUniverseSelectionAlgorithm.cs
2

Update Backtest





0

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.


Loading...

This discussion is closed