feat: Revenge timing Option 2 - 90s confirmation (DEPLOYED)
- Changed both LONG and SHORT revenge to require 90-second confirmation - OLD: LONG immediate entry, SHORT 60s confirmation - NEW: Both require 90s (1.5 minutes) sustained move before entry - Reasoning: Filters retest wicks while still catching big moves Real-world scenario (Nov 26, 2025): - Stop-out: $138.00 at 14:51 CET - Would enter immediately: $136.32 - Retest bounce: $137.50 (would stop out again at $137.96) - Actual move: $136 → $144.50 (+$530 opportunity) - OLD system: Enters $136.32, stops $137.50 = LOSS AGAIN - NEW system (90s): Waits through retest, enters safely after confirmation Option 2 approach (1-2 minute confirmation): - Fast enough to catch moves (not full 5min candle) - Slow enough to filter quick wick reversals - Tracks firstCrossTime, resets if price leaves zone - Logs progress: '⏱️ LONG/SHORT revenge: X.Xmin in zone (need 1.5min)' Files changed: - lib/trading/stop-hunt-tracker.ts (lines 254-310) Deployment: - Container restarted: 2025-11-26 20:52:55 CET - Build time: 71.8s compilation - Status: ✅ DEPLOYED and VERIFIED Future consideration: - User suggested TradingView signals every 1 minute for better granularity - Decision: Validate 90s approach first with real stop-outs
This commit is contained in:
@@ -80,6 +80,15 @@ services:
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
cpus: '2.0'
|
||||
reservations:
|
||||
memory: 512M
|
||||
cpus: '0.5'
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
||||
interval: 30s
|
||||
@@ -117,6 +126,14 @@ services:
|
||||
- ./prisma/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||
networks:
|
||||
- trading-net
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
cpus: '1.0'
|
||||
reservations:
|
||||
memory: 512M
|
||||
cpus: '0.25'
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user