3090 lines
135 KiB
Plaintext
3090 lines
135 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"# TradingBot V1.4 - Mit Position Control\n",
|
|
"\n",
|
|
"## 🛡️ **Wichtige Verbesserung: Maximal 1 Trade gleichzeitig**\n",
|
|
"\n",
|
|
"### Neue Features:\n",
|
|
"- ✅ **Position-Überprüfung** vor jedem Trade\n",
|
|
"- ✅ **Maximal 1 aktive Position** pro Symbol\n",
|
|
"- ✅ **Position-Management Funktionen**\n",
|
|
"- ✅ **Automatische Blockierung** bei bestehenden Trades\n",
|
|
"- ✅ **Position-Status Monitoring**"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 1. Imports und Setup"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ All imports successful\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Imports\n",
|
|
"import pandas as pd\n",
|
|
"import numpy as np\n",
|
|
"import MetaTrader5 as mt\n",
|
|
"import pandas_ta as ta\n",
|
|
"from scipy.signal import savgol_filter, find_peaks\n",
|
|
"from sklearn.linear_model import LinearRegression\n",
|
|
"from tabulate import tabulate\n",
|
|
"from datetime import datetime, timedelta\n",
|
|
"import json\n",
|
|
"import keyring as kr\n",
|
|
"\n",
|
|
"print(\"✅ All imports successful\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 2. MT5 Login und Setup"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"Login successful: True\n",
|
|
"Symbol: XAUUSD\n",
|
|
"Strategy: TradingBot_V1.4_PositionControl\n",
|
|
"Max Positions: 1\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# MT5 Login\n",
|
|
"mt.initialize()\n",
|
|
"login = 10800246\n",
|
|
"server = 'VantageInternational-Demo'\n",
|
|
"password = kr.get_password(server, str(login))\n",
|
|
"login_result = mt.login(login, password, server)\n",
|
|
"print(f\"Login successful: {login_result}\")\n",
|
|
"\n",
|
|
"# Trading Parameter\n",
|
|
"symbol = \"XAUUSD\"\n",
|
|
"strategy_name = \"TradingBot_V1.4_PositionControl\"\n",
|
|
"max_positions = 1 # WICHTIG: Maximal 1 Position\n",
|
|
"\n",
|
|
"print(f\"Symbol: {symbol}\")\n",
|
|
"print(f\"Strategy: {strategy_name}\")\n",
|
|
"print(f\"Max Positions: {max_positions}\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 3. 🛡️ Position Control Functions"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Position Control functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"def check_existing_positions(symbol=\"XAUUSD\", strategy_name=\"TradingBot_V1.4_PositionControl\"):\n",
|
|
" \"\"\"\n",
|
|
" Überprüft ob bereits Positionen für das Symbol und die Strategie existieren\n",
|
|
" \"\"\"\n",
|
|
" try:\n",
|
|
" # Alle Positionen für das Symbol abrufen\n",
|
|
" positions = mt.positions_get(symbol=symbol)\n",
|
|
" \n",
|
|
" if positions is None:\n",
|
|
" return False, {\"count\": 0, \"details\": []}\n",
|
|
" \n",
|
|
" # Filter nach Strategie-Namen im Kommentar\n",
|
|
" strategy_positions = []\n",
|
|
" for pos in positions:\n",
|
|
" if strategy_name in pos.comment:\n",
|
|
" strategy_positions.append({\n",
|
|
" \"ticket\": pos.ticket,\n",
|
|
" \"type\": \"BUY\" if pos.type == 0 else \"SELL\",\n",
|
|
" \"volume\": pos.volume,\n",
|
|
" \"price_open\": pos.price_open,\n",
|
|
" \"profit\": pos.profit,\n",
|
|
" \"comment\": pos.comment,\n",
|
|
" \"time_open\": pd.to_datetime(pos.time, unit='s')\n",
|
|
" })\n",
|
|
" \n",
|
|
" has_position = len(strategy_positions) > 0\n",
|
|
" \n",
|
|
" position_info = {\n",
|
|
" \"count\": len(strategy_positions),\n",
|
|
" \"details\": strategy_positions\n",
|
|
" }\n",
|
|
" \n",
|
|
" return has_position, position_info\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Error checking positions: {e}\")\n",
|
|
" return False, {\"count\": 0, \"details\": []}\n",
|
|
"\n",
|
|
"def get_position_summary(symbol=\"XAUUSD\", strategy_name=\"TradingBot_V1.4_PositionControl\"):\n",
|
|
" \"\"\"\n",
|
|
" Gibt eine übersichtliche Zusammenfassung der aktuellen Positionen\n",
|
|
" \"\"\"\n",
|
|
" has_position, position_info = check_existing_positions(symbol, strategy_name)\n",
|
|
" \n",
|
|
" print(f\"\\n📊 POSITION SUMMARY für {symbol}\")\n",
|
|
" print(\"=\" * 50)\n",
|
|
" \n",
|
|
" if not has_position:\n",
|
|
" print(\"✅ Keine aktiven Positionen - bereit für neuen Trade\")\n",
|
|
" return False\n",
|
|
" \n",
|
|
" print(f\"⚠️ {position_info['count']} aktive Position(en) gefunden:\")\n",
|
|
" \n",
|
|
" for i, pos in enumerate(position_info['details'], 1):\n",
|
|
" profit_emoji = \"🟢\" if pos['profit'] >= 0 else \"🔴\"\n",
|
|
" print(f\"\\n Position {i}:\")\n",
|
|
" print(f\" Ticket: {pos['ticket']}\")\n",
|
|
" print(f\" Typ: {pos['type']}\")\n",
|
|
" print(f\" Volumen: {pos['volume']}\")\n",
|
|
" print(f\" Eröffnungspreis: {pos['price_open']}\")\n",
|
|
" print(f\" Profit: {profit_emoji} {pos['profit']:.2f}\")\n",
|
|
" print(f\" Eröffnungszeit: {pos['time_open']}\")\n",
|
|
" \n",
|
|
" print(f\"\\n🛑 TRADING BLOCKIERT - Maximal 1 Position erlaubt\")\n",
|
|
" return True\n",
|
|
"\n",
|
|
"print(\"✅ Position Control functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Position closing function defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"def close_existing_positions(symbol=\"XAUUSD\", strategy_name=\"TradingBot_V1.4_PositionControl\", force_close=False):\n",
|
|
" \"\"\"\n",
|
|
" Schließt bestehende Positionen (optional)\n",
|
|
" \"\"\"\n",
|
|
" has_position, position_info = check_existing_positions(symbol, strategy_name)\n",
|
|
" \n",
|
|
" if not has_position:\n",
|
|
" print(\"✅ Keine Positionen zum Schließen\")\n",
|
|
" return True\n",
|
|
" \n",
|
|
" if not force_close:\n",
|
|
" print(f\"⚠️ {position_info['count']} Position(en) gefunden. Verwende force_close=True zum Schließen.\")\n",
|
|
" return False\n",
|
|
" \n",
|
|
" print(f\"🔄 Schließe {position_info['count']} Position(en)...\")\n",
|
|
" \n",
|
|
" success_count = 0\n",
|
|
" for pos in position_info['details']:\n",
|
|
" try:\n",
|
|
" # Position schließen\n",
|
|
" close_request = {\n",
|
|
" \"action\": mt.TRADE_ACTION_DEAL,\n",
|
|
" \"symbol\": symbol,\n",
|
|
" \"volume\": pos['volume'],\n",
|
|
" \"type\": mt.ORDER_TYPE_SELL if pos['type'] == \"BUY\" else mt.ORDER_TYPE_BUY,\n",
|
|
" \"position\": pos['ticket'],\n",
|
|
" \"price\": mt.symbol_info_tick(symbol).bid if pos['type'] == \"BUY\" else mt.symbol_info_tick(symbol).ask,\n",
|
|
" \"deviation\": 20,\n",
|
|
" \"magic\": 234000,\n",
|
|
" \"comment\": f\"Close {strategy_name}\",\n",
|
|
" \"type_time\": mt.ORDER_TIME_GTC,\n",
|
|
" \"type_filling\": mt.ORDER_FILLING_IOC,\n",
|
|
" }\n",
|
|
" \n",
|
|
" result = mt.order_send(close_request)\n",
|
|
" \n",
|
|
" if result.retcode == mt.TRADE_RETCODE_DONE:\n",
|
|
" print(f\"✅ Position {pos['ticket']} erfolgreich geschlossen\")\n",
|
|
" success_count += 1\n",
|
|
" else:\n",
|
|
" print(f\"❌ Fehler beim Schließen von Position {pos['ticket']}: {result.comment}\")\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"❌ Exception beim Schließen von Position {pos['ticket']}: {e}\")\n",
|
|
" \n",
|
|
" print(f\"📊 {success_count}/{len(position_info['details'])} Positionen erfolgreich geschlossen\")\n",
|
|
" return success_count == len(position_info['details'])\n",
|
|
"\n",
|
|
"print(\"✅ Position closing function defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 📊 4. Standard Helper Functions"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Helper functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Helper Functions (unverändert)\n",
|
|
"def get_rates(timeframe=\"h4\", count=200, symbol=\"XAUUSD\"):\n",
|
|
" timeframes_dict = {\n",
|
|
" \"m1\": mt.TIMEFRAME_M1, \"m5\": mt.TIMEFRAME_M5, \"m15\": mt.TIMEFRAME_M15,\n",
|
|
" \"m30\": mt.TIMEFRAME_M30, \"h1\": mt.TIMEFRAME_H1, \"h4\": mt.TIMEFRAME_H4, \"d1\": mt.TIMEFRAME_D1\n",
|
|
" }\n",
|
|
" try:\n",
|
|
" rates = mt.copy_rates_from_pos(symbol, timeframes_dict[timeframe], 0, count)\n",
|
|
" if rates is None: return None\n",
|
|
" df = pd.DataFrame(rates)\n",
|
|
" df['time'] = pd.to_datetime(df['time'], unit='s')\n",
|
|
" df.set_index('time', inplace=True)\n",
|
|
" df['atr'] = ta.atr(df['high'], df['low'], df['close'], length=14)\n",
|
|
" return df\n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Error getting rates: {e}\")\n",
|
|
" return None\n",
|
|
"\n",
|
|
"def check_risk_limits(symbol, volume=None, order_type=\"buy\", max_risk_per_trade=0.01):\n",
|
|
" try:\n",
|
|
" account_info = mt.account_info()\n",
|
|
" if not account_info: return False\n",
|
|
" balance, equity = account_info.balance, account_info.equity\n",
|
|
" if equity < balance * 0.8: return False\n",
|
|
" return True\n",
|
|
" except: return False\n",
|
|
"\n",
|
|
"def market_order(symbol, volume, order_type, stoploss=None, take_profit=None, deviation=20):\n",
|
|
" try:\n",
|
|
" price_dict = {'buy': mt.symbol_info_tick(symbol).ask, 'sell': mt.symbol_info_tick(symbol).bid}\n",
|
|
" order_type_dict = {'buy': mt.ORDER_TYPE_BUY, 'sell': mt.ORDER_TYPE_SELL}\n",
|
|
" request = {\n",
|
|
" \"action\": mt.TRADE_ACTION_DEAL, \"symbol\": symbol, \"volume\": volume,\n",
|
|
" \"type\": order_type_dict[order_type], \"price\": price_dict[order_type],\n",
|
|
" \"sl\": stoploss, \"tp\": take_profit, \"deviation\": deviation,\n",
|
|
" \"magic\": 234000, \"comment\": strategy_name, \"type_time\": mt.ORDER_TIME_GTC,\n",
|
|
" \"type_filling\": mt.ORDER_FILLING_IOC\n",
|
|
" }\n",
|
|
" return mt.order_send(request)\n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Error in market order: {e}\")\n",
|
|
" return None\n",
|
|
"\n",
|
|
"print(\"✅ Helper functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 5. 🔍 Market Analysis Functions"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Market analysis functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Market Regime Detection (unverändert)\n",
|
|
"def detect_market_regime(df, lookback=50):\n",
|
|
" try:\n",
|
|
" adx_data = ta.adx(df['high'], df['low'], df['close'], length=14)\n",
|
|
" adx = adx_data['ADX_14'].iloc[-1] if adx_data is not None and 'ADX_14' in adx_data.columns else 25.0\n",
|
|
" \n",
|
|
" try:\n",
|
|
" bb = ta.bbands(df['close'], length=20)\n",
|
|
" if bb is not None and len(bb.columns) >= 3:\n",
|
|
" bb_cols = bb.columns.tolist()\n",
|
|
" bb_width = ((bb[bb_cols[0]] - bb[bb_cols[2]]) / bb[bb_cols[1]] * 100).iloc[-lookback:].mean()\n",
|
|
" else: bb_width = 4.0\n",
|
|
" except: bb_width = 4.0\n",
|
|
" \n",
|
|
" price_range = df['high'].iloc[-lookback:].max() - df['low'].iloc[-lookback:].min()\n",
|
|
" atr_avg = df['atr'].iloc[-lookback:].mean()\n",
|
|
" range_ratio = price_range / (atr_avg * lookback) if atr_avg > 0 else 1.0\n",
|
|
" vol_cluster = df['atr'].iloc[-10:].std() / df['atr'].iloc[-50:].mean() if len(df) >= 50 else 1.0\n",
|
|
" \n",
|
|
" if adx > 25 and range_ratio > 1.5:\n",
|
|
" regime, strength = 'trending', min(100, adx * 2)\n",
|
|
" elif vol_cluster > 1.5:\n",
|
|
" regime, strength = 'volatile', min(100, vol_cluster * 50)\n",
|
|
" else:\n",
|
|
" regime, strength = 'ranging', max(0, 100 - adx * 2)\n",
|
|
" \n",
|
|
" return {'regime': regime, 'strength': strength, 'adx': adx, 'bb_width': bb_width, 'range_ratio': range_ratio, 'vol_cluster': vol_cluster}\n",
|
|
" except Exception as e:\n",
|
|
" return {'regime': 'ranging', 'strength': 50, 'adx': 20, 'bb_width': 4.0, 'range_ratio': 1.0, 'vol_cluster': 1.0}\n",
|
|
"\n",
|
|
"def calculate_adaptive_confidence_threshold(regime_info, base_confidence=70):\n",
|
|
" regime = regime_info['regime']\n",
|
|
" adx = regime_info['adx']\n",
|
|
" \n",
|
|
" if regime == 'trending':\n",
|
|
" return max(60, base_confidence - 15) if adx > 30 else base_confidence - 10\n",
|
|
" elif regime == 'ranging':\n",
|
|
" return base_confidence + 15\n",
|
|
" elif regime == 'volatile':\n",
|
|
" return base_confidence + 20\n",
|
|
" return base_confidence\n",
|
|
"\n",
|
|
"def get_enhanced_trend(timeframe=\"H4\", lookback=150, symbol=\"XAUUSD\"):\n",
|
|
" tf_map = {\"D1\": \"d1\", \"H4\": \"h4\", \"H1\": \"h1\", \"M30\": \"m30\", \"M15\": \"m15\", \"M5\": \"m5\"}\n",
|
|
" tf = tf_map.get(timeframe, timeframe.lower())\n",
|
|
" \n",
|
|
" try:\n",
|
|
" df = get_rates(tf, lookback, symbol)\n",
|
|
" if df is None or len(df) < 50: return None\n",
|
|
" \n",
|
|
" df['close_smooth'] = savgol_filter(df['close'], min(15, len(df)//10), 3)\n",
|
|
" X = np.arange(len(df)).reshape(-1, 1)\n",
|
|
" y = df['close_smooth'].values\n",
|
|
" model = LinearRegression().fit(X, y)\n",
|
|
" slope = model.coef_[0]\n",
|
|
" \n",
|
|
" regime_info = detect_market_regime(df.iloc[-50:])\n",
|
|
" base_threshold = df['atr'].iloc[-1] * 0.0001\n",
|
|
" \n",
|
|
" if regime_info['regime'] == 'trending':\n",
|
|
" slope_threshold = base_threshold * 0.7\n",
|
|
" elif regime_info['regime'] == 'ranging':\n",
|
|
" slope_threshold = base_threshold * 1.5\n",
|
|
" else:\n",
|
|
" slope_threshold = base_threshold * 1.2\n",
|
|
" \n",
|
|
" trend = \"uptrend\" if slope > slope_threshold else \"downtrend\" if slope < -slope_threshold else \"sideways\"\n",
|
|
" trend_strength = abs(slope) / slope_threshold if slope_threshold > 0 else 0\n",
|
|
" \n",
|
|
" return {\n",
|
|
" \"trend\": trend, \"slope\": slope, \"slope_threshold\": slope_threshold,\n",
|
|
" \"trend_strength\": trend_strength, \"atr\": df['atr'].iloc[-1],\n",
|
|
" \"price\": df['close'].iloc[-1], \"regime_info\": regime_info\n",
|
|
" }\n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Error in get_enhanced_trend: {e}\")\n",
|
|
" return None\n",
|
|
"\n",
|
|
"print(\"✅ Market analysis functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 7,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Extended Top-Down V2 defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Extended Top-Down Analysis V2 (unverändert)\n",
|
|
"def extended_top_down_v2(symbol=\"XAUUSD\", lookback=150):\n",
|
|
" timeframes = [\"D1\", \"H4\", \"H1\", \"M30\", \"M15\", \"M5\"]\n",
|
|
" trend_info = {}\n",
|
|
" \n",
|
|
" for tf in timeframes:\n",
|
|
" trend_info[tf] = get_enhanced_trend(tf, lookback, symbol)\n",
|
|
" if trend_info[tf] is None:\n",
|
|
" print(f\"⚠️ Keine Daten für {tf}\")\n",
|
|
" return None\n",
|
|
" \n",
|
|
" main_regime = trend_info[\"H4\"][\"regime_info\"]\n",
|
|
" adaptive_confidence_threshold = calculate_adaptive_confidence_threshold(main_regime)\n",
|
|
" \n",
|
|
" # Standard-Trend (D1 + H4)\n",
|
|
" d1_trend = trend_info[\"D1\"][\"trend\"]\n",
|
|
" h4_trend = trend_info[\"H4\"][\"trend\"]\n",
|
|
" d1_strength = trend_info[\"D1\"][\"trend_strength\"]\n",
|
|
" h4_strength = trend_info[\"H4\"][\"trend_strength\"]\n",
|
|
" \n",
|
|
" if d1_trend == h4_trend and d1_trend != \"sideways\":\n",
|
|
" standard_trend = d1_trend\n",
|
|
" standard_strength = (d1_strength * 0.6 + h4_strength * 0.4)\n",
|
|
" elif d1_strength > h4_strength * 1.5:\n",
|
|
" standard_trend = d1_trend\n",
|
|
" standard_strength = d1_strength * 0.8\n",
|
|
" elif h4_strength > d1_strength * 1.5:\n",
|
|
" standard_trend = h4_trend\n",
|
|
" standard_strength = h4_strength * 0.8\n",
|
|
" else:\n",
|
|
" standard_trend = \"sideways\"\n",
|
|
" standard_strength = 0\n",
|
|
" \n",
|
|
" # Fast-Trend\n",
|
|
" fast_timeframes = [\"H1\", \"M30\", \"M15\", \"M5\"]\n",
|
|
" fast_trends = [trend_info[tf][\"trend\"] for tf in fast_timeframes]\n",
|
|
" fast_strengths = [trend_info[tf][\"trend_strength\"] for tf in fast_timeframes]\n",
|
|
" \n",
|
|
" required_alignment = 2 if main_regime['regime'] == 'trending' else 3\n",
|
|
" \n",
|
|
" trend_counts = {'uptrend': 0, 'downtrend': 0, 'sideways': 0}\n",
|
|
" weighted_strengths = {'uptrend': 0, 'downtrend': 0}\n",
|
|
" weights = [1.0, 0.8, 0.6, 0.4]\n",
|
|
" \n",
|
|
" for i, (trend, strength) in enumerate(zip(fast_trends, fast_strengths)):\n",
|
|
" trend_counts[trend] += 1\n",
|
|
" if trend != 'sideways':\n",
|
|
" weighted_strengths[trend] += strength * weights[i]\n",
|
|
" \n",
|
|
" max_count = max(trend_counts['uptrend'], trend_counts['downtrend'])\n",
|
|
" if max_count >= required_alignment:\n",
|
|
" if trend_counts['uptrend'] > trend_counts['downtrend']:\n",
|
|
" fast_trend = \"uptrend\"\n",
|
|
" elif trend_counts['downtrend'] > trend_counts['uptrend']:\n",
|
|
" fast_trend = \"downtrend\"\n",
|
|
" else:\n",
|
|
" fast_trend = \"uptrend\" if weighted_strengths['uptrend'] > weighted_strengths['downtrend'] else \"downtrend\"\n",
|
|
" else:\n",
|
|
" fast_trend = \"sideways\"\n",
|
|
" \n",
|
|
" # Top-Down-Trend\n",
|
|
" if standard_trend == fast_trend and standard_trend != \"sideways\":\n",
|
|
" top_down_trend = standard_trend\n",
|
|
" combined_strength = (standard_strength + weighted_strengths.get(fast_trend, 0)) / 2\n",
|
|
" else:\n",
|
|
" top_down_trend = \"sideways\"\n",
|
|
" combined_strength = 0\n",
|
|
" \n",
|
|
" # Confidence Calculation\n",
|
|
" weights = {\"D1\": 2.5, \"H4\": 2.0, \"H1\": 1.5, \"M30\": 1.0, \"M15\": 0.8, \"M5\": 0.6}\n",
|
|
" \n",
|
|
" weighted_matching = sum(\n",
|
|
" weights[tf] * trend_info[tf][\"trend_strength\"] \n",
|
|
" for tf in timeframes\n",
|
|
" if trend_info[tf][\"trend\"] == top_down_trend and trend_info[tf][\"trend\"] != \"sideways\"\n",
|
|
" )\n",
|
|
" \n",
|
|
" weighted_total = sum(\n",
|
|
" weights[tf] * trend_info[tf][\"trend_strength\"]\n",
|
|
" for tf in timeframes\n",
|
|
" if trend_info[tf][\"trend\"] != \"sideways\"\n",
|
|
" )\n",
|
|
" \n",
|
|
" confidence = round((weighted_matching / weighted_total) * 100, 2) if weighted_total > 0 else 0.0\n",
|
|
" \n",
|
|
" # Risk-Adjusted Signal Strength\n",
|
|
" atr = trend_info[\"M5\"][\"atr\"]\n",
|
|
" rrr = 2.5\n",
|
|
" risk_adjusted_strength = confidence * combined_strength * min(2.0, rrr)\n",
|
|
" \n",
|
|
" # Entry Signal\n",
|
|
" entry_signal = 0\n",
|
|
" signal_quality = \"none\"\n",
|
|
" \n",
|
|
" if (top_down_trend != \"sideways\" and \n",
|
|
" confidence >= adaptive_confidence_threshold and\n",
|
|
" risk_adjusted_strength >= 100):\n",
|
|
" \n",
|
|
" entry_signal = 1 if top_down_trend == \"uptrend\" else -1\n",
|
|
" \n",
|
|
" if confidence >= 85 and risk_adjusted_strength >= 150:\n",
|
|
" signal_quality = \"excellent\"\n",
|
|
" elif confidence >= 75 and risk_adjusted_strength >= 120:\n",
|
|
" signal_quality = \"good\"\n",
|
|
" else:\n",
|
|
" signal_quality = \"fair\"\n",
|
|
" \n",
|
|
" # Debug Output\n",
|
|
" debug_data = []\n",
|
|
" for tf in timeframes:\n",
|
|
" info = trend_info[tf]\n",
|
|
" debug_data.append([tf, info[\"trend\"], f\"{info['trend_strength']:.2f}\", \n",
|
|
" f\"{info['atr']:.4f}\", f\"{info['slope']:.6f}\", f\"{info['price']:.2f}\"])\n",
|
|
" \n",
|
|
" print(f\"📊 Enhanced Trend-Analyse für {symbol}\")\n",
|
|
" print(f\"🎯 Market Regime: {main_regime['regime'].upper()} (Strength: {main_regime['strength']:.0f}%)\")\n",
|
|
" print(f\"🎚️ Adaptive Confidence Threshold: {adaptive_confidence_threshold}%\")\n",
|
|
" print(tabulate(debug_data, headers=[\"TF\", \"Trend\", \"Strength\", \"ATR\", \"Slope\", \"Price\"], tablefmt=\"psql\"))\n",
|
|
" print(f\"➡️ Standard-Trend: {standard_trend} (Strength: {standard_strength:.2f})\")\n",
|
|
" print(f\"➡️ Fast-Trend: {fast_trend}\")\n",
|
|
" print(f\"➡️ Top-Down-Trend: {top_down_trend}\")\n",
|
|
" print(f\"➡️ Confidence: {confidence}% (Threshold: {adaptive_confidence_threshold}%)\")\n",
|
|
" print(f\"➡️ Risk-Adjusted Strength: {risk_adjusted_strength:.1f}\")\n",
|
|
" print(f\"➡️ Signal Quality: {signal_quality.upper()}\")\n",
|
|
" \n",
|
|
" return {\n",
|
|
" \"symbol\": symbol, \"trend_info\": trend_info, \"market_regime\": main_regime,\n",
|
|
" \"standard_trend\": standard_trend, \"fast_trend\": fast_trend, \"top_down_trend\": top_down_trend,\n",
|
|
" \"confidence\": confidence, \"adaptive_threshold\": adaptive_confidence_threshold,\n",
|
|
" \"risk_adjusted_strength\": risk_adjusted_strength, \"entry_signal\": entry_signal,\n",
|
|
" \"signal_quality\": signal_quality, \"combined_strength\": combined_strength\n",
|
|
" }\n",
|
|
"\n",
|
|
"print(\"✅ Extended Top-Down V2 defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 6. Entry Timing Optimization"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Entry timing functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Entry Timing Optimization\n",
|
|
"def check_pullback_entry(symbol, signal_info, timeframe=\"M5\"):\n",
|
|
" if signal_info[\"entry_signal\"] == 0:\n",
|
|
" return False, \"No base signal\"\n",
|
|
" \n",
|
|
" try:\n",
|
|
" df = get_rates(timeframe.lower(), 50, symbol)\n",
|
|
" if df is None or len(df) < 20:\n",
|
|
" return False, \"Insufficient data\"\n",
|
|
" \n",
|
|
" df['ema21'] = df['close'].ewm(span=21).mean()\n",
|
|
" df['ema50'] = df['close'].ewm(span=50).mean()\n",
|
|
" \n",
|
|
" current_price = df['close'].iloc[-1]\n",
|
|
" ema21 = df['ema21'].iloc[-1]\n",
|
|
" ema50 = df['ema50'].iloc[-1]\n",
|
|
" signal_direction = signal_info[\"entry_signal\"]\n",
|
|
" \n",
|
|
" if signal_direction == 1: # Long\n",
|
|
" if current_price <= ema21 * 1.002 and ema21 > ema50:\n",
|
|
" return True, \"Pullback to EMA21 for Long\"\n",
|
|
" elif current_price <= ema21 * 0.998:\n",
|
|
" return True, \"Below EMA21 - Good Long Entry\"\n",
|
|
" elif signal_direction == -1: # Short\n",
|
|
" if current_price >= ema21 * 0.998 and ema21 < ema50:\n",
|
|
" return True, \"Pullback to EMA21 for Short\"\n",
|
|
" elif current_price >= ema21 * 1.002:\n",
|
|
" return True, \"Above EMA21 - Good Short Entry\"\n",
|
|
" \n",
|
|
" return False, \"Waiting for better entry timing\"\n",
|
|
" except Exception as e:\n",
|
|
" return True, \"Using immediate entry (fallback)\"\n",
|
|
"\n",
|
|
"print(\"✅ Entry timing functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 🚀 7. Enhanced Execute Trade mit Position Control"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 9,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Enhanced Execute Trade mit Position Control defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"def execute_trade_v2_with_position_control(\n",
|
|
" symbol=\"XAUUSD\",\n",
|
|
" atr_mult=1.5,\n",
|
|
" base_confidence=70,\n",
|
|
" max_risk_per_trade=0.01,\n",
|
|
" risk_filter=True,\n",
|
|
" min_atr=0.0010,\n",
|
|
" use_pullback_entry=True,\n",
|
|
" max_positions=1, # NEU: Maximale Anzahl Positionen\n",
|
|
" strategy_name=\"TradingBot_V1.4_PositionControl\",\n",
|
|
" debug=True\n",
|
|
"):\n",
|
|
" \"\"\"\n",
|
|
" Enhanced Execute Trade mit Position-Kontrolle\n",
|
|
" WICHTIG: Verhindert mehrfache Trades!\n",
|
|
" \"\"\"\n",
|
|
" \n",
|
|
" # SCHRITT 1: POSITION CHECK (WICHTIGSTER PUNKT!)\n",
|
|
" print(f\"\\n🔍 POSITION CHECK für {symbol}\")\n",
|
|
" has_position, position_info = check_existing_positions(symbol, strategy_name)\n",
|
|
" \n",
|
|
" if has_position and position_info['count'] >= max_positions:\n",
|
|
" if debug:\n",
|
|
" print(f\"🛑 TRADE BLOCKIERT: {position_info['count']}/{max_positions} Positionen bereits aktiv\")\n",
|
|
" for pos in position_info['details']:\n",
|
|
" profit_emoji = \"🟢\" if pos['profit'] >= 0 else \"🔴\"\n",
|
|
" print(f\" Position: {pos['type']} {pos['volume']} @ {pos['price_open']} | Profit: {profit_emoji} {pos['profit']:.2f}\")\n",
|
|
" return None\n",
|
|
" \n",
|
|
" print(f\"✅ Position-Check OK: {position_info['count']}/{max_positions} Positionen\")\n",
|
|
" \n",
|
|
" # SCHRITT 2: SIGNAL ANALYSE\n",
|
|
" signal_info = extended_top_down_v2(symbol)\n",
|
|
" if signal_info is None:\n",
|
|
" print(\"❌ Signal-Analyse fehlgeschlagen\")\n",
|
|
" return None\n",
|
|
" \n",
|
|
" entry_signal = signal_info[\"entry_signal\"]\n",
|
|
" confidence = signal_info[\"confidence\"]\n",
|
|
" adaptive_threshold = signal_info[\"adaptive_threshold\"]\n",
|
|
" signal_quality = signal_info[\"signal_quality\"]\n",
|
|
" market_regime = signal_info[\"market_regime\"]\n",
|
|
" \n",
|
|
" # SCHRITT 3: GET PRICE/ATR\n",
|
|
" m5_info = signal_info[\"trend_info\"][\"M5\"]\n",
|
|
" price = m5_info[\"price\"]\n",
|
|
" atr = m5_info[\"atr\"]\n",
|
|
" \n",
|
|
" # SCHRITT 4: ENHANCED PRE-CHECKS\n",
|
|
" reason = \"\"\n",
|
|
" \n",
|
|
" if confidence < adaptive_threshold:\n",
|
|
" reason = f\"Confidence {confidence}% < adaptive threshold {adaptive_threshold}%\"\n",
|
|
" elif entry_signal == 0:\n",
|
|
" reason = f\"No entry signal (Trend: {signal_info['top_down_trend']}, Regime: {market_regime['regime']})\"\n",
|
|
" elif price is None or atr is None:\n",
|
|
" reason = \"Price/ATR not available\"\n",
|
|
" elif risk_filter and atr < min_atr:\n",
|
|
" reason = f\"ATR {atr:.5f} < min_atr {min_atr}\"\n",
|
|
" elif signal_quality == \"none\":\n",
|
|
" reason = \"Signal quality insufficient\"\n",
|
|
" else:\n",
|
|
" # SCHRITT 5: ENTRY TIMING CHECK\n",
|
|
" if use_pullback_entry:\n",
|
|
" pullback_ok, pullback_reason = check_pullback_entry(symbol, signal_info)\n",
|
|
" if not pullback_ok:\n",
|
|
" reason = f\"Entry timing: {pullback_reason}\"\n",
|
|
" \n",
|
|
" if not reason:\n",
|
|
" # SCHRITT 6: RISK CHECKS\n",
|
|
" risk_ok = check_risk_limits(symbol, max_risk_per_trade=max_risk_per_trade)\n",
|
|
" if not risk_ok:\n",
|
|
" reason = \"Risk limits exceeded\"\n",
|
|
" \n",
|
|
" # SCHRITT 7: EXECUTE TRADE IF ALL CHECKS PASS\n",
|
|
" if not reason:\n",
|
|
" # FINAL POSITION CHECK vor Order (Sicherheitscheck)\n",
|
|
" final_check, _ = check_existing_positions(symbol, strategy_name)\n",
|
|
" if final_check:\n",
|
|
" print(f\"🛑 LAST-MINUTE BLOCK: Position wurde zwischen Checks eröffnet!\")\n",
|
|
" return None\n",
|
|
" \n",
|
|
" # Enhanced SL/TP calculation based on regime\n",
|
|
" regime_mult = 1.0\n",
|
|
" if market_regime['regime'] == 'volatile':\n",
|
|
" regime_mult = 1.3\n",
|
|
" elif market_regime['regime'] == 'ranging':\n",
|
|
" regime_mult = 0.8\n",
|
|
" \n",
|
|
" adjusted_atr_mult = atr_mult * regime_mult\n",
|
|
" \n",
|
|
" if entry_signal == 1:\n",
|
|
" stop_loss = price - adjusted_atr_mult * atr\n",
|
|
" take_profit = price + adjusted_atr_mult * atr * 2.5\n",
|
|
" else:\n",
|
|
" stop_loss = price + adjusted_atr_mult * atr\n",
|
|
" take_profit = price - adjusted_atr_mult * atr * 2.5\n",
|
|
" \n",
|
|
" # Dynamic Position Sizing\n",
|
|
" account_info = mt.account_info()\n",
|
|
" if account_info:\n",
|
|
" balance = account_info.balance\n",
|
|
" risk_amount = balance * max_risk_per_trade\n",
|
|
" if symbol == \"XAUUSD\":\n",
|
|
" volume = min(0.1, max(0.01, risk_amount / (adjusted_atr_mult * atr * 100)))\n",
|
|
" else:\n",
|
|
" volume = 0.01\n",
|
|
" else:\n",
|
|
" volume = 0.01\n",
|
|
" \n",
|
|
" # Log Enhanced Trade Info\n",
|
|
" print(f\"\\n🚀 ENHANCED TRADE EXECUTION (mit Position Control)\")\n",
|
|
" print(f\"Symbol: {symbol}\")\n",
|
|
" print(f\"Direction: {'LONG' if entry_signal == 1 else 'SHORT'}\")\n",
|
|
" print(f\"Price: {price:.5f}\")\n",
|
|
" print(f\"Volume: {volume:.2f}\")\n",
|
|
" print(f\"Stop Loss: {stop_loss:.5f}\")\n",
|
|
" print(f\"Take Profit: {take_profit:.5f}\")\n",
|
|
" print(f\"Confidence: {confidence}% (Threshold: {adaptive_threshold}%)\")\n",
|
|
" print(f\"Signal Quality: {signal_quality.upper()}\")\n",
|
|
" print(f\"Market Regime: {market_regime['regime'].upper()}\")\n",
|
|
" print(f\"Position Limit: {position_info['count']}/{max_positions}\")\n",
|
|
" print(f\"Strategy: {strategy_name}\")\n",
|
|
" \n",
|
|
" # Execute the actual trade\n",
|
|
" try:\n",
|
|
" order_result = market_order(\n",
|
|
" symbol=symbol,\n",
|
|
" volume=volume,\n",
|
|
" order_type=\"buy\" if entry_signal == 1 else \"sell\",\n",
|
|
" stoploss=stop_loss,\n",
|
|
" take_profit=take_profit\n",
|
|
" )\n",
|
|
" \n",
|
|
" if order_result and order_result.retcode == mt.TRADE_RETCODE_DONE:\n",
|
|
" print(f\"✅ Trade erfolgreich eröffnet! Ticket: {order_result.order}\")\n",
|
|
" \n",
|
|
" # Verify position was created\n",
|
|
" new_check, new_info = check_existing_positions(symbol, strategy_name)\n",
|
|
" print(f\"📊 Neue Position-Anzahl: {new_info['count']}\")\n",
|
|
" else:\n",
|
|
" print(f\"❌ Trade failed: {order_result.comment if order_result else 'No result'}\")\n",
|
|
" \n",
|
|
" return order_result\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"❌ Trade execution failed: {e}\")\n",
|
|
" return None\n",
|
|
" \n",
|
|
" else:\n",
|
|
" if debug:\n",
|
|
" print(f\"\\n⏸️ TRADE SKIPPED: {reason}\")\n",
|
|
" print(f\"Confidence: {confidence}% | Threshold: {adaptive_threshold}%\")\n",
|
|
" print(f\"Signal Quality: {signal_quality} | Regime: {market_regime['regime']}\")\n",
|
|
" print(f\"Positions: {position_info['count']}/{max_positions}\")\n",
|
|
" return None\n",
|
|
"\n",
|
|
"print(\"✅ Enhanced Execute Trade mit Position Control defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 10. Performance Monitoring"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 28,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"✅ Performance Monitoring functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"def log_trade_performance(signal_info, order_result):\n",
|
|
" \"\"\"\n",
|
|
" Loggt Trade-Performance für Analyse und Optimierung\n",
|
|
" \"\"\"\n",
|
|
" trade_data = {\n",
|
|
" 'timestamp': datetime.now().isoformat(),\n",
|
|
" 'symbol': signal_info['symbol'],\n",
|
|
" 'entry_signal': signal_info['entry_signal'],\n",
|
|
" 'confidence': signal_info['confidence'],\n",
|
|
" 'adaptive_threshold': signal_info['adaptive_threshold'],\n",
|
|
" 'signal_quality': signal_info['signal_quality'],\n",
|
|
" 'market_regime': signal_info['market_regime']['regime'],\n",
|
|
" 'regime_strength': signal_info['market_regime']['strength'],\n",
|
|
" 'risk_adjusted_strength': signal_info['risk_adjusted_strength'],\n",
|
|
" 'order_result': str(order_result) if order_result else None\n",
|
|
" }\n",
|
|
" \n",
|
|
" # Save to JSON file for analysis\n",
|
|
" try:\n",
|
|
" filename = f\"trade_performance_{signal_info['symbol']}_{datetime.now().strftime('%Y%m')}.json\"\n",
|
|
" \n",
|
|
" try:\n",
|
|
" with open(filename, 'r') as f:\n",
|
|
" data = json.load(f)\n",
|
|
" except FileNotFoundError:\n",
|
|
" data = []\n",
|
|
" \n",
|
|
" data.append(trade_data)\n",
|
|
" \n",
|
|
" with open(filename, 'w') as f:\n",
|
|
" json.dump(data, f, indent=2)\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Warning: Could not log performance data: {e}\")\n",
|
|
"\n",
|
|
"def analyze_performance(symbol=\"XAUUSD\", days_back=30):\n",
|
|
" \"\"\"\n",
|
|
" Analysiert Performance der letzten Trades\n",
|
|
" \"\"\"\n",
|
|
" try:\n",
|
|
" filename = f\"trade_performance_{symbol}_{datetime.now().strftime('%Y%m')}.json\"\n",
|
|
" \n",
|
|
" with open(filename, 'r') as f:\n",
|
|
" data = json.load(f)\n",
|
|
" \n",
|
|
" # Filter last X days\n",
|
|
" cutoff = datetime.now() - timedelta(days=days_back)\n",
|
|
" recent_trades = [\n",
|
|
" trade for trade in data \n",
|
|
" if datetime.fromisoformat(trade['timestamp']) > cutoff\n",
|
|
" ]\n",
|
|
" \n",
|
|
" if not recent_trades:\n",
|
|
" print(f\"No trades found in last {days_back} days\")\n",
|
|
" return\n",
|
|
" \n",
|
|
" # Analysis\n",
|
|
" total_trades = len(recent_trades)\n",
|
|
" by_regime = {}\n",
|
|
" by_confidence = {'high': 0, 'medium': 0, 'low': 0}\n",
|
|
" by_quality = {}\n",
|
|
" \n",
|
|
" for trade in recent_trades:\n",
|
|
" # By regime\n",
|
|
" regime = trade['market_regime']\n",
|
|
" by_regime[regime] = by_regime.get(regime, 0) + 1\n",
|
|
" \n",
|
|
" # By confidence\n",
|
|
" conf = trade['confidence']\n",
|
|
" if conf >= 85:\n",
|
|
" by_confidence['high'] += 1\n",
|
|
" elif conf >= 75:\n",
|
|
" by_confidence['medium'] += 1\n",
|
|
" else:\n",
|
|
" by_confidence['low'] += 1\n",
|
|
" \n",
|
|
" # By quality\n",
|
|
" quality = trade['signal_quality']\n",
|
|
" by_quality[quality] = by_quality.get(quality, 0) + 1\n",
|
|
" \n",
|
|
" print(f\"\\n📊 PERFORMANCE ANALYSIS - Last {days_back} days\")\n",
|
|
" print(f\"Total Trades: {total_trades}\")\n",
|
|
" print(f\"\\nBy Market Regime:\")\n",
|
|
" for regime, count in by_regime.items():\n",
|
|
" print(f\" {regime.upper()}: {count} ({count/total_trades*100:.1f}%)\")\n",
|
|
" \n",
|
|
" print(f\"\\nBy Confidence Level:\")\n",
|
|
" for level, count in by_confidence.items():\n",
|
|
" print(f\" {level.upper()}: {count} ({count/total_trades*100:.1f}%)\")\n",
|
|
" \n",
|
|
" print(f\"\\nBy Signal Quality:\")\n",
|
|
" for quality, count in by_quality.items():\n",
|
|
" print(f\" {quality.upper()}: {count} ({count/total_trades*100:.1f}%)\")\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"Could not analyze performance: {e}\")\n",
|
|
"\n",
|
|
"print(\"✅ Performance Monitoring functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 🧪 Testing"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 10,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🔍 Checking current positions...\n",
|
|
"\n",
|
|
"📊 POSITION SUMMARY für XAUUSD\n",
|
|
"==================================================\n",
|
|
"✅ Keine aktiven Positionen - bereit für neuen Trade\n"
|
|
]
|
|
},
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"False"
|
|
]
|
|
},
|
|
"execution_count": 10,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"# Test 1: Check current positions\n",
|
|
"print(\"🔍 Checking current positions...\")\n",
|
|
"get_position_summary(symbol, strategy_name)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 11,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"⚙️ Trading Configuration mit Position Control:\n",
|
|
" symbol: XAUUSD\n",
|
|
" atr_mult: 1.5\n",
|
|
" base_confidence: 70\n",
|
|
" max_risk_per_trade: 0.01\n",
|
|
" risk_filter: True\n",
|
|
" min_atr: 0.001\n",
|
|
" use_pullback_entry: True\n",
|
|
" max_positions: 1\n",
|
|
" strategy_name: TradingBot_V1.4_PositionControl\n",
|
|
" debug: True\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Test 2: Trading Configuration\n",
|
|
"TRADING_CONFIG = {\n",
|
|
" 'symbol': symbol,\n",
|
|
" 'atr_mult': 1.5,\n",
|
|
" 'base_confidence': 70,\n",
|
|
" 'max_risk_per_trade': 0.01,\n",
|
|
" 'risk_filter': True,\n",
|
|
" 'min_atr': 0.0010,\n",
|
|
" 'use_pullback_entry': True,\n",
|
|
" 'max_positions': max_positions,\n",
|
|
" 'strategy_name': strategy_name,\n",
|
|
" 'debug': True\n",
|
|
"}\n",
|
|
"\n",
|
|
"print(\"⚙️ Trading Configuration mit Position Control:\")\n",
|
|
"for key, value in TRADING_CONFIG.items():\n",
|
|
" print(f\" {key}: {value}\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 12,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🚀 Testing Trade Execution mit Position Control...\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.02 | 45.0354 | 3.75609 | 3661.17 |\n",
|
|
"| H4 | uptrend | 994.74 | 19.6507 | 2.9321 | 3661.17 |\n",
|
|
"| H1 | uptrend | 195.66 | 12.3655 | 0.362916 | 3661.17 |\n",
|
|
"| M30 | uptrend | 174.23 | 11.637 | 0.304123 | 3661.17 |\n",
|
|
"| M15 | downtrend | 108.94 | 9.9801 | -0.163091 | 3661.17 |\n",
|
|
"| M5 | uptrend | 71.17 | 8.0333 | 0.085756 | 3661.17 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 731.51)\n",
|
|
"➡️ Fast-Trend: uptrend\n",
|
|
"➡️ Top-Down-Trend: uptrend\n",
|
|
"➡️ Confidence: 97.81% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 107103.7\n",
|
|
"➡️ Signal Quality: EXCELLENT\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Entry timing: Waiting for better entry timing\n",
|
|
"Confidence: 97.81% | Threshold: 85%\n",
|
|
"Signal Quality: excellent | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"\n",
|
|
"⏸️ No trade executed\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Test 3: Trading Execution mit Position Control\n",
|
|
"def test_trading_with_position_control():\n",
|
|
" print(\"🚀 Testing Trade Execution mit Position Control...\")\n",
|
|
" try:\n",
|
|
" result = execute_trade_v2_with_position_control(**TRADING_CONFIG)\n",
|
|
" if result:\n",
|
|
" print(\"\\n✅ Trade executed successfully!\")\n",
|
|
" print(f\"Order result: {result}\")\n",
|
|
" \n",
|
|
" # Show updated position status\n",
|
|
" print(\"\\n📊 Updated Position Status:\")\n",
|
|
" get_position_summary(symbol, strategy_name)\n",
|
|
" return result\n",
|
|
" else:\n",
|
|
" print(\"\\n⏸️ No trade executed\")\n",
|
|
" return None\n",
|
|
" except Exception as e:\n",
|
|
" print(f\"❌ Error: {e}\")\n",
|
|
" return None\n",
|
|
"\n",
|
|
"test_result = test_trading_with_position_control()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 13,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"\n",
|
|
"🧪 Testing second trade attempt (should be blocked if position exists)...\n",
|
|
"🚀 Testing Trade Execution mit Position Control...\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.02 | 45.0354 | 3.75609 | 3661.17 |\n",
|
|
"| H4 | uptrend | 994.74 | 19.6507 | 2.9321 | 3661.17 |\n",
|
|
"| H1 | uptrend | 195.66 | 12.3655 | 0.362916 | 3661.17 |\n",
|
|
"| M30 | uptrend | 174.23 | 11.637 | 0.304123 | 3661.17 |\n",
|
|
"| M15 | downtrend | 108.94 | 9.9801 | -0.163091 | 3661.17 |\n",
|
|
"| M5 | uptrend | 71.17 | 8.0333 | 0.085756 | 3661.17 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 731.51)\n",
|
|
"➡️ Fast-Trend: uptrend\n",
|
|
"➡️ Top-Down-Trend: uptrend\n",
|
|
"➡️ Confidence: 97.81% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 107103.7\n",
|
|
"➡️ Signal Quality: EXCELLENT\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Entry timing: Waiting for better entry timing\n",
|
|
"Confidence: 97.81% | Threshold: 85%\n",
|
|
"Signal Quality: excellent | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"\n",
|
|
"⏸️ No trade executed\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Test 4: Try trading again (should be blocked if position exists)\n",
|
|
"print(\"\\n🧪 Testing second trade attempt (should be blocked if position exists)...\")\n",
|
|
"second_test = test_trading_with_position_control()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 🔧 Position Management"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 14,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🔧 POSITION MANAGEMENT OPTIONS\n",
|
|
"========================================\n",
|
|
"1. Show current positions\n",
|
|
"2. Close all positions (manual)\n",
|
|
"3. Test new trade\n",
|
|
"\n",
|
|
"Use the functions below:\n",
|
|
"- get_position_summary(symbol, strategy_name)\n",
|
|
"- close_existing_positions(symbol, strategy_name, force_close=True)\n",
|
|
"- execute_trade_v2_with_position_control(**TRADING_CONFIG)\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Manual Position Management\n",
|
|
"def show_position_management_options():\n",
|
|
" print(\"🔧 POSITION MANAGEMENT OPTIONS\")\n",
|
|
" print(\"=\" * 40)\n",
|
|
" print(\"1. Show current positions\")\n",
|
|
" print(\"2. Close all positions (manual)\")\n",
|
|
" print(\"3. Test new trade\")\n",
|
|
" print(\"\\nUse the functions below:\")\n",
|
|
" print(\"- get_position_summary(symbol, strategy_name)\")\n",
|
|
" print(\"- close_existing_positions(symbol, strategy_name, force_close=True)\")\n",
|
|
" print(\"- execute_trade_v2_with_position_control(**TRADING_CONFIG)\")\n",
|
|
"\n",
|
|
"show_position_management_options()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 15,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"💡 To close positions manually, uncomment and run the code above\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Optional: Close existing positions (uncomment if needed)\n",
|
|
"# print(\"⚠️ Closing existing positions...\")\n",
|
|
"# close_existing_positions(symbol, strategy_name, force_close=True)\n",
|
|
"\n",
|
|
"print(\"💡 To close positions manually, uncomment and run the code above\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 16,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🔍 Trading Bot Status mit Position Control:\n",
|
|
" MT5 Connection: ✅\n",
|
|
" Active Positions: 0/1\n",
|
|
" Trading Status: ✅ READY\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.02 | 45.0354 | 3.75609 | 3661.2 |\n",
|
|
"| H4 | uptrend | 994.74 | 19.6507 | 2.93211 | 3661.2 |\n",
|
|
"| H1 | uptrend | 195.66 | 12.3655 | 0.362923 | 3661.2 |\n",
|
|
"| M30 | uptrend | 174.23 | 11.637 | 0.30413 | 3661.2 |\n",
|
|
"| M15 | downtrend | 108.94 | 9.9801 | -0.163084 | 3661.2 |\n",
|
|
"| M5 | uptrend | 71.17 | 8.0333 | 0.085763 | 3661.2 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 731.51)\n",
|
|
"➡️ Fast-Trend: uptrend\n",
|
|
"➡️ Top-Down-Trend: uptrend\n",
|
|
"➡️ Confidence: 97.81% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 107104.7\n",
|
|
"➡️ Signal Quality: EXCELLENT\n",
|
|
" Current Signal: 1\n",
|
|
" Confidence: 97.81%\n",
|
|
" Market Regime: RANGING\n",
|
|
" Signal Quality: EXCELLENT\n",
|
|
" Would Trade: ✅ YES\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Status Check mit Position Info\n",
|
|
"def check_bot_status_with_positions():\n",
|
|
" print(\"🔍 Trading Bot Status mit Position Control:\")\n",
|
|
" print(f\" MT5 Connection: {'✅' if mt.terminal_info() else '❌'}\")\n",
|
|
" \n",
|
|
" # Position Status\n",
|
|
" has_pos, pos_info = check_existing_positions(symbol, strategy_name)\n",
|
|
" print(f\" Active Positions: {pos_info['count']}/{max_positions}\")\n",
|
|
" print(f\" Trading Status: {'🛑 BLOCKED' if has_pos else '✅ READY'}\")\n",
|
|
" \n",
|
|
" # Signal Status\n",
|
|
" try:\n",
|
|
" signal_info = extended_top_down_v2(symbol)\n",
|
|
" if signal_info:\n",
|
|
" print(f\" Current Signal: {signal_info['entry_signal']}\")\n",
|
|
" print(f\" Confidence: {signal_info['confidence']}%\")\n",
|
|
" print(f\" Market Regime: {signal_info['market_regime']['regime'].upper()}\")\n",
|
|
" print(f\" Signal Quality: {signal_info['signal_quality'].upper()}\")\n",
|
|
" \n",
|
|
" would_trade = (signal_info['entry_signal'] != 0 and not has_pos)\n",
|
|
" print(f\" Would Trade: {'✅ YES' if would_trade else '❌ NO'}\")\n",
|
|
" except Exception as e:\n",
|
|
" print(f\" Signal Check: ❌ Error: {e}\")\n",
|
|
"\n",
|
|
"check_bot_status_with_positions()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 14. Performance Monitoring"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 29,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"📊 Analyzing Recent Performance...\n",
|
|
"\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 7 days\n",
|
|
"Total Trades: 20\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 20 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 20 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 20 (100.0%)\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Aktuelle Performance analysieren\n",
|
|
"print(\"📊 Analyzing Recent Performance...\\n\")\n",
|
|
"analyze_performance(symbol, days_back=7) # Letzte 7 Tage"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## Automatisierung mit APScheduler"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 18,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"#optimized_trading_job()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 19,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"⚙️ Scheduler functions defined\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Import APScheduler\n",
|
|
"from apscheduler.schedulers.background import BackgroundScheduler\n",
|
|
"\n",
|
|
"# Wrapper-Funktion für Scheduler\n",
|
|
"def optimized_trading_job():\n",
|
|
" \"\"\"\n",
|
|
" Hauptfunktion für automatisierten Trading mit optimierter Logik\n",
|
|
" \"\"\"\n",
|
|
" try:\n",
|
|
" print(f\"\\n⏰ {pd.Timestamp.now().strftime('%Y-%m-%d %H:%M:%S')} - Running Optimized Trading Check\")\n",
|
|
" \n",
|
|
" # Führe optimierte Trade-Analyse aus\n",
|
|
" result = execute_trade_v2_with_position_control(**TRADING_CONFIG)\n",
|
|
" \n",
|
|
" if result:\n",
|
|
" print(\"✅ Trade executed with optimized logic!\")\n",
|
|
" else:\n",
|
|
" print(\"⏸️ No trade - waiting for better conditions\")\n",
|
|
" \n",
|
|
" # Performance-Update alle 6 Stunden\n",
|
|
" current_hour = pd.Timestamp.now().hour\n",
|
|
" if current_hour % 6 == 0: # 0, 6, 12, 18 Uhr\n",
|
|
" analyze_performance(symbol, days_back=1)\n",
|
|
" \n",
|
|
" except Exception as e:\n",
|
|
" print(f\"❌ Error in optimized trading job: {e}\")\n",
|
|
"\n",
|
|
"# Scheduler für optimierten Trading Bot\n",
|
|
"optimized_scheduler = BackgroundScheduler()\n",
|
|
"\n",
|
|
"print(\"⚙️ Scheduler functions defined\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 20,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"⚙️ Optimized Scheduler configured:\n",
|
|
" - Trading checks every 5 minutes\n",
|
|
" - Monday to Friday, 24 hours\n",
|
|
" - Enhanced signal logic active\n",
|
|
" - Performance monitoring included\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Hinzufügen des optimierten Trading Jobs\n",
|
|
"# Läuft alle 5 Minuten während der Handelszeiten\n",
|
|
"optimized_scheduler.add_job(\n",
|
|
" optimized_trading_job, \n",
|
|
" 'cron', \n",
|
|
" year=\"*\", \n",
|
|
" month=\"*\", \n",
|
|
" day_of_week=\"mon,tue,wed,thu,fri\", \n",
|
|
" hour='0-23', \n",
|
|
" minute='*/5',\n",
|
|
" id='optimized_trading'\n",
|
|
")\n",
|
|
"\n",
|
|
"print(\"⚙️ Optimized Scheduler configured:\")\n",
|
|
"print(\" - Trading checks every 5 minutes\")\n",
|
|
"print(\" - Monday to Friday, 24 hours\")\n",
|
|
"print(\" - Enhanced signal logic active\")\n",
|
|
"print(\" - Performance monitoring included\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 21,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🚀 Starting Optimized Trading Bot...\n",
|
|
"✅ Optimized Trading Bot is now running!\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Scheduler starten\n",
|
|
"print(\"🚀 Starting Optimized Trading Bot...\")\n",
|
|
"optimized_scheduler.start()\n",
|
|
"print(\"✅ Optimized Trading Bot is now running!\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 36,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"\n",
|
|
"📋 Active Jobs:\n",
|
|
" - optimized_trading: 2025-09-18 15:10:00+02:00\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"\n",
|
|
"⏰ 2025-09-18 15:10:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 49%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 563.07 | 44.6044 | 3.7673 | 3658.78 |\n",
|
|
"| H4 | uptrend | 1060.02 | 18.6863 | 2.97118 | 3658.78 |\n",
|
|
"| H1 | uptrend | 191.78 | 11.1073 | 0.319524 | 3658.78 |\n",
|
|
"| M30 | downtrend | 41.71 | 7.7087 | -0.048233 | 3658.78 |\n",
|
|
"| M15 | downtrend | 243.19 | 5.2914 | -0.193025 | 3658.78 |\n",
|
|
"| M5 | uptrend | 147.06 | 3.46 | 0.076323 | 3658.78 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 761.85)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:15:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 49%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 563.06 | 44.6044 | 3.76726 | 3658.61 |\n",
|
|
"| H4 | uptrend | 1060.01 | 18.6863 | 2.97115 | 3658.64 |\n",
|
|
"| H1 | uptrend | 191.76 | 11.1073 | 0.319491 | 3658.64 |\n",
|
|
"| M30 | downtrend | 41.74 | 7.7087 | -0.048266 | 3658.64 |\n",
|
|
"| M15 | downtrend | 243.24 | 5.2914 | -0.193058 | 3658.64 |\n",
|
|
"| M5 | uptrend | 148.17 | 3.4286 | 0.076204 | 3658.64 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 761.84)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:20:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 49%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 563.07 | 44.6044 | 3.7673 | 3658.81 |\n",
|
|
"| H4 | uptrend | 1060.03 | 18.6863 | 2.97119 | 3658.82 |\n",
|
|
"| H1 | uptrend | 191.79 | 11.1073 | 0.319533 | 3658.82 |\n",
|
|
"| M30 | downtrend | 41.7 | 7.7087 | -0.048223 | 3658.82 |\n",
|
|
"| M15 | downtrend | 247.52 | 5.1298 | -0.190458 | 3658.82 |\n",
|
|
"| M5 | uptrend | 150.21 | 3.4001 | 0.076611 | 3658.82 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 761.85)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:25:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 49%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 562.96 | 44.6044 | 3.76656 | 3655.68 |\n",
|
|
"| H4 | uptrend | 1054.16 | 18.7855 | 2.97045 | 3655.68 |\n",
|
|
"| H1 | uptrend | 189.64 | 11.2066 | 0.318791 | 3655.68 |\n",
|
|
"| M30 | downtrend | 41.81 | 7.8079 | -0.048967 | 3655.67 |\n",
|
|
"| M15 | downtrend | 235.56 | 5.4113 | -0.191202 | 3655.67 |\n",
|
|
"| M5 | uptrend | 146.52 | 3.4965 | 0.076846 | 3655.67 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 759.44)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:30:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 48%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 562.9 | 44.6044 | 3.76614 | 3653.9 |\n",
|
|
"| H4 | uptrend | 1044.44 | 18.9577 | 2.97003 | 3653.9 |\n",
|
|
"| H1 | uptrend | 186.53 | 11.3788 | 0.318371 | 3653.9 |\n",
|
|
"| M30 | downtrend | 41.26 | 7.9801 | -0.049386 | 3653.9 |\n",
|
|
"| M15 | downtrend | 228.8 | 5.5834 | -0.191621 | 3653.9 |\n",
|
|
"| M5 | uptrend | 145.14 | 3.5318 | 0.076892 | 3653.9 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 755.51)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:35:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 48%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 562.66 | 44.6044 | 3.76458 | 3647.27 |\n",
|
|
"| H4 | uptrend | 1024.36 | 19.3191 | 2.96846 | 3647.27 |\n",
|
|
"| H1 | uptrend | 179.9 | 11.7402 | 0.316804 | 3647.27 |\n",
|
|
"| M30 | downtrend | 53.92 | 7.9879 | -0.064612 | 3647.27 |\n",
|
|
"| M15 | downtrend | 221.32 | 5.7625 | -0.191301 | 3647.34 |\n",
|
|
"| M5 | uptrend | 128.89 | 3.8574 | 0.074576 | 3647.34 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 747.34)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:40:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 562.43 | 44.6044 | 3.76301 | 3640.62 |\n",
|
|
"| H4 | uptrend | 993.23 | 19.9141 | 2.96689 | 3640.62 |\n",
|
|
"| H1 | uptrend | 170.37 | 12.3352 | 0.315233 | 3640.62 |\n",
|
|
"| M30 | downtrend | 51.41 | 8.5829 | -0.066183 | 3640.62 |\n",
|
|
"| M15 | downtrend | 202.26 | 6.3575 | -0.192882 | 3640.65 |\n",
|
|
"| M5 | uptrend | 108.88 | 4.2826 | 0.069944 | 3640.65 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 734.75)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:45:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 558.4 | 44.8958 | 3.76046 | 3629.86 |\n",
|
|
"| H4 | uptrend | 962.82 | 20.5255 | 2.96435 | 3629.86 |\n",
|
|
"| H1 | uptrend | 161.02 | 12.9466 | 0.312691 | 3629.86 |\n",
|
|
"| M30 | downtrend | 49.83 | 9.1944 | -0.068718 | 3629.89 |\n",
|
|
"| M15 | downtrend | 186.95 | 6.9689 | -0.195424 | 3629.89 |\n",
|
|
"| M5 | uptrend | 87.84 | 4.7624 | 0.062751 | 3629.89 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 720.17)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:50:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.93 | 45.0322 | 3.76194 | 3636.1 |\n",
|
|
"| H4 | uptrend | 956.93 | 20.662 | 2.96582 | 3636.1 |\n",
|
|
"| H1 | uptrend | 160.09 | 13.083 | 0.314165 | 3636.1 |\n",
|
|
"| M30 | downtrend | 48.05 | 9.3308 | -0.067251 | 3636.1 |\n",
|
|
"| M15 | downtrend | 184.72 | 7.1418 | -0.197885 | 3636.1 |\n",
|
|
"| M5 | uptrend | 67.18 | 4.732 | 0.047681 | 3636.14 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 716.93)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 15:55:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.9 | 45.0322 | 3.76174 | 3635.25 |\n",
|
|
"| H4 | uptrend | 956.87 | 20.662 | 2.96562 | 3635.25 |\n",
|
|
"| H1 | uptrend | 159.99 | 13.083 | 0.313971 | 3635.28 |\n",
|
|
"| M30 | downtrend | 48.19 | 9.3308 | -0.067445 | 3635.28 |\n",
|
|
"| M15 | downtrend | 176.72 | 7.4726 | -0.198079 | 3635.28 |\n",
|
|
"| M5 | uptrend | 60.57 | 5.2256 | 0.047478 | 3635.28 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 716.89)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:00:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.14 | 45.0322 | 3.76337 | 3642.18 |\n",
|
|
"| H4 | uptrend | 957.4 | 20.662 | 2.96726 | 3642.18 |\n",
|
|
"| H1 | uptrend | 160.82 | 13.083 | 0.315602 | 3642.18 |\n",
|
|
"| M30 | downtrend | 47.02 | 9.3308 | -0.065815 | 3642.18 |\n",
|
|
"| M15 | downtrend | 174.23 | 7.5168 | -0.196449 | 3642.18 |\n",
|
|
"| M5 | uptrend | 50.97 | 5.4437 | 0.041619 | 3642.17 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.24)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:05:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.26 | 45.0322 | 3.76419 | 3645.64 |\n",
|
|
"| H4 | uptrend | 957.66 | 20.662 | 2.96807 | 3645.64 |\n",
|
|
"| H1 | uptrend | 163.61 | 12.4943 | 0.306628 | 3645.64 |\n",
|
|
"| M30 | downtrend | 60.79 | 9.01 | -0.082152 | 3645.64 |\n",
|
|
"| M15 | downtrend | 179.1 | 7.3256 | -0.196798 | 3645.64 |\n",
|
|
"| M5 | uptrend | 43.68 | 5.017 | 0.032869 | 3645.61 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.42)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:10:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.09 | 45.0322 | 3.76304 | 3640.77 |\n",
|
|
"| H4 | uptrend | 957.29 | 20.662 | 2.96692 | 3640.77 |\n",
|
|
"| H1 | uptrend | 160.37 | 12.6986 | 0.305477 | 3640.77 |\n",
|
|
"| M30 | downtrend | 60.27 | 9.2143 | -0.083303 | 3640.77 |\n",
|
|
"| M15 | downtrend | 175.25 | 7.5299 | -0.197949 | 3640.77 |\n",
|
|
"| M5 | uptrend | 38.08 | 5.5548 | 0.031726 | 3640.77 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.17)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:15:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.09 | 45.0322 | 3.76304 | 3640.78 |\n",
|
|
"| H4 | uptrend | 957.29 | 20.662 | 2.96693 | 3640.78 |\n",
|
|
"| H1 | uptrend | 160.38 | 12.6986 | 0.30548 | 3640.78 |\n",
|
|
"| M30 | downtrend | 60.27 | 9.2143 | -0.083301 | 3640.78 |\n",
|
|
"| M15 | downtrend | 189.58 | 6.9921 | -0.198836 | 3640.78 |\n",
|
|
"| M5 | uptrend | 27.83 | 5.0669 | 0.021151 | 3640.78 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.17)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:20:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.97 | 45.0322 | 3.76221 | 3637.27 |\n",
|
|
"| H4 | uptrend | 957.02 | 20.662 | 2.9661 | 3637.27 |\n",
|
|
"| H1 | uptrend | 157.7 | 12.8793 | 0.30465 | 3637.27 |\n",
|
|
"| M30 | downtrend | 59.7 | 9.395 | -0.08413 | 3637.27 |\n",
|
|
"| M15 | downtrend | 181.2 | 7.3449 | -0.199635 | 3637.4 |\n",
|
|
"| M5 | uptrend | 25.04 | 5.4197 | 0.020353 | 3637.4 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 716.99)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:25:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.92 | 45.0322 | 3.76191 | 3635.99 |\n",
|
|
"| H4 | uptrend | 956.93 | 20.662 | 2.96579 | 3635.99 |\n",
|
|
"| H1 | uptrend | 156.16 | 12.9928 | 0.304348 | 3635.99 |\n",
|
|
"| M30 | downtrend | 59.2 | 9.5086 | -0.084432 | 3635.99 |\n",
|
|
"| M15 | downtrend | 178.74 | 7.4585 | -0.199968 | 3635.99 |\n",
|
|
"| M5 | uptrend | 17.58 | 5.3919 | 0.014216 | 3635.99 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 716.92)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:30:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.91 | 45.0322 | 3.76182 | 3635.59 |\n",
|
|
"| H4 | uptrend | 956.9 | 20.662 | 2.9657 | 3635.59 |\n",
|
|
"| H1 | uptrend | 156.11 | 12.9928 | 0.304254 | 3635.59 |\n",
|
|
"| M30 | downtrend | 59.26 | 9.5086 | -0.084527 | 3635.59 |\n",
|
|
"| M15 | downtrend | 178.82 | 7.4585 | -0.200062 | 3635.59 |\n",
|
|
"| M5 | uptrend | 10.71 | 5.2118 | 0.008372 | 3635.59 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 716.90)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:35:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 556.97 | 45.0322 | 3.76227 | 3637.51 |\n",
|
|
"| H4 | uptrend | 957.04 | 20.662 | 2.96615 | 3637.51 |\n",
|
|
"| H1 | uptrend | 156.35 | 12.9928 | 0.304707 | 3637.51 |\n",
|
|
"| M30 | downtrend | 74.56 | 9.1366 | -0.102182 | 3637.51 |\n",
|
|
"| M15 | downtrend | 185.56 | 7.2329 | -0.201324 | 3637.51 |\n",
|
|
"| M5 | uptrend | 3.65 | 5.1466 | 0.002815 | 3637.52 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.00)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:40:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.17 | 45.0322 | 3.76356 | 3642.96 |\n",
|
|
"| H4 | uptrend | 957.46 | 20.662 | 2.96744 | 3642.96 |\n",
|
|
"| H1 | uptrend | 157.01 | 12.9928 | 0.305995 | 3642.96 |\n",
|
|
"| M30 | downtrend | 71.31 | 9.4323 | -0.100895 | 3642.96 |\n",
|
|
"| M15 | downtrend | 177.13 | 7.5286 | -0.200037 | 3642.96 |\n",
|
|
"| M5 | downtrend | 1.11 | 5.2219 | -0.00087 | 3642.96 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.28)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:45:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.13 | 45.0322 | 3.76335 | 3642.09 |\n",
|
|
"| H4 | uptrend | 957.39 | 20.662 | 2.96724 | 3642.09 |\n",
|
|
"| H1 | uptrend | 156.9 | 12.9928 | 0.305789 | 3642.09 |\n",
|
|
"| M30 | downtrend | 71.45 | 9.4337 | -0.10111 | 3642.05 |\n",
|
|
"| M15 | downtrend | 177.29 | 7.53 | -0.200252 | 3642.05 |\n",
|
|
"| M5 | downtrend | 5.59 | 5.0289 | -0.004215 | 3642.05 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.24)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:50:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.24 | 45.0322 | 3.76406 | 3645.09 |\n",
|
|
"| H4 | uptrend | 957.62 | 20.662 | 2.96794 | 3645.09 |\n",
|
|
"| H1 | uptrend | 157.08 | 13.0086 | 0.306498 | 3645.09 |\n",
|
|
"| M30 | downtrend | 69.51 | 9.6287 | -0.100391 | 3645.09 |\n",
|
|
"| M15 | downtrend | 179.32 | 7.4229 | -0.199662 | 3645.09 |\n",
|
|
"| M5 | downtrend | 8.89 | 5.1004 | -0.006799 | 3645.09 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.39)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 16:55:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.11 | 45.0322 | 3.76319 | 3641.42 |\n",
|
|
"| H4 | uptrend | 957.34 | 20.662 | 2.96708 | 3641.42 |\n",
|
|
"| H1 | uptrend | 156.64 | 13.0086 | 0.30565 | 3641.5 |\n",
|
|
"| M30 | downtrend | 70.1 | 9.6287 | -0.10124 | 3641.5 |\n",
|
|
"| M15 | downtrend | 180.08 | 7.4229 | -0.200511 | 3641.5 |\n",
|
|
"| M5 | downtrend | 13.06 | 5.1232 | -0.010037 | 3641.5 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.20)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:00:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.01 | 45.0322 | 3.76248 | 3638.39 |\n",
|
|
"| H4 | uptrend | 957.11 | 20.662 | 2.96636 | 3638.39 |\n",
|
|
"| H1 | uptrend | 156.26 | 13.0086 | 0.304915 | 3638.39 |\n",
|
|
"| M30 | downtrend | 70.6 | 9.6287 | -0.101974 | 3638.39 |\n",
|
|
"| M15 | downtrend | 177.23 | 7.57 | -0.201245 | 3638.39 |\n",
|
|
"| M5 | downtrend | 17.73 | 5.0373 | -0.013399 | 3638.39 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.05)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:05:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.04 | 45.0322 | 3.76274 | 3639.5 |\n",
|
|
"| H4 | uptrend | 957.19 | 20.662 | 2.96662 | 3639.5 |\n",
|
|
"| H1 | uptrend | 159.11 | 12.3265 | 0.294189 | 3639.5 |\n",
|
|
"| M30 | downtrend | 87.21 | 9.1881 | -0.120198 | 3639.5 |\n",
|
|
"| M15 | downtrend | 184.85 | 7.2765 | -0.201754 | 3639.45 |\n",
|
|
"| M5 | downtrend | 28.07 | 4.5764 | -0.019271 | 3639.45 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.10)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:10:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.01 | 45.0322 | 3.7625 | 3638.47 |\n",
|
|
"| H4 | uptrend | 957.11 | 20.662 | 2.96638 | 3638.47 |\n",
|
|
"| H1 | uptrend | 158.8 | 12.3401 | 0.293946 | 3638.47 |\n",
|
|
"| M30 | downtrend | 87.26 | 9.2017 | -0.120442 | 3638.47 |\n",
|
|
"| M15 | downtrend | 184.71 | 7.2901 | -0.201986 | 3638.47 |\n",
|
|
"| M5 | downtrend | 26.99 | 4.8164 | -0.019503 | 3638.47 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.05)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:15:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.04 | 45.0322 | 3.7627 | 3639.34 |\n",
|
|
"| H4 | uptrend | 957.18 | 20.662 | 2.96659 | 3639.34 |\n",
|
|
"| H1 | uptrend | 157.81 | 12.4265 | 0.294151 | 3639.34 |\n",
|
|
"| M30 | downtrend | 86.3 | 9.2881 | -0.120231 | 3639.36 |\n",
|
|
"| M15 | downtrend | 197.03 | 6.851 | -0.202474 | 3639.36 |\n",
|
|
"| M5 | downtrend | 38.81 | 4.3328 | -0.025222 | 3639.36 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.10)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:20:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.1 | 45.0322 | 3.76314 | 3641.21 |\n",
|
|
"| H4 | uptrend | 957.32 | 20.662 | 2.96703 | 3641.21 |\n",
|
|
"| H1 | uptrend | 158.05 | 12.4265 | 0.294605 | 3641.26 |\n",
|
|
"| M30 | downtrend | 85.98 | 9.2881 | -0.119782 | 3641.26 |\n",
|
|
"| M15 | downtrend | 190.36 | 7.0753 | -0.202025 | 3641.26 |\n",
|
|
"| M5 | downtrend | 42.25 | 4.2351 | -0.026837 | 3641.26 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.19)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:25:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.06 | 45.0322 | 3.76288 | 3640.08 |\n",
|
|
"| H4 | uptrend | 957.24 | 20.662 | 2.96676 | 3640.08 |\n",
|
|
"| H1 | uptrend | 157.41 | 12.4651 | 0.294326 | 3640.08 |\n",
|
|
"| M30 | downtrend | 85.82 | 9.3267 | -0.120061 | 3640.08 |\n",
|
|
"| M15 | downtrend | 189.57 | 7.1146 | -0.202304 | 3640.08 |\n",
|
|
"| M5 | downtrend | 40.5 | 4.4637 | -0.027116 | 3640.08 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.13)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:30:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.04 | 45.0322 | 3.7627 | 3639.34 |\n",
|
|
"| H4 | uptrend | 957.18 | 20.662 | 2.96659 | 3639.34 |\n",
|
|
"| H1 | uptrend | 157.32 | 12.4651 | 0.294151 | 3639.34 |\n",
|
|
"| M30 | downtrend | 85.94 | 9.3267 | -0.120236 | 3639.34 |\n",
|
|
"| M15 | downtrend | 204.47 | 6.6203 | -0.203053 | 3639.34 |\n",
|
|
"| M5 | downtrend | 54.4 | 3.9874 | -0.032537 | 3639.34 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.10)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:35:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.05 | 45.0322 | 3.7628 | 3639.76 |\n",
|
|
"| H4 | uptrend | 957.21 | 20.662 | 2.96669 | 3639.76 |\n",
|
|
"| H1 | uptrend | 157.37 | 12.4651 | 0.294246 | 3639.74 |\n",
|
|
"| M30 | downtrend | 104.15 | 8.8226 | -0.137829 | 3639.74 |\n",
|
|
"| M15 | downtrend | 199.49 | 6.7825 | -0.202959 | 3639.74 |\n",
|
|
"| M5 | downtrend | 52.12 | 4.1496 | -0.032442 | 3639.74 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.12)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:40:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.08 | 45.0322 | 3.76296 | 3640.42 |\n",
|
|
"| H4 | uptrend | 957.26 | 20.662 | 2.96684 | 3640.42 |\n",
|
|
"| H1 | uptrend | 157.46 | 12.4651 | 0.294406 | 3640.42 |\n",
|
|
"| M30 | downtrend | 103.85 | 8.8376 | -0.137666 | 3640.43 |\n",
|
|
"| M15 | downtrend | 198.89 | 6.7975 | -0.202796 | 3640.43 |\n",
|
|
"| M5 | downtrend | 66.47 | 3.7093 | -0.036983 | 3640.43 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.15)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:45:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.07 | 45.0322 | 3.76289 | 3640.13 |\n",
|
|
"| H4 | uptrend | 957.24 | 20.662 | 2.96677 | 3640.13 |\n",
|
|
"| H1 | uptrend | 157.42 | 12.4651 | 0.294338 | 3640.13 |\n",
|
|
"| M30 | downtrend | 103.9 | 8.8376 | -0.137737 | 3640.13 |\n",
|
|
"| M15 | downtrend | 198.96 | 6.7975 | -0.202867 | 3640.13 |\n",
|
|
"| M5 | downtrend | 65.02 | 3.7993 | -0.037054 | 3640.13 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.14)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:50:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.07 | 45.0322 | 3.76292 | 3640.25 |\n",
|
|
"| H4 | uptrend | 957.25 | 20.662 | 2.9668 | 3640.25 |\n",
|
|
"| H1 | uptrend | 157.43 | 12.4651 | 0.294366 | 3640.25 |\n",
|
|
"| M30 | downtrend | 103.88 | 8.8376 | -0.137709 | 3640.25 |\n",
|
|
"| M15 | downtrend | 212.41 | 6.4155 | -0.204409 | 3640.25 |\n",
|
|
"| M5 | downtrend | 72.07 | 3.6315 | -0.039256 | 3640.25 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.14)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 17:55:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.05 | 45.0322 | 3.7628 | 3639.77 |\n",
|
|
"| H4 | uptrend | 957.21 | 20.662 | 2.96669 | 3639.77 |\n",
|
|
"| H1 | uptrend | 157.37 | 12.4651 | 0.294253 | 3639.77 |\n",
|
|
"| M30 | downtrend | 103.97 | 8.8376 | -0.137822 | 3639.77 |\n",
|
|
"| M15 | downtrend | 211.92 | 6.4341 | -0.204523 | 3639.77 |\n",
|
|
"| M5 | downtrend | 79.49 | 3.4885 | -0.041598 | 3639.77 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.12)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:00:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.11 | 45.0322 | 3.76316 | 3641.3 |\n",
|
|
"| H4 | uptrend | 957.33 | 20.662 | 2.96705 | 3641.3 |\n",
|
|
"| H1 | uptrend | 157.57 | 12.4651 | 0.294614 | 3641.3 |\n",
|
|
"| M30 | downtrend | 103.25 | 8.8755 | -0.13746 | 3641.3 |\n",
|
|
"| M15 | downtrend | 228.48 | 6.0488 | -0.207308 | 3641.29 |\n",
|
|
"| M5 | downtrend | 95.29 | 3.1791 | -0.045439 | 3641.29 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.20)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 17\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 17 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 17 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 17 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:05:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.11 | 45.0322 | 3.76322 | 3641.51 |\n",
|
|
"| H4 | uptrend | 957.35 | 20.662 | 2.9671 | 3641.51 |\n",
|
|
"| H1 | uptrend | 162.8 | 11.7126 | 0.286017 | 3641.51 |\n",
|
|
"| M30 | downtrend | 122.35 | 8.3794 | -0.153777 | 3641.51 |\n",
|
|
"| M15 | downtrend | 223.36 | 6.186 | -0.207256 | 3641.51 |\n",
|
|
"| M5 | downtrend | 102.55 | 3.083 | -0.047423 | 3641.51 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.21)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 16\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 16 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 16 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 16 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:10:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.13 | 45.0322 | 3.76334 | 3642.05 |\n",
|
|
"| H4 | uptrend | 957.39 | 20.662 | 2.96723 | 3642.05 |\n",
|
|
"| H1 | uptrend | 162.13 | 11.7662 | 0.286145 | 3642.05 |\n",
|
|
"| M30 | downtrend | 121.47 | 8.433 | -0.153649 | 3642.05 |\n",
|
|
"| M15 | downtrend | 221.31 | 6.2395 | -0.207129 | 3642.05 |\n",
|
|
"| M5 | downtrend | 97.08 | 3.248 | -0.047296 | 3642.05 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.24)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 15\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 15 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 15 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 15 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:15:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.18 | 45.0322 | 3.76364 | 3643.33 |\n",
|
|
"| H4 | uptrend | 957.48 | 20.662 | 2.96753 | 3643.31 |\n",
|
|
"| H1 | uptrend | 161.65 | 11.8133 | 0.286442 | 3643.31 |\n",
|
|
"| M30 | downtrend | 120.56 | 8.4801 | -0.153352 | 3643.31 |\n",
|
|
"| M15 | downtrend | 219.33 | 6.2867 | -0.206831 | 3643.31 |\n",
|
|
"| M5 | downtrend | 102.38 | 3.1853 | -0.048918 | 3643.31 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.30)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 15\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 15 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 15 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 15 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:20:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.23 | 45.0322 | 3.76403 | 3644.94 |\n",
|
|
"| H4 | uptrend | 957.61 | 20.662 | 2.96791 | 3644.94 |\n",
|
|
"| H1 | uptrend | 160.3 | 11.929 | 0.286827 | 3644.94 |\n",
|
|
"| M30 | downtrend | 118.64 | 8.5958 | -0.152966 | 3644.94 |\n",
|
|
"| M15 | downtrend | 230.48 | 6.0362 | -0.208682 | 3644.94 |\n",
|
|
"| M5 | downtrend | 106.34 | 3.1563 | -0.050348 | 3644.94 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.38)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 13\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 13 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 13 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 13 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:25:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.21 | 45.0322 | 3.76383 | 3644.1 |\n",
|
|
"| H4 | uptrend | 957.54 | 20.662 | 2.96771 | 3644.1 |\n",
|
|
"| H1 | uptrend | 160.19 | 11.929 | 0.286629 | 3644.1 |\n",
|
|
"| M30 | downtrend | 118.79 | 8.5958 | -0.153165 | 3644.1 |\n",
|
|
"| M15 | downtrend | 230.7 | 6.0362 | -0.208881 | 3644.1 |\n",
|
|
"| M5 | downtrend | 113.45 | 3.0523 | -0.051941 | 3644.1 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.34)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 13\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 13 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 13 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 13 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:30:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.21 | 45.0322 | 3.76387 | 3644.28 |\n",
|
|
"| H4 | uptrend | 957.56 | 20.662 | 2.96775 | 3644.28 |\n",
|
|
"| H1 | uptrend | 160.21 | 11.929 | 0.286671 | 3644.28 |\n",
|
|
"| M30 | downtrend | 118.76 | 8.5958 | -0.153122 | 3644.28 |\n",
|
|
"| M15 | downtrend | 230.65 | 6.0362 | -0.208838 | 3644.28 |\n",
|
|
"| M5 | downtrend | 122.64 | 2.9186 | -0.05369 | 3644.28 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.35)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 12\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 12 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 12 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 12 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:35:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.22 | 45.0322 | 3.76391 | 3644.46 |\n",
|
|
"| H4 | uptrend | 957.57 | 20.662 | 2.9678 | 3644.46 |\n",
|
|
"| H1 | uptrend | 160.23 | 11.929 | 0.286714 | 3644.46 |\n",
|
|
"| M30 | downtrend | 140.55 | 8.0675 | -0.170081 | 3644.46 |\n",
|
|
"| M15 | downtrend | 246.59 | 5.6907 | -0.210495 | 3644.46 |\n",
|
|
"| M5 | downtrend | 133.04 | 2.7958 | -0.055794 | 3644.46 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.36)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 10\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 10 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 10 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 10 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:40:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.22 | 45.0322 | 3.76396 | 3644.65 |\n",
|
|
"| H4 | uptrend | 957.59 | 20.662 | 2.96784 | 3644.65 |\n",
|
|
"| H1 | uptrend | 160.26 | 11.929 | 0.286759 | 3644.65 |\n",
|
|
"| M30 | downtrend | 140.09 | 8.0918 | -0.170036 | 3644.65 |\n",
|
|
"| M15 | downtrend | 245.49 | 5.715 | -0.21045 | 3644.65 |\n",
|
|
"| M5 | downtrend | 157.87 | 2.4819 | -0.058771 | 3644.61 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.37)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 10\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 10 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 10 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 10 (100.0%)\n",
|
|
"\n",
|
|
"⏰ 2025-09-18 18:45:00 - Running Optimized Trading Check\n",
|
|
"\n",
|
|
"🔍 POSITION CHECK für XAUUSD\n",
|
|
"✅ Position-Check OK: 0/1 Positionen\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 47%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 557.2 | 45.0322 | 3.76378 | 3643.92 |\n",
|
|
"| H4 | uptrend | 957.53 | 20.662 | 2.96767 | 3643.92 |\n",
|
|
"| H1 | uptrend | 160.16 | 11.929 | 0.286591 | 3643.94 |\n",
|
|
"| M30 | downtrend | 140.14 | 8.0968 | -0.170204 | 3643.94 |\n",
|
|
"| M15 | downtrend | 267.51 | 5.315 | -0.213277 | 3643.94 |\n",
|
|
"| M5 | downtrend | 168.31 | 2.3957 | -0.060484 | 3643.94 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 717.33)\n",
|
|
"➡️ Fast-Trend: downtrend\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
"\n",
|
|
"⏸️ TRADE SKIPPED: Confidence 0.0% < adaptive threshold 85%\n",
|
|
"Confidence: 0.0% | Threshold: 85%\n",
|
|
"Signal Quality: none | Regime: ranging\n",
|
|
"Positions: 0/1\n",
|
|
"⏸️ No trade - waiting for better conditions\n",
|
|
"\n",
|
|
"📊 PERFORMANCE ANALYSIS - Last 1 days\n",
|
|
"Total Trades: 8\n",
|
|
"\n",
|
|
"By Market Regime:\n",
|
|
" RANGING: 8 (100.0%)\n",
|
|
"\n",
|
|
"By Confidence Level:\n",
|
|
" HIGH: 8 (100.0%)\n",
|
|
" MEDIUM: 0 (0.0%)\n",
|
|
" LOW: 0 (0.0%)\n",
|
|
"\n",
|
|
"By Signal Quality:\n",
|
|
" EXCELLENT: 8 (100.0%)\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Scheduler next Job\n",
|
|
"print(\"\\n📋 Active Jobs:\")\n",
|
|
"for job in optimized_scheduler.get_jobs():\n",
|
|
" print(f\" - {job.id}: {job.next_run_time}\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 16. Monitoring & Control"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 34,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"🔍 Optimized Trading Bot Status:\n",
|
|
" MT5 Connection: ✅\n",
|
|
" Scheduler Running: ✅\n",
|
|
" Active Jobs: 1\n",
|
|
"📊 Enhanced Trend-Analyse für XAUUSD\n",
|
|
"🎯 Market Regime: RANGING (Strength: 49%)\n",
|
|
"🎚️ Adaptive Confidence Threshold: 85%\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"| TF | Trend | Strength | ATR | Slope | Price |\n",
|
|
"|------+-----------+------------+---------+-----------+---------|\n",
|
|
"| D1 | uptrend | 590.14 | 42.5729 | 3.76857 | 3664.17 |\n",
|
|
"| H4 | uptrend | 1034.27 | 19.0014 | 2.94787 | 3664.17 |\n",
|
|
"| H1 | uptrend | 205.04 | 11.7825 | 0.362386 | 3664.17 |\n",
|
|
"| M30 | uptrend | 172.55 | 10.7198 | 0.27746 | 3664.17 |\n",
|
|
"| M15 | downtrend | 154.69 | 8.2527 | -0.191496 | 3664.17 |\n",
|
|
"| M5 | downtrend | 33.98 | 4.0692 | -0.02074 | 3664.17 |\n",
|
|
"+------+-----------+------------+---------+-----------+---------+\n",
|
|
"➡️ Standard-Trend: uptrend (Strength: 767.79)\n",
|
|
"➡️ Fast-Trend: sideways\n",
|
|
"➡️ Top-Down-Trend: sideways\n",
|
|
"➡️ Confidence: 0.0% (Threshold: 85%)\n",
|
|
"➡️ Risk-Adjusted Strength: 0.0\n",
|
|
"➡️ Signal Quality: NONE\n",
|
|
" Current Signal: 0\n",
|
|
" Confidence: 0.0%\n",
|
|
" Market Regime: RANGING\n",
|
|
" Signal Quality: NONE\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Status Check\n",
|
|
"def check_optimized_bot_status():\n",
|
|
" \"\"\"\n",
|
|
" Überprüft den Status des optimierten Trading Bots\n",
|
|
" \"\"\"\n",
|
|
" print(\"🔍 Optimized Trading Bot Status:\")\n",
|
|
" print(f\" MT5 Connection: {'✅' if mt.terminal_info() else '❌'}\")\n",
|
|
" print(f\" Scheduler Running: {'✅' if optimized_scheduler.running else '❌'}\")\n",
|
|
" print(f\" Active Jobs: {len(optimized_scheduler.get_jobs())}\")\n",
|
|
" \n",
|
|
" # Aktuelle Signal-Info\n",
|
|
" try:\n",
|
|
" signal_info = extended_top_down_v2(symbol)\n",
|
|
" if signal_info:\n",
|
|
" print(f\" Current Signal: {signal_info['entry_signal']}\")\n",
|
|
" print(f\" Confidence: {signal_info['confidence']}%\")\n",
|
|
" print(f\" Market Regime: {signal_info['market_regime']['regime'].upper()}\")\n",
|
|
" print(f\" Signal Quality: {signal_info['signal_quality'].upper()}\")\n",
|
|
" except Exception as e:\n",
|
|
" print(f\" Signal Check: ❌ Error: {e}\")\n",
|
|
"\n",
|
|
"check_optimized_bot_status()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 17. Control Panel"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 24,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"💡 To stop trading, uncomment and run:\n",
|
|
"optimized_scheduler.remove_all_jobs()\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Stoppe alle Jobs\n",
|
|
"# optimized_scheduler.remove_all_jobs()\n",
|
|
"# print(\"⏹️ All jobs removed\")\n",
|
|
"\n",
|
|
"print(\"💡 To stop trading, uncomment and run:\")\n",
|
|
"print(\"optimized_scheduler.remove_all_jobs()\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 33,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"💡 To shutdown completely, uncomment and run:\n",
|
|
"optimized_scheduler.shutdown()\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Scheduler herunterfahren\n",
|
|
"# optimized_scheduler.shutdown()\n",
|
|
"# print(\"🔴 Optimized Trading Bot stopped\")\n",
|
|
"\n",
|
|
"print(\"💡 To shutdown completely, uncomment and run:\")\n",
|
|
"print(\"optimized_scheduler.shutdown()\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 📝 Zusammenfassung\n",
|
|
"\n",
|
|
"### ✅ **Position Control erfolgreich implementiert!**\n",
|
|
"\n",
|
|
"**Wichtigste Verbesserungen:**\n",
|
|
"- 🛡️ **Maximal 1 Trade gleichzeitig** (verhindert Mehrfach-Trades)\n",
|
|
"- 🔍 **Position-Check vor jedem Trade**\n",
|
|
"- 📊 **Position-Status Monitoring**\n",
|
|
"- 🔧 **Position-Management Funktionen**\n",
|
|
"\n",
|
|
"**Hauptfunktionen:**\n",
|
|
"- `execute_trade_v2_with_position_control()` - Trading mit Position-Limit\n",
|
|
"- `check_existing_positions()` - Position-Überprüfung\n",
|
|
"- `get_position_summary()` - Position-Status anzeigen\n",
|
|
"- `close_existing_positions()` - Positionen schließen\n",
|
|
"\n",
|
|
"**Wie es funktioniert:**\n",
|
|
"1. ✅ **Position-Check** vor Signal-Analyse\n",
|
|
"2. 🛑 **Blockierung** wenn bereits Position existiert\n",
|
|
"3. 🚀 **Trading** nur wenn keine Position aktiv\n",
|
|
"4. 📊 **Verification** nach Trade-Ausführung\n",
|
|
"\n",
|
|
"**Problem gelöst:** Dein Bot eröffnet jetzt maximal 1 Trade gleichzeitig! 🎉"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "base",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.11.5"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|