fix: Add direction-specific quality thresholds to docker-compose.yml

- 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
This commit is contained in:
mindesbunister
2025-11-23 15:06:01 +01:00
parent 01aaa0932a
commit 357626b392

View File

@@ -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}