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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user