From 357626b392b5a1b2d408339efd0f11602fbc0f20 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sun, 23 Nov 2025 15:06:01 +0100 Subject: [PATCH] fix: Add direction-specific quality thresholds to docker-compose.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added MIN_SIGNAL_QUALITY_SCORE_LONG, _SHORT, and global to environment section - Required for ENV variables to be available in Node.js process.env - Without this, container couldn't read .env values for direction-specific thresholds Testing verified: - LONG quality 90: ✅ ALLOWED (threshold 90) - SHORT quality 70: ❌ BLOCKED (threshold 95) - Direction-specific logic working correctly --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ec351ec..ec44b53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,6 +40,11 @@ services: TAKE_PROFIT_2_PERCENT: ${TAKE_PROFIT_2_PERCENT:-1.5} TAKE_PROFIT_2_SIZE_PERCENT: ${TAKE_PROFIT_2_SIZE_PERCENT:-50} + # Signal quality thresholds (Nov 23, 2025 - direction-specific) + MIN_SIGNAL_QUALITY_SCORE: ${MIN_SIGNAL_QUALITY_SCORE:-91} + MIN_SIGNAL_QUALITY_SCORE_LONG: ${MIN_SIGNAL_QUALITY_SCORE_LONG:-90} + MIN_SIGNAL_QUALITY_SCORE_SHORT: ${MIN_SIGNAL_QUALITY_SCORE_SHORT:-95} + # Database (if using PostgreSQL) DATABASE_URL: ${DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/trading_bot_v4}