exitkit
Swap your exit policy the way you swap your entry signal.
Entry logic is well served by open-source backtesting libraries. Exit logic usually is not — most ship one stop and one target and leave the rest to you. So exit rules end up hardcoded, which makes them impossible to compare.
Twenty-seven exit models in six families behind one interface: stop-loss, take-profit, time, volatility, signal-reversal, convergence. One entry rule, five exit policies, one chart.
pip install exitkit