Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Any advice on making this algorithm satisfy the risk requirements?

Greetings,
This is my first algorithm on Quantopian. I can't figure out how to make it satisfy the style requirements, and with certain adjustments to only funds it trades outside the Quantopian universe. I would appreciate any advice on how to make it:
- Invest all of the capital given
- Satisfy investment style requirements
- Trade only within the Quantopian Tradable universe
EDIT:
I would like to clarify that QTradableStocksUS() is provided both as a mask for all factors and as part of the screen

6 responses

You might want to start with $10 million initial capital instead of $100,000. Also try and trade with a larger top and bottom percentile for your factors.

Hello Malloy,

I've added some constraints (sector neutral & beta neutral). Unfortunately, by construction, your algo is too focused on short terme reversal factor. Try to relax pipeline filters or add another factor to mitigate this.

Good luck !

Thank you Mathieu, these changes are very interesting.
I'm a little confused about the style focus. The alpha is weighted towards size, not recent returns.
It still seems to not be dollar neutral. Any ideas?

Hi Maloy,

I changed @Mathieu's version slightly so it meets all contest requirements. I had to relax your Pipeline outputs a bit, as the Optimizer was having difficulty finding a portfolio that meets all requirements. Good luck and be careful not to overfit (this one likely is).

:)

Welp, should be entertaining if not educational. Kind of outdid myself this time.

@Blue Seahawk
Just to address the question in the code:
I originally had (&) | (&). However, I had a hunch that either low cap or low rets would work, which turned out to be right. Thus, (&) | (|)