Commit Graph
4 Commits
Author SHA1 Message Date
cbazzaandClaude Opus 4.5 b5b91224df feat: Add session filter to trading check + fix drawdown calculation
Deploy to Windows VPS / deploy (push) Has been cancelled
- Add session check (SCHRITT 0) to enhanced_trading_check_wrapper
- Fix max_drawdown calculation to cap at 100% when equity goes negative
- Add _save_data() after _update_stats() to persist stats
- Add auto-sync scheduler job for demo tracker (every 5 min)
- Fix MT5 trade sync to match entry deals by position_id
- Enable Asian session in session_filter_patch.py

Session config now:
- Asian: ENABLED
- London: BLOCKED
- Overlap: ENABLED
- NY: ENABLED

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 10:47:28 +01:00
cbazzaandClaude Opus 4.5 25b20fa0e2 fix: Handle empty stats in get_daily_summary
Deploy to Windows VPS / deploy (push) Has been cancelled
Added .get() with defaults for total_trades, win_rate, and total_profit
to prevent KeyError when no trades have been logged yet.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:39:29 +01:00
cbazzaandClaude Opus 4.5 7044c19a60 fix: Handle empty stats in check_go_live_readiness
Deploy to Windows VPS / deploy (push) Has been cancelled
Added default values using .get() for all stats fields to prevent
KeyError when no trades have been logged yet.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:35:24 +01:00
cbazzaandClaude Opus 4.5 2f521ae0ac feat: Implement Demo Test Tracker for Go-Live readiness assessment
NEW MODULE: demo_test_tracker.py
- DemoTestTracker class for comprehensive statistics collection
- TradeRecord dataclass for structured trade logging
- Automatic Win Rate, Profit Factor, Drawdown calculation
- Session-based and Signal Quality breakdown
- Error/Bug tracking
- Persistent JSON storage

GO-LIVE CRITERIA (configurable):
- min_trades: 50 trades required
- min_win_rate: 55%
- min_profit_factor: 1.3
- max_drawdown: 15%
- min_days: 14 days running
- max_errors: 5 critical errors
- min_sessions_tested: 2 different sessions

NEW NOTEBOOK CELLS:
- Cell 92: Performance Report & Go-Live Check
- Cell 93: MT5 History Sync (imports past trades)

FEATURES:
- print_report(): Full performance breakdown
- print_go_live_check(): Visual checklist with pass/fail
- get_daily_summary(): Quick daily stats
- sync_closed_trades_to_tracker(): Import from MT5 history

INTEGRATION:
- Added to Cell 78 (Advanced Optimizations)
- Tracks trades automatically after execution
- Persistent data in demo_test_stats.json

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 11:32:38 +01:00