1
$\begingroup$

I'm looking to learn how to correctly simulate taxes on dividends and capital gains on simulated return series for U.S. Equities with dividend reinvestment. I understand I will have to keep track of the tax lots individually and model tax optimal sales.

Do any open source (python?) packages or pseudocode exist that track lots and simulate taxes on trades?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.