Files
XauBot/ea-research/xaubot-mq5/V3_TROUBLESHOOTING.md
T
GifariKemalandClaude Sonnet 4.5 0f9548e5fb feat: implement Professor AI recommendations v0.2.2 (5 critical fixes)
Exit Strategy v6.6 "Professor AI Validated" - All recommendations implemented

FIX #1: Remove Misleading Debug Code
- Removed manual trajectory calculation (line 1262-1269)
- Trajectory predictor was CORRECT, debug comparison was WRONG
- Cleaned up false "bug found" warnings

FIX #2: Peak Detection Logic (CHECK 0A.4)
- Detects approaching peak (vel > 0, accel < 0)
- Holds position if peak within 30s and 15%+ profit ahead
- Suppresses fuzzy exits during peak approach
- Target: Peak capture 38% -> 70%+
- Added peak_hold_active field to PositionGuard

FIX #3: London False Breakout Filter
- London session + ATR ratio < 1.2 = whipsaw risk
- Requires ML confidence 70% (instead of 60%)
- Prevents false breakouts during low volatility
- Implemented in main_live.py before signal logic

FIX #4: Enhanced Kelly Partial Exit Strategy
- Active for all profits >= tp_min * 0.5 (not just >$8)
- Recommends partial exits for better peak capture
- Full exit when Kelly suggests >70% close
- Note: Actual partial close needs MT5 volume parameter (TODO)

FIX #5: Unicode Encoding Fixes
- Added UTF-8 encoding to file logger
- Replaced all emoji (⚠️ -> [WARNING]) and arrows (-> -> ->)
- No more UnicodeEncodeError on Windows console
- Fixed in 11 src/*.py files

Expected Performance:
- Peak Capture: 38% -> 70%+ (+84%)
- Avg Profit: $2.00 -> $4.50 (+125%)
- Risk/Reward: 0.49 -> 1.2+ (+145%)
- Win Rate: Maintain 76%

Files Modified:
- src/smart_risk_manager.py (peak detection, Kelly, unicode)
- src/trajectory_predictor.py (unicode arrows)
- main_live.py (London filter, UTF-8 encoding)
- src/*.py (unicode cleanup: 11 files)
- VERSION (0.2.1 -> 0.2.2)
- CHANGELOG.md (comprehensive v0.2.2 docs)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-11 18:16:34 +07:00

97 lines
2.9 KiB
Markdown

# XAUBot Pro V3 - Troubleshooting Guide
## Common Errors & Solutions
### Error: "cannot load 'XAUBot_Pro_V3'"
**Cause:** File corrupted or compilation issue
**Solution:**
1. Re-compile EA in MetaEditor
2. Or use the .ex5 file that was already compiled
### Error: "DLL imports not allowed"
**Solution:**
1. EA Settings → Tab "Common" → ☑ Allow DLL imports
2. Tools → Options → Expert Advisors → ☑ Allow DLL imports
### Error: "AutoTrading disabled by client"
**Solution:**
1. Click "Algo Trading" button on toolbar (make it GREEN)
2. Or press Alt+E
### Error: "Invalid stops" or "Invalid SL/TP"
**Cause:** Broker restrictions on stop levels
**Solution:**
1. Check symbol specifications: Right-click chart → Specification
2. Look for "Stops level" - if >0, EA will auto-adjust
### Error: Panel tidak muncul
**Solution:**
1. Check input: ShowPanel = true
2. Check PanelOffsetX/Y (default 380, 10)
3. Try different PanelCorner (CORNER_LEFT_UPPER → CORNER_RIGHT_UPPER)
4. Restart EA (remove from chart, attach again)
### Error: "INIT_FAILED"
**Check Tab Experts for specific reason:**
- "Failed to create indicators" → Wrong timeframe or symbol
- "Failed to set symbol" → Symbol name incorrect (must be XAUUSD)
- Handle errors → Indicator loading issue
### Error: No trades after 24 hours
**THIS IS NORMAL!**
- EA rejects 90%+ of signals
- Average 8-20 trades per MONTH (not per day!)
- Check log file for filter rejections
- Verify quality score is being calculated (check panel)
## Diagnostic Commands
### Check if file exists:
```bash
ls -lh "C:/Users/Administrator/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Experts/XAUBot_Pro_V3.ex5"
```
### Check log file exists:
```bash
ls -lh "C:/Users/Administrator/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Files/XAUBot_V3_*.log"
```
### Read recent log entries:
```bash
tail -n 50 "C:/Users/Administrator/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Files/XAUBot_V3_2026-02-10.log"
```
## Files Location
### EA Location:
```
C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\
010E047102812FC0C18890992854220E\MQL5\Experts\
├── XAUBot_Pro_V3.ex5 (67 KB) - Compiled EA
└── XAUBot_Pro_V3.mq5 (44 KB) - Source code
```
### Log Location:
```
C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\
010E047102812FC0C18890992854220E\MQL5\Files\
└── XAUBot_V3_YYYY-MM-DD.log - Daily log file
```
## Quick Test
1. Attach EA to XAUUSD M15 chart
2. Wait 1 minute
3. Check for panel display
4. Check tab "Experts" for initialization message
5. Check Files folder for log file creation
If all 3 checks pass → EA is working! ✅
## Contact Info
If EA still not working after all troubleshooting:
1. Screenshot tab "Experts" (full error message)
2. Screenshot chart (show emoticon status)
3. Share log file content (first 50 lines)