fix: Adjust trailing stop parameters for Gold (XAUUSD) trading
Deploy to Windows VPS / deploy (push) Has been cancelled

PROBLEM:
- Trailing stop values were optimized for Forex, not Gold
- breakeven_buffer_pips=5 → only $0.05 buffer for Gold (way too small!)
- min_distance_points=100 → only $1.00 minimum (too tight!)
- Trades were being stopped out with only ~$0.50 profit

SOLUTION (Gold-optimized):
- breakeven_buffer_pips: 5 → 300 ($3.00 buffer)
- min_distance_points: 100 → 500 ($5.00 minimum distance)
- atr_multiplier: 1.0 → 1.5 (more breathing room)

IMPACT:
- Trades now have proper room to develop
- Less premature stop-outs
- Better profit potential per trade

Updated in:
- enhanced_trailing_stop.py (class defaults + initialization)
- TradingBot_V1.6_Adaptive_Complete_CORRECTED.ipynb (Cell 78)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cbazzaandClaude Opus 4.5 committed 2026-01-22 08:33:00 +01:00
1 parent d4e6598dab
commit 38950e0254
4 files changed
+31614 -2048

No files matched your search

+7 -5
View File
@@ -33,7 +33,7 @@ class EnhancedTrailingStopManager:
def __init__(self,
# Breakeven Settings
breakeven_trigger_pct: float = 0.30, # ← Früher! (war 0.50)
breakeven_buffer_pips: int = 5, # ← +5 Pips über BE
breakeven_buffer_pips: int = 300, # ← +$3 für Gold (300 × 0.01)
# Profit Locking (Multi-tier)
tier1_trigger: float = 0.50, # Bei 50% zu TP
@@ -47,7 +47,7 @@ class EnhancedTrailingStopManager:
# ATR-based Trailing
use_atr_trailing: bool = True,
atr_multiplier: float = 1.0, # Trail by 1 × ATR
atr_multiplier: float = 1.5, # Trail by 1.5 × ATR (mehr Spielraum)
# Time-based Protection
time_based_breakeven: bool = True,
@@ -57,7 +57,7 @@ class EnhancedTrailingStopManager:
session_trailing_multipliers: Optional[Dict[str, float]] = None,
# Technical
min_distance_points: int = 100):
min_distance_points: int = 500): # Min $5 für Gold (500 × 0.01)
"""
Args:
breakeven_trigger_pct: Bei wie viel % zu TP → Breakeven
@@ -452,7 +452,7 @@ from enhanced_trailing_stop import EnhancedTrailingStopManager, create_enhanced_
# Initialize Manager
enhanced_trailing = EnhancedTrailingStopManager(
breakeven_trigger_pct=0.30, # Früher BE (30% statt 50%)
breakeven_buffer_pips=5, # +5 Pips über BE
breakeven_buffer_pips=300, # +$3 über BE (300 points × 0.01 = $3 für Gold)
tier1_trigger=0.50, # Multi-tier Locking
tier1_lock_pct=0.25,
@@ -462,11 +462,13 @@ enhanced_trailing = EnhancedTrailingStopManager(
tier3_lock_pct=0.75,
use_atr_trailing=True, # ATR-based Trailing
atr_multiplier=1.0,
atr_multiplier=1.5, # Erhöht von 1.0 auf 1.5 für mehr Spielraum
time_based_breakeven=True, # Time-based BE
hours_to_breakeven=4.0,
min_distance_points=500, # Min $5 Abstand (500 × 0.01 = $5 für Gold)
session_trailing_multipliers={ # Session-aware
'asian': 1.0,
'ny': 1.5,