Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Seeking Help: restricting maximum exposure to a single security

So I'm trying to limit my positions and allocation to a single security. Right now I have it taking positions in a single security that's worth 10% of my portfolio. but when it comes around to my rebalance, it'll take another 10% position in that same security if it's still getting filtered in my screen. So instead of taking a 10% position, I'll now have a 20% position (relative to portfolio value).

How can I cap this so I'm not taking a larger and larger position on each rebalance when I'm already holding a position?

Thanks.