Deep divesThe backtest ended with a position still open: how to reconcile final equityReconcile equity change with closed-trade results using a partial exit, fees and an open position in a worked backtesting.py example.November 25, 2026· 3 min#backtest#капитал#backtesting.py