Back

Top Price to Sales and Price to Earnings

Hi! Im new to the community. 

I have been trying to backtest some ideas of mine. But I am having problems with this one. I want to take the top 100 stocks with lowest P/E ratio and from those 100, take the top 10 with the lowest P/S ratio, to make this every 3 months. I have been trying this on the Lab but I think I do not understand very well the whole framework. Any ideas?

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.


Yes, spend a few of months working it out as I have done. Clone demo algos, take all the bootcamps, read all the help documentation, comb this forum for questions answered. There is absolutley no short cut short of commissioning someone to write the algo for you. It is a right of passage we all have to negotiate.

See if there are any examples you can clone which do something vaguely similar to what you want to do.

1

The other thing is you would very probably be better to start with a Classic algo rather than the complex framework mode. It is relatively easy to get up to speed on the former; the latter is much harder work. Oh, and use logging and the debug facility. Take someone elses algo and step through it line by line in debug with the variables you are interested in highlighted.

Not much else I camn suggest.

It is neither abn easy nor swift journey but you will get there if you put in the time.

0

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