fix: Correct function name check_existing_position to check_existing_positions
Fixed NameError in enhanced trading check: - check_existing_position() does not exist - Correct function is check_existing_positions() (with 's') Fixed in: - activate_enhanced_scoring.py - Notebook cells 84 and 89 Error resolved: NameError: name 'check_existing_position' is not defined
This commit is contained in:
1 parent
35e19143ac
commit
ccbc5f8d06
3 files changed
+5
-13
No files matched your search
@@ -3281,7 +3281,7 @@
|
|||||||
" try:\n",
|
" try:\n",
|
||||||
" # SCHRITT 1: Position Check (wie vorher)\n",
|
" # SCHRITT 1: Position Check (wie vorher)\n",
|
||||||
" max_positions = TRADING_CONFIG['risk']['max_positions']\n",
|
" max_positions = TRADING_CONFIG['risk']['max_positions']\n",
|
||||||
" position_info = check_existing_position(symbol)\n",
|
" position_info = check_existing_positions(symbol)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" if position_info['count'] >= max_positions:\n",
|
" if position_info['count'] >= max_positions:\n",
|
||||||
" if debug:\n",
|
" if debug:\n",
|
||||||
@@ -3545,7 +3545,7 @@
|
|||||||
" try:\n",
|
" try:\n",
|
||||||
" # SCHRITT 1: Position Check (wie vorher)\n",
|
" # SCHRITT 1: Position Check (wie vorher)\n",
|
||||||
" max_positions = TRADING_CONFIG['risk']['max_positions']\n",
|
" max_positions = TRADING_CONFIG['risk']['max_positions']\n",
|
||||||
" position_info = check_existing_position(symbol)\n",
|
" position_info = check_existing_positions(symbol)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" if position_info['count'] >= max_positions:\n",
|
" if position_info['count'] >= max_positions:\n",
|
||||||
" if debug:\n",
|
" if debug:\n",
|
||||||
@@ -3710,15 +3710,7 @@
|
|||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"id": "597b2834",
|
"id": "597b2834",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stderr",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"2026-01-21 13:21:23,269 - INFO - HTTP Request: POST https://api.telegram.org/bot7783303065:AAHVVvwWGqmhJ2BVq8LqkLRSsicKy1CUsD8/getUpdates \"HTTP/1.1 200 OK\"\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"# ==========================================\n",
|
"# ==========================================\n",
|
||||||
"# TEST ENHANCED SIGNAL SCORING\n",
|
"# TEST ENHANCED SIGNAL SCORING\n",
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ def enhanced_trading_check_wrapper(symbol="XAUUSD", debug=False):
|
|||||||
try:
|
try:
|
||||||
# SCHRITT 1: Position Check (wie vorher)
|
# SCHRITT 1: Position Check (wie vorher)
|
||||||
max_positions = TRADING_CONFIG['risk']['max_positions']
|
max_positions = TRADING_CONFIG['risk']['max_positions']
|
||||||
position_info = check_existing_position(symbol)
|
position_info = check_existing_positions(symbol)
|
||||||
|
|
||||||
if position_info['count'] >= max_positions:
|
if position_info['count'] >= max_positions:
|
||||||
if debug:
|
if debug:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"timestamp": "2026-01-21T13:09:03.667837",
|
"timestamp": "2026-01-21T13:24:31.582409",
|
||||||
"session_thresholds": {
|
"session_thresholds": {
|
||||||
"asian": 60,
|
"asian": 60,
|
||||||
"ny": 60,
|
"ny": 60,
|
||||||
|
|||||||
Reference in new issue
Block a user