cbazza
ce197c06f4
Implement session-specific confidence thresholds (NY Fine-Tuning)
...
FEATURE: Session-Specific Confidence Thresholds
- Asian: >=95% Confidence (unchanged, 97.8% WR)
- NY: >=97% Confidence (NEW, improves WR from 43.3% to 56.5%!)
- London/Overlap: Blocked (as before)
EXPECTED IMPACT:
- Eliminates 7 poor NY trades (all <97% confidence)
- NY Win-Rate: 43.3% → 56.5% (+13.2 pp)
- NY Profit: $1,418 → $1,655 (+$237)
- Total Profit: $8,306 → $8,598 (+$292)
- Overall Win-Rate: 67.8% → ~71%
IMPLEMENTATION:
1. session_filter_patch.py
- Added session_confidence_thresholds config
- New function: get_session_confidence_threshold()
- New function: is_confidence_sufficient()
2. session_confidence_filter.py (NEW)
- Wrapper for execute_trade_v2_adaptive
- Session-specific confidence checks
- Test suite (6/6 tests passed ✅ )
3. analyze_ny_session.py (NEW)
- Detailed NY session analysis
- Simulations for different thresholds
- Data shows 97-98% trades had 100% WR
TESTING:
All 6 test cases passed:
- Asian 96%: ALLOWED ✅
- Asian 94%: BLOCKED ✅
- NY 98%: ALLOWED ✅
- NY 96%: BLOCKED ✅
- London 99%: BLOCKED ✅
- Overlap 99%: BLOCKED ✅
NEXT STEPS:
1. Integrate wrapper into notebook
2. Restart kernel
3. Monitor for 1 week
4. Review performance improvement
FILES:
- session_filter_patch.py: Updated config + new functions
- session_confidence_filter.py: Wrapper implementation
- analyze_ny_session.py: Analysis tool
- NY_SESSION_FINETUNING.md: Complete documentation
2025-12-26 17:46:58 +01:00
cbazza and Claude
596718e30b
feat: Trading Bot V1.8 - Aggressive Mode + Infrastructure
...
## Major Features
- Session Filter: NY-only trading (13:00-21:00 UTC)
- SQLite Database: Structured trade logging
- Telegram Bot: Real-time notifications (@Xausd_digger_bot)
- Streamlit Dashboard: Visual monitoring & analytics
- JSON Import: Historical data migration
## Infrastructure
- trading_database.py: SQLite trade storage
- telegram_notifier.py: Telegram integration
- infrastructure_patch.py: Combined DB + Telegram
- trading_dashboard.py: Real-time web dashboard
- import_json_to_db.py: JSON to SQLite migration
## Session Filter (V1.8 Aggressive Mode)
- session_filter_patch.py: Whitelist-based filter
- Blocks: Asian, London, Overlap sessions
- Active: NY session only (best performance: 47.6% WR)
- Base confidence: 60%
## Documentation
- V1.8_AGGRESSIVE_MODE_AKTIVIERT.md
- FIX_DUPLICATE_SCHEDULER.md
- DASHBOARD_WINDOWS_SERVER.md
- SQLITE_TELEGRAM_SETUP.md
- PROJECT_CLEANUP.md
## Cleanup
- Archived old V1.1-V1.7 versions
- Removed obsolete analysis scripts (replaced by dashboard)
- Added .gitignore for secrets and temp files
## Breaking Changes
- Requires telegram_config.json (use template)
- Requires Python packages: streamlit, plotly
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-26 21:14:01 +01:00