Bot auto-update: src/main_ml.py

This commit is contained in:
Marc Blatter 2026-07-07 21:50:02 +02:00
parent d6863872c7
commit 544cd7812b
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ class TradingBot:
self.active_trades = {}
self.daily_pnl = 0
self.paused = False
# ADAPTIVE TRACKING (Option 2: Win Rate based Strategy)
self.total_trades = 0
self.total_wins = 0
self.total_losses = 0
self.last_win_rate = 50.0 # Start neutral
self.strategy_version = 1
self.start_time = datetime.now()
self.trades_today = 0
self.wins_today = 0