Files
trading_bot_v4/scripts/fix_short_pnl.sql
mindesbunister 309cad8108 Add SQL script to fix SHORT position P&L in database
Corrects all historical SHORT trades affected by the P&L calculation bug.

Results:
- 44 SHORT trades corrected
- Total P&L improved from -$388.82 to -$72.98 (+$315.84 recovered)
- SHORT win rate revealed to be 60.5% (not 39% as incorrectly shown)

Script creates backup table before making changes and includes rollback instructions.
2025-11-07 14:55:13 +01:00

2.8 KiB