cbazzaandClaude Sonnet 4.6 f37e7adcf3 fix: enhanced_trailing_stop, dynamic_threshold_optimizer, signal_cache
enhanced_trailing_stop.py:
- mt -> mt5 (all occurrences)
- Add pandas + timezone imports at file top
- Fix UTC bug: datetime.fromtimestamp(..., tz=timezone.utc).replace(tzinfo=None)
- Fetch symbol_info once per call, reuse for point (was called twice)
- cleanup_closed_positions: handle None from positions_get()
- Remove pandas import from inside function body

dynamic_threshold_optimizer.py:
- Fix SQL injection: replace f-string session filter with parameterized query (?)
- Add logging module, replace all print() with logger calls
- Use context manager (with sqlite3.connect()) to prevent connection leak on exception
- save_thresholds_to_config: add try/except with logger.error

signal_cache.py:
- Fix bare except -> except Exception in _cleanup_old_entries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 11:48:38 +02:00
2025-12-17 08:34:55 +01:00
2025-12-17 08:34:55 +01:00
S
Description
Trading Bot um XAUSD auf Vantage via MT5 zu traden
5.2 MiB
Languages
Python 71.4%
Jupyter Notebook 24.7%
Batchfile 1.7%
PowerShell 1.2%
Shell 1%