fix: Adjust trailing stop parameters for Gold (XAUUSD) trading
Deploy to Windows VPS / deploy (push) Has been cancelled
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:
1 parent
d4e6598dab
commit
38950e0254
4 files changed
+31614
-2048
No files matched your search
@@ -4480,5 +4480,32 @@
|
||||
},
|
||||
"position_control_active": true,
|
||||
"order_result": "OrderSendResult(retcode=10009, deal=626476900, order=687904350, volume=0.1, price=4859.07, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946471, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4859.06, stoplimit=0.0, sl=4850.599735563063, tp=4879.51066109234, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-01-21T22:07:45.539524",
|
||||
"version": "V1.6_Adaptive_Complete",
|
||||
"symbol": "XAUUSD",
|
||||
"entry_signal": 1,
|
||||
"confidence": 96.04,
|
||||
"adaptive_threshold": 70,
|
||||
"signal_quality": "excellent",
|
||||
"market_regime": "ranging",
|
||||
"regime_strength": 23.441527630046537,
|
||||
"risk_adjusted_strength": 150099.4901620502,
|
||||
"adaptive_interval": 15,
|
||||
"session": "asian",
|
||||
"relaxed_features": {
|
||||
"pullback_entry_disabled": true,
|
||||
"lower_confidence_threshold": true,
|
||||
"lower_min_strength": true,
|
||||
"fixed_tf_alignment": true
|
||||
},
|
||||
"adaptive_features": {
|
||||
"adaptive_rhythm": true,
|
||||
"session_aware": true,
|
||||
"volatility_based": true
|
||||
},
|
||||
"position_control_active": true,
|
||||
"order_result": "OrderSendResult(retcode=10009, deal=629556692, order=692066470, volume=0.1, price=4816.89, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946472, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4816.86, stoplimit=0.0, sl=4801.415068173482, tp=4854.772329566296, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user