Hi @Grant - your question gets to the heart of an important theme in our forums and in our product development. Should a human choose the instruments to run through an algorithm, or should the algorithm find securities that fit? Today our system only supports human selection, but in the near future we will be proving new tools that make it possible for your algorithm to find suitable securities.
The question is: how could you make the stock selection with your algorithm? This is where our product development is focused now. We think the Quantopian platform should provide you with two facilities:
- an easy way to specify a universe of stocks. All trade events for stocks in your chose universe will be fed to your algorithm. This gives your algorithm access to more than just hand-picked securities.
- batch transforms that allow you to work with a window of data for all securities in your universe. This gives your algorithm the data necessary to check for relationships between securities, and to analyze the behavior of any security over a useful historic period.
With these tools, you can start exploring ways to algorithmically identify stocks that would work well with your strategy.
In this particular case, the algorithm is looking for opportunities to follow the momentum of the security: the algo buys when the price breaks above the vwap, and sells when it falls below. You could certainly hand pick stocks where this algorithm would perform well - stocks with a secular decline would tend to build a short position, and stocks with a secular increasing trend would tend to build up long positions. Securities without a trend will probably tend to burn up capital in trading costs - I think that's what you're seeing in this example.
Disclaimer
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 Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian 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.