- Fixed isLong detection: ['BUY', 'SELL'] → ['BUY', 'LONG'] - Increased max risk tolerance: 5% → 6% (more realistic for leveraged trades) - Now properly validates LONG vs SHORT position directions VALIDATION NOW WORKING CORRECTLY: - LONG positions: SL below entry, TP above entry ✅ - SHORT positions: SL above entry, TP below entry ✅ - Risk calculations accurate for leveraged trades ✅ - Proper blocking of invalid stop-loss directions ✅ - Valid trades pass validation ✅ - Invalid trades properly blocked ✅ - Risk/reward ratios calculated correctly ✅ - Direction validation working for both LONG/SHORT ✅ This fixes the issue where valid BUY trades were being incorrectly blocked due to wrong position direction detection.
7.0 KiB
7.0 KiB