338ed1188c4ed3d9ab4bc9fe358e37e406469ede
session_filter_patch.py: - Fix mutable default arguments (config=None + internal assignment) - Read confidence threshold from config (95) instead of hardcoded 60 - Read debug flag from config instead of hardcoding True - Rename datetime parameter to avoid shadowing the module (_datetime import) - Clamp optimal_interval to max 59 to avoid % modulo issues - Cache now = _datetime.now() to avoid double call advanced_position_management.py: - mt -> mt5 alias (21 replacements) - should_update_trailing_stop: fetch symbol_info.point once, reuse for both checks - close_partial_position: fetch mt5.symbol_info_tick once instead of twice - check_and_update_positions: add mt5.terminal_info() guard loss_protection_manager.py: - Fix critical bug: .seconds -> .total_seconds() in news cache check (.seconds resets at 1h boundary, causing stale cache to appear fresh) - _fetch_economic_calendar: activate via news_filter_simple integration, document that it was previously a no-op - record_trade: document approximate balance tracking limitation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Languages
Python
71.4%
Jupyter Notebook
24.7%
Batchfile
1.7%
PowerShell
1.2%
Shell
1%