mindesbunister
702d08b0ba
feat: Integrate ADX validation into revenge system using 1-min market data
ENHANCEMENTS:
- Revenge system now checks fresh ADX from 1-minute market data cache
- Blocks revenge if ADX < 20 (weak trend - not worth re-entering)
- Executes revenge if ADX >= 20 (strong trend - high probability)
- Saves revengeFailedReason='ADX_TOO_LOW_X.X' for blocked attempts
- Telegram notification shows ADX check result
DATABASE:
- Added revengeFailedReason field to StopHunt table
- Added revengePnL field to track revenge trade outcomes
INTEGRATION:
- Uses getPythPriceMonitor().getCachedPrice() for fresh data
- Falls back to originalADX if cache unavailable
- Logs ADX validation: 'ADX check: X.X (threshold: 20)'
1-MINUTE DATA COLLECTION COMPLETE:
- TradingView alerts recreated with new format
- Bot correctly filters timeframe='1' → BlockedSignal
- Market data cache updates every 60 seconds
- Verified working: 2 signals collected, 0 trades executed
2025-11-27 10:16:59 +01:00
..
2025-11-22 16:10:19 +01:00
2025-11-24 08:40:09 +01:00
2025-11-25 10:19:04 +01:00
2025-11-24 16:49:10 +01:00
2025-11-27 10:16:59 +01:00
2025-11-21 09:47:00 +01:00
2025-11-27 10:16:59 +01:00
2025-11-21 09:47:00 +01:00