As most of the code examples I see here relate to single stocks, I'm not sure how to apply an algorithm on individual stocks taken out of the selected universe. 

In the most basic level: how does the algorithm for logging out the stocks contained in a universe look like?