Make TP2 the runner - no more partial closes

CHANGE: TP2 now activates trailing stop on full 25% remaining instead
of closing 80% and leaving 5% runner.

Benefits:
- 5x larger runner (25% vs 5%) = 25 vs 05 on 100 position
- Eliminates Drift minimum size issues completely
- Simplifies logic - no more canUseRunner() viability checks
- Better R:R on extended moves

New flow:
- TP1 (+0.4%): Close 75%, keep 25%
- TP2 (+0.7%): Skip close, activate trailing stop on full 25%
- Runner: 25% with ATR-based trailing (0.25-0.9%)

Config change: takeProfit2SizePercent: 80 → 0
Position Manager: Remove canUseRunner logic, activate trailing at TP2 hit
This commit is contained in:
mindesbunister
2025-11-07 15:29:50 +01:00
parent 36ba3809a1
commit 0c644ccabe
2 changed files with 15 additions and 52 deletions

View File

@@ -145,8 +145,9 @@ export const DEFAULT_TRADING_CONFIG: TradingConfig = {
// Execution
useMarketOrders: true, // Use market orders for reliable fills
confirmationTimeout: 30000, // 30 seconds max wait
takeProfit1SizePercent: 75, // Close 75% at TP1 to lock in profit
takeProfit2SizePercent: 80, // Close 80% of remaining 25% at TP2 (leaves 5% as runner)
// Position sizing (percentages of position to close at each TP)
takeProfit1SizePercent: 75, // Close 75% at TP1 (leaves 25% for TP2 + runner)
takeProfit2SizePercent: 0, // Don't close at TP2 - let full 25% remaining become the runner
}
// Supported markets on Drift Protocol