Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Caculating Win/Loss Ratio

Hi

Does anyone have an example of how to record win/loss ratio after selling stocks so you know what how many stocks you sold for profit vs sold for a loss?

Any help would be greatly appreciated.