Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Is it possible to generate an algorithm that trades its own common/specific returns?

I have an algorithm that has poor returns but has a right indicator that decides whether to limit its market exposure or not. Is is possible to generate an algorithm that only trades its common returns. That is, when I run this algorithm, the algorithm's performance should be the same as its common performance?

Here is an image for the backtest results
https://imgur.com/a/AbtB3Rl

2 responses

For reference, here is the backtest results,
https://imgur.com/a/AbtB3Rl

As you can see the common returns beats cumulative and specific and benchmark returns.

https://www.quantopian.com/posts/algorithm-to-isolate-common-slash-specific-returns

I wrote something which kind of did something like this, you might need to edit the code a bit though