Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
multiple stocks and stock screening

Hello everyone.
i am new at this and have no formal training in programming so i would really appreciate the help.
How would i go about screening stocks from all stocks known to quantopian?
and after finding the right stock how do i handle a portfolio with more then one stock.

Thanks
Nadav.

6 responses

From what I can tell Quantopian doesn't have stock screening implemented yet. They only have one 'slider' which is DollarVolume.

However you can do your stock screen on US stocks at another website (such as Google Finance) and then manually plug in those stocks for your algorithm.

Here is an example algorithm that uses multiple securities: https://www.quantopian.com/help#sample-multiple

Thanks Dennis.
so i understand i can only write an algorithm with a prior knowlage of what single stock here. if i would anything more complex i have the use external scripts to crop and insert data into quantopian.
is that correct?

You can have Quantopian select a number of stocks for you. But at the moment the only criteria is DollarVolume. I expect additional criteria will be added at a later date.

https://www.quantopian.com/help#ide-universe

Hello Nadav,

A single Quantopian algorithm can handle multiple securities (i.e. trade a portfolio). However, I agree with Dennis that you won't be able to do a global screening across all securities in the database.

Do you have a specific algorithm in mind? Perhaps we can help you with the basic coding. It's pretty straightforward, once you have the right framework.

Grant

Hello Grant.
i have an algorithm that addresses a scv filled by a web crawler.
the web crawler will generate data in a csv every day and the trading strategy for that day and the following week will be influenced by the data in the csv file.
therefore i have a need the flexibly let the algorithm choose a few securities from a wide range of different securities.
this, hopefully, will let the the algo' the flexibilty it needs in order to be continuelly profitable both in short and long ranges of time.
can you maybe direct me to a list of quantopian sid's and symbols as well as a way to enter a symbol and get a sid automatically ( and not manually).
i hope i am not too much of a bother. i am kind of new to this.

Thank you.
Nadav.

Hi Nadav,

When you say "choose a few securities from a wide range of different securities" could your algorithm (perhaps via the uploaded CSV file) pick them from a pre-defined list of 100 securities? If so, I recall that Quantopian will allow a list of up to 100 individual securities to be defined in an algorithm. Unfortunately (unless something has changed), they'd need to be looked up individually using the look-up function within the algorithm. However, once you establish the list of sids, then there is flexibility within Python to pick specific ones from the list based on a criteria (e.g. if it is Monday, buy Apple, if it is Tuesday, buy Microsoft, etc.)

Grant