Files

138 lines
5.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Trading Bots
Index of MQL5 Expert Advisors running on MT5 (demo account, art0 server via Docker/Wine on Ubuntu).
---
## EAs
### MultiSignal Confluence EA
- **File:** `MultiSignal_Confluence_EA.mq5`
- **Version:** v1.19
- **Strategy:** Multi-signal pivot reversal (harmonic, candlestick, pivot confluence)
- **Pairs:** 8 pairs · magic 777771–777780
- **Status:** Running
**Known issues:**
- Inverted ranging filter — fires only in trending conditions (wrong regime for reversal strategy)
- Drawdown uses whole-account equity (no isolation from Grid EA)
- Lot sizing uses ACCOUNT_BALANCE instead of equity
→ [[2026-04-19 Confluence EA - Opportunities Plan]]
---
### OrdersEA Smart Grid
- **File:** `OrdersEA_Smart_Grid.mq5`
- **Version:** v4.x / v5.0 edge cleanup
- **Strategy:** Mean-reversion grid within a defined range
- **Status:** Running (post-$60K loss fix)
**Known issues:**
- Edge cleanup v5.0 causing frequent small losses (spread asymmetry + session filter blocks cleanup in off-hours)
- Lot size tripled to 0.03 post-fix (risk escalation)
- Session filter must be enabled *after* moving edge cleanup block before the session gate
- Breakeven SL bug (dormant — feature off)
- Drawdown uses whole-account equity (contaminated by Confluence EA P&L)
→ [[2026-05-13 OrdersEA Multi-Agent Synthesis Analysis]]
---
## Cross-EA Issues
Both EAs share `ACCOUNT_EQUITY` as their drawdown baseline. Floating losses in one EA contaminate the other's drawdown/profit-target calculations. Fix: use `ACCOUNT_BALANCE + own_floating` isolated per EA.
---
## Infrastructure
- **Server:** art0 (Ubuntu), MT5 runs in Docker/Wine
- **Repo:** `git.fetcherpay.com` (Gitea)
- **Local path:** `~/mql-trading-bots`
- **Vault notes:** `Trading/MT5/`
---
## Preset Files & Configurations
All `.set` files live in `~/mql-trading-bots/`. Path on MT5: `MQL5/Presets/`.
---
### Confluence EA Presets
**Templates** (applied as base, then overridden per-pair):
| File | MinConfluence | MinStrength | MinATR% | MinADX | Notes |
|------|--------------|-------------|---------|--------|-------|
| `confluence-standard.set` | 2 | 0.75 | 0.4 | 20 | Balanced |
| `confluence-aggressive.set` | 1 | 0.50 | 0.3 | 16 | ⚠ single-source signals |
| `confluence-relaxed.set` | 1 | 0.60 | 0.3 | 18 | ⚠ single-source signals |
**Per-pair presets:**
| File | Magic | Lots | Risk% | SL | TP | WeekendClose |
|------|-------|------|-------|----|----|-------------|
| `confluence-eurusd.set` | 777772 | 0.01 | 1.5 | 100 | 200 | 14:00 |
| `confluence-gbpusd.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-usdjpy.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-gbpjpy.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-audusd.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-nzdusd.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-usdcad.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-usdchf.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-eurjpy.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-xauusd.set` | — | 0.01 | 1.5 | — | — | — |
| `confluence-xagusd.set` | — | 0.01 | 1.5 | — | — | — |
> ⚠ `InpMinConfluence=1` was set on XAUUSD and EURJPY on 2026-04-30 to force trades while the ATR filter bug was being diagnosed. Should be restored to 2 once the inverted ranging filter fix (P0) is deployed.
---
### Grid EA Presets
**Templates:**
| File | Entry | TP | Lots | MaxLevels | TRADE_RANGE | Best for |
|------|-------|----|------|-----------|-------------|---------|
| `grid-major.set` | 15 | 25 | 0.03 | 7 | 50 | EURUSD, USDJPY, AUDUSD |
| `grid-ranging.set` | 20 | 30 | 0.03 | 5 | 50 | EURCHF, AUDNZD, EURGBP |
| `grid-volatile.set` | 50 | 75 | 0.03 | 3 | 100 | GBPJPY, XAUUSD, GBPUSD |
**Per-pair presets:**
| File | Magic | Lots | Entry | TP | MaxLevels | RSI | ADXMax |
|------|-------|------|-------|----|-----------|-----|--------|
| `grid-eurusd.set` | 333011 | 0.03 | 14 | 22 | 8 | 20/80 | 40 |
| `grid-gbpusd.set` | — | 0.03 | — | — | — | — | — |
| `grid-usdjpy.set` | — | 0.03 | — | — | — | — | — |
| `grid-gbpjpy.set` | — | 0.03 | — | — | — | — | — |
| `grid-audusd.set` | — | 0.03 | — | — | — | — | — |
| `grid-nzdusd.set` | — | 0.03 | — | — | — | — | — |
| `grid-usdcad.set` | — | 0.03 | — | — | — | — | — |
| `grid-usdchf.set` | — | 0.03 | — | — | — | — | — |
| `grid-eurjpy.set` | — | 0.03 | — | — | — | — | — |
| `grid-eurchf.set` | — | 0.03 | — | — | — | — | — |
| `grid-eurgbp.set` | — | 0.03 | — | — | — | — | — |
| `grid-audnzd.set` | — | 0.03 | — | — | — | — | — |
| `grid-xauusd.set` | — | 0.03 | — | — | — | — | — |
| `grid-xagusd.set` | — | 0.03 | — | — | — | — | — |
> ⚠ All grid presets use `RSILower=20 / RSIUpper=80` and `ADXMax=40` — these were relaxed on 2026-04-27 alongside the lot size increase from 0.01 → 0.03. Target tightening: `RSI 30/70`, `ADXMax=25` (P1 fix).
---
## Priority Fix List
| Priority | Item | EA |
|----------|------|----|
| P0 | Move edge cleanup before session filter gate | Grid |
| P0 | Fix drawdown baseline (balance + own floating) | Both |
| P0 | Fix inverted ranging filter | Confluence |
| P1 | Enable session filter (after P0) | Grid |
| P1 | Restore InpMinConfluence=2 on XAUUSD/EURJPY | Confluence |
| P1 | Tighten RSI/ADX presets (30/70, ADXMax=25) | Grid |
| P2 | Review lot size (0.03 → consider 0.02) | Both |
| P2 | Commit 6+ weeks of working-tree changes | Both |