Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Partial compounding / Deducting money after winning trades?

Hello,

Is it possible to implement partial compounding in Quantopian?

I'm trying to implement a scenario where someone would
- Have to live off of their trading income (from every winning trade, 25% of the gain would be put aside and not used for compounding) or
- Have to pay a certain percentage of every winning trade in taxes

Example (tax scenario):
- Start with 100 USD
- 1st trade enters at 100 USD, sells position at 110 USD
- 25% taxes to be paid on 10 USD = 2.5 USD
- New trading capital is 107.5 USD

Is this doable?
Thank you in advance for your advise!
Dirk