fix: Change TP1 from 1.1% to 1.45% (FIXED - Jan 3, 2026)
- Updated config/trading.ts defaults: takeProfit1Percent, minTp1Percent, maxTp1Percent all set to 1.45 - Updated .env: TAKE_PROFIT_1_PERCENT, MIN_TP1_PERCENT, MAX_TP1_PERCENT all set to 1.45 - Updated documentation: Exit strategy section reflects fixed 1.45% TP1 (no ATR variance) - User requested fixed TP1 at 1.45% instead of ATR-based dynamic targets - Container restarted to apply changes
This commit is contained in:
14
.github/copilot-instructions.md
vendored
14
.github/copilot-instructions.md
vendored
@@ -103,21 +103,27 @@
|
||||
- **Last Updated:** Dec 26, 2025 (indicator score bypass added)
|
||||
|
||||
### Position Management & Exit Strategy
|
||||
- **Active System:** TP2-as-Runner with ATR-Based Dynamic Targets
|
||||
- **Active System:** Fixed TP1 with ATR-Based TP2/Trailing
|
||||
- **File:** `lib/trading/position-manager.ts` (2,027 lines)
|
||||
- **Status:** ✅ PRODUCTION
|
||||
- **Exit Flow:**
|
||||
1. TP1 at ATR × 2.0 (~0.86%) → Close 60% (configurable via `TAKE_PROFIT_1_SIZE_PERCENT`)
|
||||
1. TP1 at **1.45% FIXED** → Close 100% (Jan 3, 2026 - MIN/MAX clamped to 1.45%)
|
||||
2. Move SL to breakeven (ADX-based: 0% for ADX<20, -0.55% for ADX>25)
|
||||
3. TP2 at ATR × 4.0 (~1.72%) → Activate trailing stop (does NOT close position)
|
||||
4. Trailing Stop: ATR × 1.5 with real-time 1-min ADX adjustments + profit acceleration
|
||||
5. Runner (40% default) exits via trailing stop or emergency SL
|
||||
5. Runner exits via trailing stop or emergency SL
|
||||
- **TP1 Configuration (Jan 3, 2026):**
|
||||
* `TAKE_PROFIT_1_PERCENT=1.45` (target)
|
||||
* `MIN_TP1_PERCENT=1.45` (floor - prevents going below)
|
||||
* `MAX_TP1_PERCENT=1.45` (cap - prevents going above)
|
||||
* `TAKE_PROFIT_1_SIZE_PERCENT=100` (close entire position at TP1)
|
||||
* Rationale: User-requested fixed 1.45% TP1, no ATR variance
|
||||
- **Key Features:**
|
||||
* Adaptive trailing: Widens for strong ADX (>30), tightens for weak (<25)
|
||||
* ADX acceleration bonus: +5 points since entry = 1.3× wider trail
|
||||
* Peak tracking: Updates `peakPrice` every 2s for precise trailing calculations
|
||||
- **Critical Bug Fixed:** Bug #87 - State persistence (tp2Hit, trailingStopActive, peakPrice) now bulletproof
|
||||
- **Last Updated:** Dec 17, 2025 (state persistence fix - commit 341341d)
|
||||
- **Last Updated:** Jan 3, 2026 (TP1 fixed to 1.45%)
|
||||
|
||||
### Adaptive Leverage System
|
||||
- **Status:** ❌ DISABLED (Jan 2, 2026) - Using fixed leverage (SOL 10x, ETH 5x)
|
||||
|
||||
Reference in New Issue
Block a user