- Added tests/test_trade_reflection.py with 13 test cases:
- FIFO pairing, cross-day pairing, multiple opens merge
- Manual pair, delete pair keeps records
- Daily trades view with reflection status
- Tag deduplication, preset tags
- AI prompt building, AI response parsing (JSON/Markdown/fallback)
- Save AI suggestion as experience
- Fixed pairing engine:
- Imported missing DailyReflection
- Enabled cross-day pairing by including previous unpaired records
- Merged multiple opens into single position per close
- Fixed operator precedence in price/commission calculations
- All tests pass: 123 passed, 2 xfailed
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.