fix: Use hardcoded tp2SizePercent=100 for auto-synced position fallback

This commit is contained in:
mindesbunister
2025-12-13 17:32:10 +01:00
parent 3c61f42e31
commit 05089bb43e

View File

@@ -840,7 +840,7 @@ export class PositionManager {
tp2Price: trade.tp2Price || trade.entryPrice * (trade.direction === 'long' ? 1.04 : 0.96),
stopLossPrice: trade.stopLossPrice,
tp1SizePercent: 0, // Already hit, don't place TP1
tp2SizePercent: trade.tp2SizePercent || 0,
tp2SizePercent: 100, // Place TP2 on remaining position (runner)
direction: trade.direction,
useDualStops: this.config.useDualStops,
softStopPrice: this.config.useDualStops ? trade.stopLossPrice : undefined,