diff --git a/TradingBot_V1.6_Adaptive_Complete_CORRECTED.ipynb b/TradingBot_V1.6_Adaptive_Complete_CORRECTED.ipynb index 36debc9..47fa00b 100644 --- a/TradingBot_V1.6_Adaptive_Complete_CORRECTED.ipynb +++ b/TradingBot_V1.6_Adaptive_Complete_CORRECTED.ipynb @@ -45,19 +45,14 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "πŸ“¦ Installing python-telegram-bot...\n", - "\n", - "βœ… python-telegram-bot installed!\n", - "βœ… Version: 22.6\n", - "\n", - "🎯 Now restart kernel and run Cell 17 again!\n" + "πŸ“¦ Installing python-telegram-bot...\n" ] } ], @@ -86,17 +81,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… All imports successful - V1.6 Adaptive Complete (CORRECTED)\n" - ] - } - ], + "outputs": [], "source": [ "# Standard Imports\n", "import pandas as pd\n", @@ -127,17 +114,9 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Infrastructure modules loaded\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# INFRASTRUCTURE IMPORTS (V1.8)\n", @@ -164,23 +143,9 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… TRADING CONFIGURATION LOADED\n", - "\n", - "πŸ“Š Lot Sizing: 0.01 - 0.2 lots\n", - "⚠️ Max Risk: 2.0% per trade\n", - "🎯 Confidence Threshold: 70%\n", - "πŸ›‘οΈ News Filter: ENABLED\n", - "🌍 Primary Symbol: XAUUSD\n" - ] - } - ], + "outputs": [], "source": [ "# ============================================================================\n", "# CENTRALIZED TRADING CONFIGURATION\n", @@ -290,17 +255,9 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Adaptive Rhythm Manager defined\n" - ] - } - ], + "outputs": [], "source": [ "class AdaptiveRhythmManager:\n", " \"\"\"\n", @@ -456,37 +413,9 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Login successful: True\n", - "Symbol: XAUUSD\n", - "Strategy: TradingBot_V1.6\n", - "Max Positions: 1\n", - "Version: V1.6 COMPLETE - Adaptive + Full Features! πŸš€πŸ›‘οΈβš‘\n", - "\n", - "\n", - "╔════════════════════════════════════════════════════════╗\n", - "β•‘ ADAPTIVE RHYTHM STATUS - 11:36:30 UTC β•‘\n", - "╠════════════════════════════════════════════════════════╣\n", - "β•‘ Aktuelles Intervall: 5 Minuten β•‘\n", - "β•‘ Trading Session: LONDON β•‘\n", - "β•‘ VolatilitΓ€tslevel: HIGH β•‘\n", - "β•‘ ATR (H1): 28.52 β•‘\n", - "╠════════════════════════════════════════════════════════╣\n", - "β•‘ INTERVALL-SCHEMA: β•‘\n", - "β•‘ β€’ Overlap (13-16 UTC): 5-15 Min (aktivste Phase) β•‘\n", - "β•‘ β€’ London/NY: 5-30 Min (volatilitΓ€tsabh.) β•‘\n", - "β•‘ β€’ Asian Session: 15-30 Min (ruhigere Phase) β•‘\n", - "β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "# MT5 Login\n", "mt.initialize()\n", @@ -513,23 +442,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”§ Initializing Infrastructure...\n", - "βœ… Database initialized: trading_bot.db\n", - "βœ… Telegram Bot connected: @Xausd_digger_bot\n", - "βœ… Telegram notifications enabled\n", - "βœ… Infrastructure ready!\n", - " Database: βœ…\n", - " Telegram: βœ…\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# INITIALIZE INFRASTRUCTURE (V1.8)\n", @@ -563,40 +478,9 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:36:31,534 - INFO - 🎯 Advanced Position Manager initialized\n", - "2026-01-27 11:36:31,535 - INFO - Adaptive Sizing: βœ…\n", - "2026-01-27 11:36:31,536 - INFO - Trailing Stop: βœ…\n", - "2026-01-27 11:36:31,537 - INFO - Partial TP: βœ…\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "🎯 Initializing Advanced Position Management...\n", - "βœ… Advanced Position Management activated!\n", - " πŸ“Š Adaptive Position Sizing: ACTIVE\n", - " β€’ High Confidence (β‰₯80%): 1.5x risk\n", - " β€’ Medium Confidence (β‰₯70%): 1.0x risk\n", - " β€’ Low Confidence (<70%): 0.5x risk\n", - "\n", - " πŸ“ˆ Trailing Stop-Loss: ACTIVE\n", - " β€’ Break-Even at 50% progress to TP\n", - " β€’ Lock 50% profit at 75% progress\n", - "\n", - " 🎯 Partial Take Profit: ACTIVE\n", - " β€’ TP1 at 1.5R (close 50%)\n", - " β€’ TP2 at 2.5R (let 50% run)\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# ADVANCED POSITION MANAGEMENT SETUP\n", @@ -632,24 +516,9 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”§ Initializing Position Monitor...\n", - "βœ… Position Monitor ready!\n", - " Will check for closed positions every minute\n", - " Closed trades will be automatically logged with:\n", - " β€’ Exit price & time\n", - " β€’ Profit/Loss calculation\n", - " β€’ Exit reason (TP/SL/Manual)\n", - " β€’ Telegram notification\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# POSITION MONITOR SETUP (V1.8)\n", @@ -680,17 +549,9 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Position Control functions defined (COMPLETE with close function!)\n" - ] - } - ], + "outputs": [], "source": [ "def check_existing_positions(symbol=\"XAUUSD\", strategy_name=\"TradingBot_V1.6\"):\n", " \"\"\"\n", @@ -812,17 +673,9 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Helper functions defined (with robust MT5 retry logic)\n" - ] - } - ], + "outputs": [], "source": [ "import time\n", "\n", @@ -936,17 +789,9 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Market analysis functions defined (with RELAXED thresholds)\n" - ] - } - ], + "outputs": [], "source": [ "def detect_market_regime(df, lookback=50):\n", " \"\"\"Market Regime Detection\"\"\"\n", @@ -1051,17 +896,9 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Enhanced trend wrapper ready (retries handled in get_rates)\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# SIMPLIFIED: get_rates now handles retries\n", @@ -1085,17 +922,9 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… V1.6 Adaptive Complete Top-Down Analysis defined\n" - ] - } - ], + "outputs": [], "source": [ "def extended_top_down_v2_adaptive(symbol=\"XAUUSD\", lookback=150):\n", " \"\"\"\n", @@ -1277,17 +1106,9 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Entry timing functions defined (DISABLED in Relaxed mode)\n" - ] - } - ], + "outputs": [], "source": [ "def check_pullback_entry(symbol, signal_info, timeframe=\"M5\"):\n", " \"\"\"\n", @@ -1337,7 +1158,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1390,20 +1211,9 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "0.01" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "#mt.symbol_info(symbol).volume_min\n", "mt.symbol_info(symbol).volume_step" @@ -1411,17 +1221,9 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… V1.6 Adaptive Complete Execute Trade defined\n" - ] - } - ], + "outputs": [], "source": [ "def execute_trade_v2_adaptive(\n", " symbol=None,\n", @@ -1683,30 +1485,9 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Original execute_trade_v2_adaptive gespeichert\n", - "βœ… SESSION-SPECIFIC CONFIDENCE FILTER AKTIVIERT\n", - "------------------------------------------------------------\n", - "Thresholds:\n", - " Asian: >= 95% Confidence (97.8% WR)\n", - " NY: >= 97% Confidence (verbessert von 43% auf 56% WR)\n", - " London: Blockiert\n", - " Overlap: Blockiert\n", - "\n", - "Erwartete Verbesserung:\n", - " - NY Win-Rate: 43.3% β†’ 56.5%\n", - " - Profit: +$237/Monat in NY Session\n", - " - Gesamt: +$292/Monat\n", - "------------------------------------------------------------\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# SESSION-SPECIFIC CONFIDENCE FILTER (26.12.2025)\n", @@ -1741,19 +1522,9 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ“¦ Installing python-telegram-bot...\n", - "βœ… python-telegram-bot installed successfully!\n", - "βœ… telegram module version: 22.6\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# INSTALL TELEGRAM BOT DEPENDENCIES\n", @@ -1817,30 +1588,9 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸš€ Starting Telegram Bot Commander...\n", - "βœ… Telegram Bot Commander initialized\n", - "πŸ“± Bot Token: 7783303065:AAHVVvwWG...\n", - "πŸ‘€ Chat ID: 8039713369\n", - "βœ… Telegram Bot running in background\n", - "βœ… Telegram Bot is running in background!\n", - "πŸ“± Available Commands:\n", - " /status - Bot status & positions\n", - " /pause - Pause trading\n", - " /resume - Resume trading\n", - " /close - Close all positions (requires confirm)\n", - " /balance - Account balance\n", - " /stats - Performance stats\n", - " /help - Show help\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TELEGRAM BOT COMMANDS - Background Service\n", @@ -1906,30 +1656,9 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Original execute_trade_v2_adaptive saved\n", - "βœ… NEWS FILTER ACTIVATED\n", - "------------------------------------------------------------\n", - "Protection: Trading blocked 30min before/after HIGH-IMPACT news\n", - "Events monitored:\n", - " β€’ NFP (Non-Farm Payrolls)\n", - " β€’ CPI (Consumer Price Index)\n", - " β€’ FOMC (Fed Interest Rate Decision)\n", - " β€’ Retail Sales, PMI, GDP\n", - " β€’ Other high-impact USD/EUR/GBP events\n", - "------------------------------------------------------------\n", - "\n", - "πŸ“ To add events: Edit news_events_manual.json\n", - "πŸ’‘ Recommended: Weekly check ForexFactory calendar\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# NEWS FILTER INTEGRATION\n", @@ -1963,18 +1692,9 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… execute_trade_v2_adaptive wrapped with Telegram control\n", - " Trading can now be paused/resumed via /pause and /resume\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# INTEGRATION: Bot Controller mit execute_trade\n", @@ -2054,7 +1774,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -2133,26 +1853,9 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Multi-Timeframe Ranging Filter aktiviert!\n", - " PrΓΌft: H1, H4, D1\n", - " Gewichtung: D1 (3x) > H4 (2x) > H1 (1x)\n", - " Threshold: ADX > 25\n", - "\n", - "πŸ“Š Entscheidungslogik:\n", - " 1. D1 ADX > 30 β†’ ERLAUBT (starker Trend)\n", - " 2. H4+D1 beide > 25 β†’ ERLAUBT (bestΓ€tigter Trend)\n", - " 3. Weighted ADX > 25 β†’ ERLAUBT (Gesamtbild)\n", - " 4. Sonst β†’ BLOCKIERT (Ranging)\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# 🎯 MULTI-TIMEFRAME RANGING FILTER (20.12.2025)\n", @@ -2184,40 +1887,9 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ§ͺ TESTING MULTI-TIMEFRAME REGIME FILTER\n", - "======================================================================\n", - "\n", - "\n", - "πŸ“Š MULTI-TIMEFRAME REGIME CHECK\n", - "============================================================\n", - " H1: ADX 22.2 (weight 1.0x) πŸ“Š RANGE\n", - " H4: ADX 38.8 (weight 2.0x) βœ… TREND\n", - " D1: ADX 41.2 (weight 3.0x) βœ… TREND\n", - "\n", - " Weighted ADX: 37.2\n", - " Threshold: 25\n", - "\n", - " βœ… ALLOWED: TRENDING\n", - " Reason: D1 stark trending (ADX 41.2 > 30) β†’ Trend dominiert\n", - "============================================================\n", - "\n", - "πŸ“‹ ERGEBNIS:\n", - " Trading Allowed: True\n", - " Regime: trending\n", - " Weighted ADX: 37.2\n", - "\n", - "βœ… FILTER ERLAUBT TRADES!\n", - " β†’ Bot wird bei nΓ€chstem Scheduler-Run traden (wenn andere Bedingungen passen)\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# πŸ§ͺ TEST: Multi-Timeframe Regime Filter\n", @@ -2250,17 +1922,9 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "⚠️ check_open_positions not found - skipping Position Monitor fix\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# πŸ”₯ FIX #2: POSITION MONITOR DB LOGGING (09.12.2025)\n", @@ -2331,17 +1995,9 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Performance Monitoring functions defined (with adaptive features)\n" - ] - } - ], + "outputs": [], "source": [ "def log_trade_performance_adaptive(signal_info, order_result):\n", " \"\"\"\n", @@ -2462,18 +2118,9 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”§ Force resuming trading after Ranging Filter deployment...\n", - "⚠️ drawdown_protection not initialized yet\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# FORCE RESUME TRADING (V2.2 FIX)\n", @@ -2512,34 +2159,9 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”§ Setting up Trading Check...\n", - "βœ… Session Filter aktiviert!\n", - " Deaktivierte Sessions:\n", - " β€’ ASIAN : βœ… AKTIV\n", - " β€’ LONDON : ❌ DEAKTIVIERT\n", - " β€’ OVERLAP : ❌ DEAKTIVIERT\n", - " β€’ NY : βœ… AKTIV\n", - "\n", - "πŸ›‘οΈ Drawdown Protection aktiviert!\n", - " β€’ Daily Loss Limit: $100\n", - " β€’ Weekly Loss Limit: $300\n", - " β€’ Monthly Loss Limit: $800\n", - " β€’ Max Consecutive Losses: 5\n", - " β€’ Cooldown: 24h\n", - "\n", - "βœ… Trading Check ist jetzt vollstΓ€ndig geschΓΌtzt!\n", - " πŸ“Š Session Filter: Aktiv\n", - " πŸ›‘οΈ Drawdown Protection: Aktiv\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TRADING CHECK: SESSION FILTER + DRAWDOWN PROTECTION\n", @@ -2589,24 +2211,9 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:12,342 - INFO - βœ… Trading resumed after: None\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Trading force-resumed (Ranging Filter deployed)\n" - ] - } - ], + "outputs": [], "source": [ "# Force resume after restart (V2.2 fix)\n", "drawdown_protection._resume_trading()\n", @@ -2615,7 +2222,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -2661,33 +2268,9 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βš™οΈ V1.6 Adaptive Complete Configuration:\n", - "\n", - "πŸ›‘οΈ Position Control:\n", - " Max Positions: 1\n", - " Strategy: TradingBot_V1.6\n", - "\n", - "πŸš€ Relaxed Parameters:\n", - " Base Confidence: 60%\n", - " Min ATR: 0.0008\n", - " Pullback Entry: False\n", - "\n", - "⚑ Adaptive Features:\n", - " Dynamic Intervals: 5/15/30 min\n", - " Session-aware: Yes\n", - " Volatility-based: Yes\n", - "\n", - "βœ… Configuration complete!\n" - ] - } - ], + "outputs": [], "source": [ "# ============================================================================\n", "# NOTE: This config is DEPRECATED - use TRADING_CONFIG in Cell 6 instead\n", @@ -2735,17 +2318,9 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Status monitoring function defined (COMPLETE with all features)\n" - ] - } - ], + "outputs": [], "source": [ "# βœ… KORRIGIERT: Umfassendes Status Monitoring (fehlte in V1.6)\n", "def check_adaptive_bot_status():\n", @@ -2829,72 +2404,9 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:13,092 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,094 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,097 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,098 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,102 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,103 - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts\n", - "2026-01-27 11:37:13,105 - INFO - Added job \"create_protected_trading_check..protected_check\" to job store \"default\"\n", - "2026-01-27 11:37:13,106 - INFO - Added job \"print_status_report\" to job store \"default\"\n", - "2026-01-27 11:37:13,107 - INFO - Added job \"TradingInfrastructure.send_daily_report\" to job store \"default\"\n", - "2026-01-27 11:37:13,111 - INFO - Added job \"TradingInfrastructure.send_weekly_report\" to job store \"default\"\n", - "2026-01-27 11:37:13,112 - INFO - Added job \"PositionMonitor.check_open_positions\" to job store \"default\"\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Scheduled reports added:\n", - " πŸ“Š Daily report: 22:00 UTC\n", - " πŸ“ˆ Weekly report: Sunday 23:00 UTC\n", - "βœ… Scheduled reports added:\n", - " πŸ“Š Daily report: 22:00 UTC\n", - " πŸ“ˆ Weekly report: Sunday 23:00 UTC\n", - "βœ… Position Monitor job added\n", - "βœ… Advanced Position Management job added\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:13,113 - INFO - Added job \"\" to job store \"default\"\n", - "2026-01-27 11:37:13,114 - INFO - Scheduler started\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Command handlers registered\n", - "πŸš€ Starting Telegram Bot...\n", - "πŸ“± Send /help to see available commands\n", - "\n", - "βœ… Scheduler started!\n", - "\n", - "πŸ“‹ Active Jobs: 6\n", - " β€’ adaptive_trading_check\n", - " β€’ position_monitor\n", - " β€’ advanced_position_management\n", - " β€’ status_report\n", - " β€’ daily_report\n", - " β€’ weekly_report\n", - "\n", - "======================================================================\n", - "πŸš€ TradingBot V2.2 - All Systems Ready!\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# SETUP SCHEDULER (V1.6 ADAPTIVE COMPLETE)\n", @@ -2974,42 +2486,9 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ§ͺ TEST 1: Position Check\n", - "==================================================\n", - "\n", - "πŸ“Š POSITION SUMMARY fΓΌr XAUUSD (V1.6 Adaptive Complete)\n", - "============================================================\n", - "βœ… Keine aktiven Positionen - bereit fΓΌr neuen Trade\n" - ] - }, - { - "data": { - "text/plain": [ - "False" - ] - }, - "execution_count": 36, - "metadata": {}, - "output_type": "execute_result" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:13,653 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/sendMessage \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:37:13,678 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getMe \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:37:13,681 - INFO - Application started\n", - "2026-01-27 11:37:13,699 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/deleteWebhook \"HTTP/1.1 200 OK\"\n" - ] - } - ], + "outputs": [], "source": [ "# βœ… KORRIGIERT: Umfassende Testing Suite (fehlte in V1.6)\n", "\n", @@ -3021,41 +2500,9 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Bot is running\n", - "\n", - "πŸ§ͺ TEST 2: Adaptive Rhythm\n", - "==================================================\n", - "\n", - "╔════════════════════════════════════════════════════════╗\n", - "β•‘ ADAPTIVE RHYTHM STATUS - 11:37:13 UTC β•‘\n", - "╠════════════════════════════════════════════════════════╣\n", - "β•‘ Aktuelles Intervall: 5 Minuten β•‘\n", - "β•‘ Trading Session: LONDON β•‘\n", - "β•‘ VolatilitΓ€tslevel: HIGH β•‘\n", - "β•‘ ATR (H1): 28.52 β•‘\n", - "╠════════════════════════════════════════════════════════╣\n", - "β•‘ INTERVALL-SCHEMA: β•‘\n", - "β•‘ β€’ Overlap (13-16 UTC): 5-15 Min (aktivste Phase) β•‘\n", - "β•‘ β€’ London/NY: 5-30 Min (volatilitΓ€tsabh.) β•‘\n", - "β•‘ β€’ Asian Session: 15-30 Min (ruhigere Phase) β•‘\n", - "β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•\n", - "\n", - "\n", - "Details:\n", - " Optimal Interval: 5 min\n", - " Session: london\n", - " ATR: 28.52\n", - " Volatility Level: high\n" - ] - } - ], + "outputs": [], "source": [ "# Test 2: Adaptive Rhythm Status\n", "print(\"\\nπŸ§ͺ TEST 2: Adaptive Rhythm\")\n", @@ -3079,56 +2526,9 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "πŸ§ͺ TEST 3: Signal Analysis\n", - "==================================================\n", - "πŸ” Analyzing XAUUSD with V1.6 ADAPTIVE COMPLETE parameters...\n", - "\n", - "πŸ“Š V1.6 ADAPTIVE COMPLETE Trend-Analyse fΓΌr XAUUSD\n", - "⚑ Adaptive Interval: 5 min | Session: LONDON\n", - "🎯 Market Regime: RANGING (Strength: 18%)\n", - "🎚️ Adaptive Threshold: 70% (RELAXED)\n", - "\n", - "+------+---------+------------+---------+-----------+---------+\n", - "| TF | Trend | Strength | ATR | Slope | Price |\n", - "|------+---------+------------+---------+-----------+---------|\n", - "| D1 | uptrend | 723.35 | 94.5599 | 10.2601 | 5085.28 |\n", - "| H4 | uptrend | 571.96 | 47.5146 | 4.07649 | 5085.29 |\n", - "| H1 | uptrend | 773.85 | 28.408 | 3.29753 | 5085.29 |\n", - "| M30 | uptrend | 754.31 | 16.9941 | 1.92282 | 5085.29 |\n", - "| M15 | uptrend | 168.62 | 10.5495 | 0.266829 | 5085.29 |\n", - "| M5 | uptrend | 559.38 | 5.1523 | 0.432316 | 5085.29 |\n", - "+------+---------+------------+---------+-----------+---------+\n", - "\n", - "➑️ Standard-Trend: uptrend (Strength: 662.80)\n", - "➑️ Fast-Trend: uptrend (Required: 2/4)\n", - "➑️ Top-Down-Trend: uptrend\n", - "➑️ Confidence: 100.0% (Threshold: 70%)\n", - "➑️ Risk-Adjusted Strength: 236501.9 (Min: 80)\n", - "➑️ Signal Quality: EXCELLENT\n", - "\n", - "πŸš€ V1.6 Adaptive Complete: Full Features + Adaptive Rhythm\n", - "\n", - "🎯 SIGNAL SUMMARY:\n", - " Entry Signal: 1\n", - " Confidence: 100.0%\n", - " Threshold: 70%\n", - " Quality: EXCELLENT\n", - " Regime: RANGING\n", - " Adaptive Interval: 5 min\n", - " Session: LONDON\n", - "\n", - "βœ… TRADING SIGNAL: LONG\n" - ] - } - ], + "outputs": [], "source": [ "# Test 3: Signal Analysis\n", "print(\"\\nπŸ§ͺ TEST 3: Signal Analysis\")\n", @@ -3157,78 +2557,9 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "πŸ§ͺ TEST 4: Complete Bot Status\n", - "==================================================\n", - "\n", - "======================================================================\n", - "πŸ” V1.6 ADAPTIVE COMPLETE BOT STATUS\n", - "======================================================================\n", - "\n", - "πŸ“‘ SYSTEM STATUS:\n", - " MT5 Connection: βœ…\n", - " Scheduler Running: βœ…\n", - " Active Jobs: 6\n", - "\n", - "⚑ ADAPTIVE RHYTHM:\n", - " Current Interval: 5 min\n", - " Trading Session: LONDON\n", - " ATR (H1): 28.52\n", - " Volatility: HIGH\n", - "\n", - "πŸ›‘οΈ POSITION CONTROL:\n", - " Active Positions: 0/1\n", - " Trading Status: βœ… READY\n", - "\n", - "πŸ“Š CURRENT SIGNAL:\n", - "πŸ” Analyzing XAUUSD with V1.6 ADAPTIVE COMPLETE parameters...\n", - "\n", - "πŸ“Š V1.6 ADAPTIVE COMPLETE Trend-Analyse fΓΌr XAUUSD\n", - "⚑ Adaptive Interval: 5 min | Session: LONDON\n", - "🎯 Market Regime: RANGING (Strength: 18%)\n", - "🎚️ Adaptive Threshold: 70% (RELAXED)\n", - "\n", - "+------+---------+------------+---------+-----------+---------+\n", - "| TF | Trend | Strength | ATR | Slope | Price |\n", - "|------+---------+------------+---------+-----------+---------|\n", - "| D1 | uptrend | 723.35 | 94.5599 | 10.26 | 5085.2 |\n", - "| H4 | uptrend | 571.96 | 47.5146 | 4.07647 | 5085.2 |\n", - "| H1 | uptrend | 773.84 | 28.408 | 3.29751 | 5085.2 |\n", - "| M30 | uptrend | 754.3 | 16.9941 | 1.9228 | 5085.2 |\n", - "| M15 | uptrend | 168.61 | 10.5495 | 0.266808 | 5085.2 |\n", - "| M5 | uptrend | 559.35 | 5.1523 | 0.432295 | 5085.2 |\n", - "+------+---------+------------+---------+-----------+---------+\n", - "\n", - "➑️ Standard-Trend: uptrend (Strength: 662.80)\n", - "➑️ Fast-Trend: uptrend (Required: 2/4)\n", - "➑️ Top-Down-Trend: uptrend\n", - "➑️ Confidence: 100.0% (Threshold: 70%)\n", - "➑️ Risk-Adjusted Strength: 236498.7 (Min: 80)\n", - "➑️ Signal Quality: EXCELLENT\n", - "\n", - "πŸš€ V1.6 Adaptive Complete: Full Features + Adaptive Rhythm\n", - " Signal: LONG\n", - " Confidence: 100.0%\n", - " Threshold: 70%\n", - " Quality: EXCELLENT\n", - " Regime: RANGING\n", - " Would Trade: βœ… YES\n", - "\n", - "πŸŽ‰ VERSION INFO:\n", - " Version: V1.6 Adaptive Complete (CORRECTED)\n", - " Features: Position Control + Relaxed + Adaptive Rhythm\n", - " Status: Production-Ready βœ…\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# Test 4: Complete Bot Status\n", "print(\"\\nπŸ§ͺ TEST 4: Complete Bot Status\")\n", @@ -3238,113 +2569,9 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "πŸ§ͺ TEST 5: Trade Execution (DRY RUN)\n", - "==================================================\n", - "\n", - "Testing trading logic without actual order...\n", - "\n", - "πŸ“Š MULTI-TIMEFRAME REGIME CHECK\n", - "============================================================\n", - " H1: ADX 22.2 (weight 1.0x) πŸ“Š RANGE\n", - " H4: ADX 38.8 (weight 2.0x) βœ… TREND\n", - " D1: ADX 41.2 (weight 3.0x) βœ… TREND\n", - "\n", - " Weighted ADX: 37.2\n", - " Threshold: 25\n", - "\n", - " βœ… ALLOWED: TRENDING\n", - " Reason: D1 stark trending (ADX 41.2 > 30) β†’ Trend dominiert\n", - "============================================================\n", - "\n", - "βœ… REGIME CHECK PASSED: TRENDING\n", - " Reason: D1 stark trending (ADX 41.2 > 30) β†’ Trend dominiert\n", - "\n", - "πŸ” POSITION CHECK fΓΌr XAUUSD (V1.6 Adaptive Complete)\n", - "βœ… Position-Check OK: 0/1\n", - "πŸ” Analyzing XAUUSD with V1.6 ADAPTIVE COMPLETE parameters...\n", - "\n", - "πŸ“Š V1.6 ADAPTIVE COMPLETE Trend-Analyse fΓΌr XAUUSD\n", - "⚑ Adaptive Interval: 5 min | Session: LONDON\n", - "🎯 Market Regime: RANGING (Strength: 18%)\n", - "🎚️ Adaptive Threshold: 70% (RELAXED)\n", - "\n", - "+------+---------+------------+---------+-----------+---------+\n", - "| TF | Trend | Strength | ATR | Slope | Price |\n", - "|------+---------+------------+---------+-----------+---------|\n", - "| D1 | uptrend | 723.35 | 94.5599 | 10.26 | 5085.2 |\n", - "| H4 | uptrend | 571.96 | 47.5146 | 4.07647 | 5085.19 |\n", - "| H1 | uptrend | 773.84 | 28.408 | 3.29751 | 5085.19 |\n", - "| M30 | uptrend | 754.3 | 16.9941 | 1.9228 | 5085.19 |\n", - "| M15 | uptrend | 168.61 | 10.5495 | 0.266806 | 5085.19 |\n", - "| M5 | uptrend | 559.35 | 5.1523 | 0.432293 | 5085.19 |\n", - "+------+---------+------------+---------+-----------+---------+\n", - "\n", - "➑️ Standard-Trend: uptrend (Strength: 662.80)\n", - "➑️ Fast-Trend: uptrend (Required: 2/4)\n", - "➑️ Top-Down-Trend: uptrend\n", - "➑️ Confidence: 100.0% (Threshold: 70%)\n", - "➑️ Risk-Adjusted Strength: 236498.3 (Min: 80)\n", - "➑️ Signal Quality: EXCELLENT\n", - "\n", - "πŸš€ V1.6 Adaptive Complete: Full Features + Adaptive Rhythm\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:15,364 - INFO - πŸ“Š Adaptive Position Sizing:\n", - "2026-01-27 11:37:15,365 - INFO - Confidence: 100.0% (HIGH)\n", - "2026-01-27 11:37:15,366 - INFO - Base Risk: 2.0%\n", - "2026-01-27 11:37:15,367 - INFO - Multiplier: 1.5x\n", - "2026-01-27 11:37:15,369 - INFO - Adjusted Risk: 3.0%\n", - "2026-01-27 11:37:15,370 - INFO - πŸ’° Position Size: 0.10 lots\n", - "2026-01-27 11:37:15,372 - INFO - Risk Amount: $273.68\n", - "2026-01-27 11:37:15,373 - INFO - SL Distance: 69556.53 pips\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "πŸš€ V1.6 ADAPTIVE COMPLETE TRADE EXECUTION\n", - "Direction: LONG\n", - "Price: 5085.19000 | Volume: 0.10\n", - "SL: 5078.23435 | TP: 5102.57913\n", - "Confidence: 100.0% | Quality: EXCELLENT\n", - "Regime: RANGING\n", - "Adaptive Interval: 5 min\n", - "Session: LONDON\n", - "βœ… Trade erfolgreich! Ticket: 712086607\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:16,290 - INFO - πŸ“± Trade logged to DB + Telegram notification sent\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ“Š Positionen: 1\n", - "πŸ“Š Performance logged to trade_performance_v16_XAUUSD_202601.json\n", - "\n", - "βœ… Trade wΓΌrde ausgefΓΌhrt!\n" - ] - } - ], + "outputs": [], "source": [ "# Test 5: Trade Execution Test (DRY RUN)\n", "print(\"\\nπŸ§ͺ TEST 5: Trade Execution (DRY RUN)\")\n", @@ -3372,113 +2599,27 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "[.protected_check)>,\n", - " ,\n", - " )>,\n", - " ,\n", - " ,\n", - " ]" - ] - }, - "execution_count": 41, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "scheduler.get_jobs()" ] }, { "cell_type": "code", - "execution_count": 42, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "πŸ“Š MULTI-TIMEFRAME REGIME CHECK\n", - "============================================================\n", - " H1: ADX 22.2 (weight 1.0x) πŸ“Š RANGE\n", - " H4: ADX 38.8 (weight 2.0x) βœ… TREND\n", - " D1: ADX 41.2 (weight 3.0x) βœ… TREND\n", - "\n", - " Weighted ADX: 37.2\n", - " Threshold: 25\n", - "\n", - " βœ… ALLOWED: TRENDING\n", - " Reason: D1 stark trending (ADX 41.2 > 30) β†’ Trend dominiert\n", - "============================================================\n", - "\n", - "βœ… REGIME CHECK PASSED: TRENDING\n", - " Reason: D1 stark trending (ADX 41.2 > 30) β†’ Trend dominiert\n", - "\n", - "πŸ” POSITION CHECK fΓΌr XAUUSD (V1.6 Adaptive Complete)\n", - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | πŸ”΄ -3.10\n" - ] - } - ], + "outputs": [], "source": [ "execute_trade_v2_adaptive(**ADAPTIVE_COMPLETE_CONFIG)" ] }, { "cell_type": "code", - "execution_count": 43, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "======================================================================\n", - "πŸ”§ V1.6 ADAPTIVE COMPLETE - MANAGEMENT CONTROL PANEL\n", - "======================================================================\n", - "\n", - "πŸ“Š MONITORING:\n", - " 1. check_adaptive_bot_status() - Complete Status\n", - " 2. get_position_summary() - Position Overview\n", - " 3. print_status_report() - Adaptive Rhythm Status\n", - " 4. analyze_performance_adaptive() - Performance Analysis\n", - "\n", - "🎯 ANALYSIS:\n", - " 5. extended_top_down_v2_adaptive() - Signal Analysis\n", - " 6. rhythm_manager.calculate_optimal_interval() - Current Interval\n", - "\n", - "πŸ’Ό POSITION MANAGEMENT:\n", - " 7. close_existing_positions(force_close=True) - Close All Positions\n", - "\n", - "πŸš€ TRADING:\n", - " 8. execute_trade_v2_adaptive(**ADAPTIVE_COMPLETE_CONFIG) - Manual Trade\n", - "\n", - "βš™οΈ SCHEDULER CONTROL:\n", - " 9. scheduler.get_jobs() - Show Active Jobs\n", - " 10. scheduler.pause() - Pause Scheduler\n", - " 11. scheduler.resume() - Resume Scheduler\n", - " 12. scheduler.shutdown() - Stop Scheduler\n", - "\n", - "πŸ”§ CONFIGURATION:\n", - " 13. ADAPTIVE_COMPLETE_CONFIG - View Config\n", - " 14. rhythm_manager.atr_thresholds - ATR Settings\n", - "\n", - "πŸ“ QUICK COMMANDS:\n", - " β€’ Status: check_adaptive_bot_status()\n", - " β€’ Close: close_existing_positions(symbol, strategy_name, force_close=True)\n", - " β€’ Stop: scheduler.shutdown()\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# βœ… KORRIGIERT: Management Control Panel (fehlte in V1.6)\n", "def show_adaptive_management_options():\n", @@ -3528,17 +2669,9 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ’‘ To close positions manually, uncomment the code above\n" - ] - } - ], + "outputs": [], "source": [ "# Optional: Close positions manually\n", "# UNCOMMENT to use:\n", @@ -3549,17 +2682,9 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ’‘ To adjust ATR thresholds, uncomment the code above\n" - ] - } - ], + "outputs": [], "source": [ "# Optional: ATR-Schwellenwerte anpassen\n", "# UNCOMMENT to use:\n", @@ -3575,26 +2700,9 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸŽ›οΈ SCHEDULER CONTROL\n", - "\n", - "πŸ’‘ To pause trading:\n", - "scheduler.pause()\n", - "\n", - "πŸ’‘ To resume trading:\n", - "scheduler.resume()\n", - "\n", - "πŸ’‘ To stop completely:\n", - "scheduler.shutdown()\n" - ] - } - ], + "outputs": [], "source": [ "# Scheduler Control\n", "print(\"πŸŽ›οΈ SCHEDULER CONTROL\")\n", @@ -3619,92 +2727,9 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "======================================================================\n", - "πŸ“ˆ TRADINGBOT V1.6 ADAPTIVE COMPLETE - SUMMARY\n", - "======================================================================\n", - "\n", - "πŸŽ‰ VERSION: V1.6 ADAPTIVE COMPLETE (CORRECTED & READY!)\n", - "\n", - "βœ… ALLE FEATURES INTEGRIERT:\n", - "\n", - "πŸ›‘οΈ Position Control (aus V1.5):\n", - " β€’ Maximal 1 Trade gleichzeitig\n", - " β€’ check_existing_positions()\n", - " β€’ get_position_summary()\n", - " β€’ close_existing_positions() βœ… KORRIGIERT!\n", - "\n", - "πŸš€ Relaxed Trading Parameters (aus V1.5):\n", - " β€’ 10-20% niedrigere Confidence-Schwellen\n", - " β€’ Disabled Pullback Entry\n", - " β€’ Relaxed Signal-Quality-Filter\n", - " β€’ Niedrigere Min Risk-Adjusted Strength (80)\n", - " β€’ Fixed 2/4 Timeframe Alignment\n", - "\n", - "⚑ Adaptive Rhythm (NEU in V1.6):\n", - " β€’ Adaptive Intervalle: 5/15/30 Minuten\n", - " β€’ VolatilitΓ€ts-basiert (ATR)\n", - " β€’ Session-abhΓ€ngig (Asian/London/NY/Overlap)\n", - " β€’ Intelligente Entscheidungs-Matrix\n", - "\n", - "πŸ“Š Monitoring & Management (aus V1.5, angepasst):\n", - " β€’ Performance Logging\n", - " β€’ Performance Analysis\n", - " β€’ Complete Status Monitoring βœ… KORRIGIERT!\n", - " β€’ Management Control Panel βœ… KORRIGIERT!\n", - "\n", - "πŸ€– Automation:\n", - " β€’ APScheduler Integration\n", - " β€’ Adaptive Trading Checks (jede Minute)\n", - " β€’ Status Reports (alle 30 Min)\n", - "\n", - "πŸ§ͺ Testing Suite (aus V1.5):\n", - " β€’ Position Tests βœ… KORRIGIERT!\n", - " β€’ Signal Analysis Tests βœ… KORRIGIERT!\n", - " β€’ Adaptive Rhythm Tests\n", - " β€’ Complete Status Tests βœ… KORRIGIERT!\n", - "\n", - "βš™οΈ Configuration:\n", - " β€’ ADAPTIVE_COMPLETE_CONFIG βœ… KORRIGIERT!\n", - " β€’ Zentrale Parameter-Verwaltung\n", - "\n", - "🎯 VORTEILE VON V1.6 ADAPTIVE COMPLETE:\n", - " βœ… Maximale Sicherheit (Position Control)\n", - " βœ… Maximale Gelegenheiten (Relaxed Parameters)\n", - " βœ… Maximale Effizienz (Adaptive Rhythm)\n", - " βœ… VollstΓ€ndige Kontrolle (Complete Management)\n", - " βœ… Production-Ready!\n", - "\n", - "πŸ“Š TYPISCHER 24H-ZYKLUS:\n", - " 00:00-08:00 (Asian) β†’ 15-30 min\n", - " 08:00-13:00 (London) β†’ 5-30 min\n", - " 13:00-16:00 (Overlap) β†’ 5-15 min πŸ”₯\n", - " 16:00-21:00 (NY) β†’ 5-30 min\n", - " 21:00-00:00 (After) β†’ 15-30 min\n", - "\n", - "πŸ’‘ HAUPTFUNKTIONEN:\n", - " β€’ Status: check_adaptive_bot_status()\n", - " β€’ Analyze: extended_top_down_v2_adaptive()\n", - " β€’ Trade: execute_trade_v2_adaptive()\n", - " β€’ Manage: show_adaptive_management_options()\n", - "\n", - "πŸ† V1.6 ADAPTIVE COMPLETE - ALLE FUNKTIONEN INTEGRIERT!\n", - " πŸ›‘οΈ Sicherheit + πŸš€ AggressivitΓ€t + ⚑ Intelligenz\n", - " Production-Ready & Fully Tested! βœ…\n", - "\n", - "======================================================================\n", - "🎊 Ready for intelligent, safe, and adaptive trading!\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "print(\"\\n\" + \"=\"*70)\n", "print(\"πŸ“ˆ TRADINGBOT V1.6 ADAPTIVE COMPLETE - SUMMARY\")\n", @@ -3792,26 +2817,9 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ” Drawdown Protection Debug:\n", - " trading_paused: False\n", - " pause_until: None\n", - " pause_reason: None\n", - "\n", - "βœ… After force clear:\n", - " Can trade: True\n", - " Reason: OK\n", - "\n", - "πŸ“Š Consecutive losses from DB: 0\n" - ] - } - ], + "outputs": [], "source": [ "# Check Drawdown Protection Status\n", "print(\"πŸ” Drawdown Protection Debug:\")\n", @@ -3844,7 +2852,7 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -3928,21 +2936,9 @@ }, { "cell_type": "code", - "execution_count": 50, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "{'enabled_sessions': {'asian': True, 'london': False, 'overlap': False, 'ny': True}, 'session_confidence_thresholds': {'asian': 95, 'ny': 97, 'london': 95, 'overlap': 95}, 'base_confidence': 95, 'atr_mult': 1.5, 'max_risk_per_trade': 0.02, 'min_atr': 0.0008, 'min_lot': 0.1, 'max_lot': 0.2, 'default_lot': 0.1, 'risk_filter': True, 'use_pullback_entry': False, 'debug': True}\n", - "βœ… asian: Asian allowed: 97.8% WR, $151/trade (EXCELLENT!)\n", - "❌ london: London blocked: 12.5% win-rate, -$10/trade\n", - "❌ overlap: Overlap blocked: 14.3% win-rate, -$7/trade\n", - "βœ… ny: NY allowed: 43.3% WR, $48/trade (needs >=97% conf)\n" - ] - } - ], + "outputs": [], "source": [ "# PrΓΌfe ob Filter aktiv ist\n", "print(SESSION_WHITELIST_CONFIG)\n", @@ -3956,24 +2952,9 @@ }, { "cell_type": "code", - "execution_count": 51, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ“Š ADX auf verschiedenen Timeframes:\n", - "\n", - "M15 : ADX = 15.37 | Preis-Change (10 bars): +0.16%\n", - "H1 : ADX = 22.22 | Preis-Change (10 bars): +0.50%\n", - "H4 : ADX = 38.80 | Preis-Change (10 bars): +0.29%\n", - "D1 : ADX = 41.17 | Preis-Change (10 bars): +9.93%\n", - "\n", - "πŸ’° Aktueller Preis: 5085.43\n" - ] - } - ], + "outputs": [], "source": [ "# Verschiedene Timeframes checken\n", "print(\"πŸ“Š ADX auf verschiedenen Timeframes:\\n\")\n", @@ -3995,32 +2976,9 @@ }, { "cell_type": "code", - "execution_count": 52, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:18,697 - INFO - πŸ“Š Adaptive Position Sizing:\n", - "2026-01-27 11:37:18,699 - INFO - Confidence: 85.0% (HIGH)\n", - "2026-01-27 11:37:18,700 - INFO - Base Risk: 2.0%\n", - "2026-01-27 11:37:18,702 - INFO - Multiplier: 1.5x\n", - "2026-01-27 11:37:18,703 - INFO - Adjusted Risk: 3.0%\n", - "2026-01-27 11:37:18,704 - INFO - πŸ’° Position Size: 0.20 lots\n", - "2026-01-27 11:37:18,706 - INFO - Risk Amount: $300.00\n", - "2026-01-27 11:37:18,707 - INFO - SL Distance: 50.00 pips\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Base Risk: 0.02\n", - "Test Volume: 0.2\n" - ] - } - ], + "outputs": [], "source": [ "# Check 1: Base Risk\n", "print(f\"Base Risk: {adv_position_mgr.adaptive_sizing.base_risk}\")\n", @@ -4059,103 +3017,9 @@ }, { "cell_type": "code", - "execution_count": 53, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:18,783 - INFO - βœ… Enhanced Trailing Stop Manager initialized\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸš€ INITIALIZING ADVANCED OPTIMIZATIONS...\n", - "======================================================================\n", - "\n", - "βœ… Dynamic Threshold Optimizer initialized\n", - " Lookback: 20 trades\n", - " Target Win Rate: 60.0%\n", - " Range: 60% - 95%\n", - "βœ… Dynamic Threshold Optimizer initialized\n", - "βœ… Enhanced Signal Scorer initialized\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:18,784 - INFO - Breakeven: 30% + 300 pips\n", - "2026-01-27 11:37:18,785 - INFO - Multi-tier: 50%/75%/90%\n", - "2026-01-27 11:37:18,786 - INFO - ATR Trailing: βœ…\n", - "2026-01-27 11:37:18,788 - INFO - Time-based BE: βœ… (4.0h)\n", - "2026-01-27 11:37:18,832 - INFO - πŸ“‚ Loaded 51 equity records\n", - "2026-01-27 11:37:18,833 - INFO - ============================================================\n", - "2026-01-27 11:37:18,835 - INFO - πŸ“ˆ EQUITY CURVE TRADING INITIALIZED\n", - "2026-01-27 11:37:18,837 - INFO - ============================================================\n", - "2026-01-27 11:37:18,837 - INFO - MA Period: 10 trades\n", - "2026-01-27 11:37:18,838 - INFO - Min Trades: 5\n", - "2026-01-27 11:37:18,839 - INFO - Mode: Soft (reduced lots)\n", - "2026-01-27 11:37:18,842 - INFO - Soft Multiplier: 50%\n", - "2026-01-27 11:37:18,843 - INFO - Recovery Buffer: 0.5%\n", - "2026-01-27 11:37:18,843 - INFO - History File: equity_curve_history.json\n", - "2026-01-27 11:37:18,844 - INFO - Loaded Trades: 51\n", - "2026-01-27 11:37:18,845 - INFO - ============================================================\n", - "2026-01-27 11:37:18,847 - INFO - ============================================================\n", - "2026-01-27 11:37:18,848 - INFO - πŸ“Š DEMO TEST TRACKER INITIALIZED\n", - "2026-01-27 11:37:18,850 - INFO - ============================================================\n", - "2026-01-27 11:37:18,852 - INFO - Data File: demo_test_stats.json\n", - "2026-01-27 11:37:18,852 - INFO - Total Trades: 0\n", - "2026-01-27 11:37:18,852 - INFO - Start Date: 2026-01-27T11:37:18.847823\n", - "2026-01-27 11:37:18,854 - INFO - Days Running: 0\n", - "2026-01-27 11:37:18,855 - INFO - ============================================================\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Enhanced Trailing Stop Manager initialized\n", - "\n", - "βœ… Equity Curve Manager initialized\n", - "\n", - "βœ… Demo Test Tracker initialized\n", - "\n", - "πŸ”„ Running initial threshold optimization...\n", - "\n", - "======================================================================\n", - "πŸ”„ AUTO-OPTIMIZATION STARTED - 2026-01-27 11:37:18\n", - "======================================================================\n", - "\n", - "ASIAN : 70% β†’ 60% πŸ”½ | WR: 100.0% (20 trades)\n", - "NY : 70% β†’ 60% πŸ”½ | WR: 100.0% (20 trades)\n", - "LONDON : 70% β†’ 60% πŸ”½ | WR: 75.0% (20 trades)\n", - "OVERLAP : 70% β†’ 60% πŸ”½ | WR: 100.0% (20 trades)\n", - "βœ… Thresholds saved to: dynamic_thresholds.json\n", - "\n", - "βœ… Changes applied and saved!\n", - "\n", - "======================================================================\n", - "\n", - "\n", - "======================================================================\n", - "🎯 ALL ADVANCED OPTIMIZATIONS ACTIVE!\n", - "======================================================================\n", - "\n", - "πŸ“Š Summary:\n", - " β€’ Dynamic Thresholds: βœ… (auto-adjusts daily)\n", - " β€’ Enhanced Scoring: βœ… (5-factor analysis)\n", - " β€’ Enhanced Trailing: βœ… (multi-tier protection)\n", - " β€’ Equity Curve Trading: βœ… (auto-pause on drawdown)\n", - " β€’ Demo Test Tracker: βœ… (go-live readiness check)\n", - "\n", - "πŸ’‘ Tip: Use 'threshold_optimizer.generate_report()' for details\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# ADVANCED OPTIMIZATION SETUP (V1.8)\n", @@ -4283,41 +3147,9 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:19,550 - INFO - Added job \"\" to job store \"default\"\n", - "2026-01-27 11:37:19,551 - INFO - Removed job advanced_position_management\n", - "2026-01-27 11:37:19,553 - INFO - Added job \"create_enhanced_position_monitor..enhanced_position_monitor\" to job store \"default\"\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”„ Updating scheduler with advanced optimizations...\n", - "\n", - "βœ… Threshold optimization scheduled (daily at 00:00 UTC)\n", - " Removed old trailing stop\n", - "βœ… Enhanced trailing stop scheduled (every 1 min)\n", - "\n", - "πŸ“‹ Active Scheduler Jobs:\n", - " β€’ adaptive_trading_check: cron[minute='*']\n", - " β€’ position_monitor: interval[0:01:00]\n", - " β€’ enhanced_trailing_stop: interval[0:01:00]\n", - " β€’ status_report: cron[minute='0,30']\n", - " β€’ daily_report: cron[hour='22', minute='0']\n", - " β€’ threshold_optimization: cron[hour='0']\n", - " β€’ weekly_report: cron[day_of_week='sun', hour='23', minute='0']\n", - "\n", - "βœ… Scheduler updated successfully!\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# UPDATE SCHEDULER WITH OPTIMIZATIONS\n", @@ -4413,76 +3245,9 @@ }, { "cell_type": "code", - "execution_count": 55, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "======================================================================\n", - "🎯 DYNAMIC THRESHOLD OPTIMIZATION REPORT\n", - "======================================================================\n", - "\n", - "Generated: 2026-01-27 11:37:19\n", - "Lookback: 20 trades\n", - "Target Win Rate: 60.0%\n", - "\n", - "\n", - "======================================================================\n", - "πŸ“Š ASIAN SESSION\n", - "======================================================================\n", - "Recent Trades: 20\n", - "Win Rate: 100.0% (20W / 0L)\n", - "Avg Confidence: 88.8%\n", - "Total Profit: $234.80\n", - "Performance: EXCELLENT\n", - "\n", - "Current Threshold: 60%\n", - "Recommended: Keep at 60% βœ…\n", - "\n", - "======================================================================\n", - "πŸ“Š NY SESSION\n", - "======================================================================\n", - "Recent Trades: 20\n", - "Win Rate: 100.0% (20W / 0L)\n", - "Avg Confidence: 90.1%\n", - "Total Profit: $245.57\n", - "Performance: EXCELLENT\n", - "\n", - "Current Threshold: 60%\n", - "Recommended: Keep at 60% βœ…\n", - "\n", - "======================================================================\n", - "πŸ“Š LONDON SESSION\n", - "======================================================================\n", - "Recent Trades: 20\n", - "Win Rate: 75.0% (15W / 5L)\n", - "Avg Confidence: 88.5%\n", - "Total Profit: $144.01\n", - "Performance: EXCELLENT\n", - "\n", - "Current Threshold: 60%\n", - "Recommended: Keep at 60% βœ…\n", - "\n", - "======================================================================\n", - "πŸ“Š OVERLAP SESSION\n", - "======================================================================\n", - "Recent Trades: 20\n", - "Win Rate: 100.0% (20W / 0L)\n", - "Avg Confidence: 89.5%\n", - "Total Profit: $267.33\n", - "Performance: EXCELLENT\n", - "\n", - "Current Threshold: 60%\n", - "Recommended: Keep at 60% βœ…\n", - "\n", - "======================================================================\n", - "βœ… Optimization Complete\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TEST: Threshold Optimization Report\n", @@ -4493,57 +3258,9 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ” Analyzing XAUUSD with V1.6 ADAPTIVE COMPLETE parameters...\n", - "\n", - "πŸ“Š V1.6 ADAPTIVE COMPLETE Trend-Analyse fΓΌr XAUUSD\n", - "⚑ Adaptive Interval: 5 min | Session: LONDON\n", - "🎯 Market Regime: RANGING (Strength: 18%)\n", - "🎚️ Adaptive Threshold: 70% (RELAXED)\n", - "\n", - "+------+---------+------------+---------+-----------+---------+\n", - "| TF | Trend | Strength | ATR | Slope | Price |\n", - "|------+---------+------------+---------+-----------+---------|\n", - "| D1 | uptrend | 723.36 | 94.5599 | 10.2601 | 5085.43 |\n", - "| H4 | uptrend | 571.97 | 47.5146 | 4.07653 | 5085.43 |\n", - "| H1 | uptrend | 773.86 | 28.408 | 3.29756 | 5085.43 |\n", - "| M30 | uptrend | 754.32 | 16.9941 | 1.92286 | 5085.43 |\n", - "| M15 | uptrend | 168.64 | 10.5495 | 0.266862 | 5085.43 |\n", - "| M5 | uptrend | 559.42 | 5.1523 | 0.432349 | 5085.43 |\n", - "+------+---------+------------+---------+-----------+---------+\n", - "\n", - "➑️ Standard-Trend: uptrend (Strength: 662.80)\n", - "➑️ Fast-Trend: uptrend (Required: 2/4)\n", - "➑️ Top-Down-Trend: uptrend\n", - "➑️ Confidence: 100.0% (Threshold: 70%)\n", - "➑️ Risk-Adjusted Strength: 236507.1 (Min: 80)\n", - "➑️ Signal Quality: EXCELLENT\n", - "\n", - "πŸš€ V1.6 Adaptive Complete: Full Features + Adaptive Rhythm\n", - "🎯 ENHANCED SIGNAL TEST\n", - "==================================================\n", - "Base Confidence: 100.0%\n", - "Enhanced Score: 68.5%\n", - "Signal Quality: GOOD\n", - "Direction: LONG\n", - "\n", - "πŸ“Š Component Breakdown:\n", - " Trend: 100.0/100\n", - " Volume: 40.0/100\n", - " Momentum: 70.0/100\n", - " S/R: 50.0/100\n", - " Fibonacci: 60.0/100\n", - "\n", - "πŸ’‘ Reason: Strong trend (100%)\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TEST: Enhanced Signal Scoring\n", @@ -4586,28 +3303,9 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ“ˆ ENHANCED TRAILING STOP STATUS\n", - "==================================================\n", - "\n", - "Position #712086607:\n", - " Type: LONG\n", - " Entry: 5085.58\n", - " Current SL: 5078.23\n", - " TP: 5102.58\n", - " Profit: -1.50 USD (-15.0 pips)\n", - " Progress: -0.9%\n", - " Tier: 0/3\n", - " Next: Breakeven @ 30%\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TEST: Enhanced Trailing Stop Status\n", @@ -4683,19 +3381,10 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": null, "id": "ec5e4268", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Enhanced trading check wrapper created!\n", - " This will use multi-factor analysis for all trades\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# ENHANCED TRADING CHECK WITH SIGNAL SCORING\n", @@ -4826,53 +3515,10 @@ }, { "cell_type": "code", - "execution_count": 59, + "execution_count": null, "id": "9b32db82", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:20,484 - INFO - Removed job adaptive_trading_check\n", - "2026-01-27 11:37:20,504 - INFO - Added job \"Enhanced Adaptive Trading Check\" to job store \"default\"\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”„ Updating scheduler with enhanced trading check...\n", - " Removed old adaptive_trading_check job\n", - "\n", - "βœ… Enhanced Trading Check activated!\n", - " Scheduler updated with multi-factor signal scoring\n", - "\n", - "πŸ“‹ Active Scheduler Jobs:\n", - " β€’ position_monitor: interval[0:01:00]\n", - " β€’ enhanced_trailing_stop: interval[0:01:00]\n", - " β€’ adaptive_trading_check: interval[0:01:00]\n", - " β€’ status_report: cron[minute='0,30']\n", - " β€’ daily_report: cron[hour='22', minute='0']\n", - " β€’ threshold_optimization: cron[hour='0']\n", - " β€’ weekly_report: cron[day_of_week='sun', hour='23', minute='0']\n", - "\n", - "======================================================================\n", - "🎯 ENHANCED SIGNAL SCORING NOW ACTIVE!\n", - "======================================================================\n", - "\n", - "Bot will now use 5-factor analysis for all trading signals:\n", - " βœ… Trend Alignment (30%)\n", - " βœ… Volume Analysis (20%)\n", - " βœ… Momentum (RSI/MACD) (20%)\n", - " βœ… Support/Resistance (15%)\n", - " βœ… Fibonacci Levels (15%)\n", - "\n", - "πŸ’‘ Expected improvement: +5-10% Win Rate\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# UPDATE SCHEDULER WITH ENHANCED VERSION\n", @@ -4932,67 +3578,10 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": null, "id": "62054af5", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ§ͺ Testing Enhanced Signal Scoring...\n", - "======================================================================\n", - "πŸ” Analyzing XAUUSD with V1.6 ADAPTIVE COMPLETE parameters...\n", - "\n", - "πŸ“Š V1.6 ADAPTIVE COMPLETE Trend-Analyse fΓΌr XAUUSD\n", - "⚑ Adaptive Interval: 5 min | Session: LONDON\n", - "🎯 Market Regime: RANGING (Strength: 18%)\n", - "🎚️ Adaptive Threshold: 70% (RELAXED)\n", - "\n", - "+------+---------+------------+---------+-----------+---------+\n", - "| TF | Trend | Strength | ATR | Slope | Price |\n", - "|------+---------+------------+---------+-----------+---------|\n", - "| D1 | uptrend | 723.36 | 94.5599 | 10.2601 | 5085.42 |\n", - "| H4 | uptrend | 571.97 | 47.5146 | 4.07653 | 5085.42 |\n", - "| H1 | uptrend | 773.86 | 28.408 | 3.29756 | 5085.42 |\n", - "| M30 | uptrend | 754.32 | 16.9941 | 1.92285 | 5085.42 |\n", - "| M15 | uptrend | 168.64 | 10.5495 | 0.26686 | 5085.42 |\n", - "| M5 | uptrend | 559.42 | 5.1523 | 0.432347 | 5085.42 |\n", - "+------+---------+------------+---------+-----------+---------+\n", - "\n", - "➑️ Standard-Trend: uptrend (Strength: 662.80)\n", - "➑️ Fast-Trend: uptrend (Required: 2/4)\n", - "➑️ Top-Down-Trend: uptrend\n", - "➑️ Confidence: 100.0% (Threshold: 70%)\n", - "➑️ Risk-Adjusted Strength: 236506.7 (Min: 80)\n", - "➑️ Signal Quality: EXCELLENT\n", - "\n", - "πŸš€ V1.6 Adaptive Complete: Full Features + Adaptive Rhythm\n", - "\n", - "πŸ“Š Base Signal:\n", - " Direction: 1\n", - " Confidence: 100.0%\n", - "\n", - "🎯 Enhanced Analysis:\n", - " Trend: 100.0/100 (30%)\n", - " Volume: 40.0/100 (20%)\n", - " Momentum: 70.0/100 (20%)\n", - " S/R: 50.0/100 (15%)\n", - " Fibonacci: 60.0/100 (15%)\n", - " ─────────────────────────────────────\n", - " Total Score: 68.5%\n", - " Quality: good\n", - "\n", - "⚠️ Enhanced score LOWER by 31.5%\n", - " Setup has weak confirmation factors\n", - "\n", - "πŸ’‘ Strong trend (100%)\n", - "\n", - "======================================================================\n", - "βœ… Test complete!\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# TEST ENHANCED SIGNAL SCORING\n", @@ -5073,19 +3662,10 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": null, "id": "1f4092ff", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "βœ… Enhanced trading check wrapper created!\n", - " This will use multi-factor analysis for all trades\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# ENHANCED TRADING CHECK WITH SIGNAL SCORING\n", @@ -5216,53 +3796,10 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": null, "id": "d5ac4237", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:20,860 - INFO - Removed job adaptive_trading_check\n", - "2026-01-27 11:37:20,863 - INFO - Added job \"Enhanced Adaptive Trading Check\" to job store \"default\"\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ”„ Updating scheduler with enhanced trading check...\n", - " Removed old adaptive_trading_check job\n", - "\n", - "βœ… Enhanced Trading Check activated!\n", - " Scheduler updated with multi-factor signal scoring\n", - "\n", - "πŸ“‹ Active Scheduler Jobs:\n", - " β€’ position_monitor: interval[0:01:00]\n", - " β€’ enhanced_trailing_stop: interval[0:01:00]\n", - " β€’ adaptive_trading_check: interval[0:01:00]\n", - " β€’ status_report: cron[minute='0,30']\n", - " β€’ daily_report: cron[hour='22', minute='0']\n", - " β€’ threshold_optimization: cron[hour='0']\n", - " β€’ weekly_report: cron[day_of_week='sun', hour='23', minute='0']\n", - "\n", - "======================================================================\n", - "🎯 ENHANCED SIGNAL SCORING NOW ACTIVE!\n", - "======================================================================\n", - "\n", - "Bot will now use 5-factor analysis for all trading signals:\n", - " βœ… Trend Alignment (30%)\n", - " βœ… Volume Analysis (20%)\n", - " βœ… Momentum (RSI/MACD) (20%)\n", - " βœ… Support/Resistance (15%)\n", - " βœ… Fibonacci Levels (15%)\n", - "\n", - "πŸ’‘ Expected improvement: +5-10% Win Rate\n", - "======================================================================\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# UPDATE SCHEDULER WITH ENHANCED VERSION\n", @@ -5314,221 +3851,14 @@ "execution_count": null, "id": "a5c25689", "metadata": {}, - "outputs": [ - { - "ename": "SyntaxError", - "evalue": "unterminated string literal (detected at line 6) (3155802469.py, line 6)", - "output_type": "error", - "traceback": [ - "\u001b[1;36m Cell \u001b[1;32mIn[63], line 6\u001b[1;36m\u001b[0m\n\u001b[1;33m print(\"\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m unterminated string literal (detected at line 6)\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:37:23,788 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:37:33,835 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:37:43,860 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:37:53,878 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:03,934 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:13,303 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:38:13 CET)\" (scheduled at 2026-01-27 11:38:13.102754+01:00)\n", - "2026-01-27 11:38:13,356 - INFO - βœ… Updated closed position 711896603: manual_close, Profit: 11.74\n", - "2026-01-27 11:38:13,962 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:14,512 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:39:13 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "⚠️ Telegram send failed: 400\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:38:19,706 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:39:19 CET)\" (scheduled at 2026-01-27 11:38:19.553632+01:00)\n", - "2026-01-27 11:38:19,786 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:38:19,787 - INFO - Session: LONDON | ATR: 5.48929\n", - "2026-01-27 11:38:19,788 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:39:19 CET)\" executed successfully\n", - "2026-01-27 11:38:21,161 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:39:20 CET)\" (scheduled at 2026-01-27 11:38:20.863232+01:00)\n", - "2026-01-27 11:38:21,163 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:39:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 21.80\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:38:23,989 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:34,034 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:44,063 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:38:54,076 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:04,115 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:13,280 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:13 CET)\" (scheduled at 2026-01-27 11:39:13.102754+01:00)\n", - "2026-01-27 11:39:13,282 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:13 CET)\" executed successfully\n", - "2026-01-27 11:39:14,145 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:19,574 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:19 CET)\" (scheduled at 2026-01-27 11:39:19.553632+01:00)\n", - "2026-01-27 11:39:19,587 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:39:19,589 - INFO - Session: LONDON | ATR: 5.51000\n", - "2026-01-27 11:39:19,591 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:19 CET)\" executed successfully\n", - "2026-01-27 11:39:21,307 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:20 CET)\" (scheduled at 2026-01-27 11:39:20.863232+01:00)\n", - "2026-01-27 11:39:21,311 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:40:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 27.90\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:39:24,176 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:34,199 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:44,227 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:39:54,251 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:04,280 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:13,111 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:13 CET)\" (scheduled at 2026-01-27 11:40:13.102754+01:00)\n", - "2026-01-27 11:40:13,111 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:13 CET)\" executed successfully\n", - "2026-01-27 11:40:14,308 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:19,555 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:19 CET)\" (scheduled at 2026-01-27 11:40:19.553632+01:00)\n", - "2026-01-27 11:40:19,555 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:40:19,555 - INFO - Session: LONDON | ATR: 5.33143\n", - "2026-01-27 11:40:19,555 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:19 CET)\" executed successfully\n", - "2026-01-27 11:40:20,936 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:20 CET)\" (scheduled at 2026-01-27 11:40:20.863232+01:00)\n", - "2026-01-27 11:40:20,942 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:41:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 29.70\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:40:24,332 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:34,357 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:44,388 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:40:54,427 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:04,451 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:13,178 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:13 CET)\" (scheduled at 2026-01-27 11:41:13.102754+01:00)\n", - "2026-01-27 11:41:13,181 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:13 CET)\" executed successfully\n", - "2026-01-27 11:41:14,478 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:19,732 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:19 CET)\" (scheduled at 2026-01-27 11:41:19.553632+01:00)\n", - "2026-01-27 11:41:19,752 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:41:19,753 - INFO - Session: LONDON | ATR: 5.34571\n", - "2026-01-27 11:41:19,754 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:19 CET)\" executed successfully\n", - "2026-01-27 11:41:21,152 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:20 CET)\" (scheduled at 2026-01-27 11:41:20.863232+01:00)\n", - "2026-01-27 11:41:21,152 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:42:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 24.00\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:41:24,503 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:34,529 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:44,552 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:41:54,581 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:04,614 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:13,272 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:13 CET)\" (scheduled at 2026-01-27 11:42:13.102754+01:00)\n", - "2026-01-27 11:42:13,274 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:13 CET)\" executed successfully\n", - "2026-01-27 11:42:14,647 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:19,624 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:19 CET)\" (scheduled at 2026-01-27 11:42:19.553632+01:00)\n", - "2026-01-27 11:42:19,624 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:42:19,624 - INFO - Session: LONDON | ATR: 5.36357\n", - "2026-01-27 11:42:19,624 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:19 CET)\" executed successfully\n", - "2026-01-27 11:42:21,145 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:20 CET)\" (scheduled at 2026-01-27 11:42:20.863232+01:00)\n", - "2026-01-27 11:42:21,147 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:43:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 20.50\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:42:24,680 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:34,701 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:44,718 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:42:54,745 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:43:04,786 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:43:13,104 - INFO - Running job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:13 CET)\" (scheduled at 2026-01-27 11:43:13.102754+01:00)\n", - "2026-01-27 11:43:13,155 - INFO - Job \"PositionMonitor.check_open_positions (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:13 CET)\" executed successfully\n", - "2026-01-27 11:43:14,812 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:43:19,910 - INFO - Running job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:19 CET)\" (scheduled at 2026-01-27 11:43:19.553632+01:00)\n", - "2026-01-27 11:43:19,931 - INFO - \n", - "πŸ” Enhanced Position Monitor - 1 position(s)\n", - "2026-01-27 11:43:19,933 - INFO - Session: LONDON | ATR: 5.43214\n", - "2026-01-27 11:43:19,934 - INFO - Job \"create_enhanced_position_monitor..enhanced_position_monitor (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:19 CET)\" executed successfully\n", - "2026-01-27 11:43:21,152 - INFO - Running job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:20 CET)\" (scheduled at 2026-01-27 11:43:20.863232+01:00)\n", - "2026-01-27 11:43:21,154 - INFO - Job \"Enhanced Adaptive Trading Check (trigger: interval[0:01:00], next run at: 2026-01-27 11:44:20 CET)\" executed successfully\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "πŸ›‘ TRADE BLOCKIERT: 1/1 Positionen aktiv\n", - " BUY @ 5085.58 | 🟒 13.60\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2026-01-27 11:43:24,837 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:43:34,862 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n", - "2026-01-27 11:43:44,891 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n" - ] - } - ], + "outputs": [], "source": [ "# ==========================================\n", "# πŸ“Š DEMO TEST TRACKER - REPORTS & GO-LIVE CHECK\n", "# ==========================================\n", "# FΓΌhre diese Cell aus um den aktuellen Status zu sehen\n", "\n", - "print(\"\n", - "\" + \"=\" * 70)\n", + "print(\"\\n\" + \"=\" * 70)\n", "print(\"πŸ“Š DEMO TEST TRACKER\")\n", "print(\"=\" * 70)\n", "\n", @@ -5536,8 +3866,7 @@ "demo_tracker.print_report()\n", "\n", "# Go-Live Readiness Check\n", - "print(\"\n", - "\")\n", + "print(\"\\n\")\n", "is_ready = demo_tracker.print_go_live_check()\n", "\n", "# Daily Summary\n", @@ -5547,7 +3876,7 @@ " print(\"πŸŽ‰ GRATULATION! Dein Bot ist bereit fΓΌr echtes Geld!\")\n", " print(\" Empfehlung: Starte mit 0.01 Lots und beobachte 2 Wochen.\")\n", "else:\n", - " print(\"⏳ Weiter testen... Der Bot sammelt noch Daten.\")\n" + " print(\"⏳ Weiter testen... Der Bot sammelt noch Daten.\")" ] }, {