fix: Use hardcoded tp2SizePercent=100 for auto-synced position fallback
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user