Compare commits
8 Commits
7c54dfffbc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ffa3fd7799 | |||
| fe4fe656be | |||
| 87d2ea28bc | |||
| 1e3bf18662 | |||
| da3641b198 | |||
| 49ad6a8a32 | |||
| 5999a5ca1e | |||
| c1bb3231aa |
1
.gitignore
vendored
Normal file → Executable file
1
.gitignore
vendored
Normal file → Executable file
@@ -6,3 +6,4 @@
|
|||||||
*.tmp
|
*.tmp
|
||||||
*~
|
*~
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/.idea/
|
||||||
|
|||||||
0
.idea/.gitignore
generated
vendored
Normal file → Executable file
0
.idea/.gitignore
generated
vendored
Normal file → Executable file
0
.idea/conversation-history.iml
generated
Normal file → Executable file
0
.idea/conversation-history.iml
generated
Normal file → Executable file
0
.idea/misc.xml
generated
Normal file → Executable file
0
.idea/misc.xml
generated
Normal file → Executable file
0
.idea/modules.xml
generated
Normal file → Executable file
0
.idea/modules.xml
generated
Normal file → Executable file
0
.idea/vcs.xml
generated
Normal file → Executable file
0
.idea/vcs.xml
generated
Normal file → Executable file
0
2026-03-21-mql-trading-bots.md
Normal file → Executable file
0
2026-03-21-mql-trading-bots.md
Normal file → Executable file
0
2026-03-21-mql-trading-report-analysis.md
Normal file → Executable file
0
2026-03-21-mql-trading-report-analysis.md
Normal file → Executable file
16
2026-03-30-dns-whitelist.md
Executable file
16
2026-03-30-dns-whitelist.md
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
# DNS Whitelist for Firewall
|
||||||
|
|
||||||
|
**Date:** 2026-03-30
|
||||||
|
|
||||||
|
## IP Addresses to whitelist
|
||||||
|
|
||||||
|
| Domain | IP Address |
|
||||||
|
|--------|-------------|
|
||||||
|
| chat.fetcherpay.com | 23.120.207.35 |
|
||||||
|
| git.fetcherpay.com | 23.120.207.35 |
|
||||||
|
|
||||||
|
Both domains resolve to the same IP: **23.120.207.35**
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- Internal Gitea also available at: `10.152.183.192:3000` (Ubuntu server only, not for firewall whitelist)
|
||||||
138
2026-03-30-weekend-gap-short-signal-fix.md
Executable file
138
2026-03-30-weekend-gap-short-signal-fix.md
Executable file
@@ -0,0 +1,138 @@
|
|||||||
|
# Session: 2026-03-30 - Weekend Gap Fix & Short Signal Fix
|
||||||
|
|
||||||
|
## Participants
|
||||||
|
- **User**: Garfield (garfield@fetcherpay.com)
|
||||||
|
- **AI**: OpenCode CLI
|
||||||
|
|
||||||
|
## Session Overview
|
||||||
|
Fixed two known issues from previous session:
|
||||||
|
1. Weekend gap risk on Grid EA
|
||||||
|
2. Short signal detection on Confluence EA
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Weekend Gap Risk Fix (Grid EA v3.1)
|
||||||
|
|
||||||
|
### Problem
|
||||||
|
Positions held over weekend can gap 100-500+ pips on Sunday/Monday open, causing massive losses.
|
||||||
|
|
||||||
|
### Solution Implemented
|
||||||
|
Added Friday position close feature:
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
//--- Weekend Protection
|
||||||
|
input bool InpCloseBeforeWeekend = true; // Enable Friday close
|
||||||
|
input int InpWeekendCloseHour = 17; // Close at 5 PM broker time
|
||||||
|
input bool InpCancelPendingBeforeWeekend = true; // Cancel pending orders too
|
||||||
|
```
|
||||||
|
|
||||||
|
New `CheckWeekendProtection()` function closes all positions Friday before weekend.
|
||||||
|
|
||||||
|
### Files Modified
|
||||||
|
- `OrdersEA_Smart_Grid.mq5` - Added weekend protection (v3.1)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Short Signal Detection Fix (Confluence EA v1.14)
|
||||||
|
|
||||||
|
### Problem
|
||||||
|
EA was generating almost zero SHORT (SELL) trades. Historical data showed 0 shorts.
|
||||||
|
|
||||||
|
### Root Cause
|
||||||
|
Restrictive `belowPivot = close < p` check was blocking all short signals when price was above pivot point.
|
||||||
|
|
||||||
|
### Fix Applied
|
||||||
|
Removed asymmetric restriction - SELL logic now mirrors BUY logic:
|
||||||
|
|
||||||
|
**Before:**
|
||||||
|
```cpp
|
||||||
|
if(nearResistance || (rejectedFromResistance && belowPivot)) // ❌ Too restrictive
|
||||||
|
```
|
||||||
|
|
||||||
|
**After:**
|
||||||
|
```cpp
|
||||||
|
if(nearResistance || rejectedFromResistance) // ✅ Mirrors BUY
|
||||||
|
```
|
||||||
|
|
||||||
|
Also relaxed harmonic pattern tolerances from `0.5-0.8` to `0.3-1.3`.
|
||||||
|
|
||||||
|
### Files Modified
|
||||||
|
- `MultiSignal_Confluence_EA.mq5` - Fixed short signal detection (v1.14)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Compilation Errors Fixed
|
||||||
|
|
||||||
|
### Error 1: Missing #include
|
||||||
|
```
|
||||||
|
#include <Trade\Trade.mqh>
|
||||||
|
#include <Trade\PositionInfo.mqh>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Error 2: Undeclared identifiers
|
||||||
|
- `abovePivot` / `belowPivot` - removed from debug print
|
||||||
|
- `gridPlaced` - moved to global scope
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Verification
|
||||||
|
|
||||||
|
### Short Signal Verification Script
|
||||||
|
Created `verify-short-signals.py` to validate short signal logic.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 verify-short-signals.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Results: All checks passed ✅
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. File Deployment
|
||||||
|
|
||||||
|
### Files Copied to MT5
|
||||||
|
```
|
||||||
|
~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Experts/
|
||||||
|
├── MultiSignal_Confluence_EA.mq5 (v1.14)
|
||||||
|
└── OrdersEA_Smart_Grid.mq5 (v3.1)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Next Step
|
||||||
|
- Recompile in MT5 MetaEditor (F7)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Git Commits
|
||||||
|
|
||||||
|
| Commit | Description |
|
||||||
|
|--------|-------------|
|
||||||
|
| `d071b3c` | Fix weekend gap risk and short signal detection |
|
||||||
|
| `c53dff6` | (amend) Restore missing #include statements |
|
||||||
|
| `028a41b` | Fix: remove abovePivot/belowPivot debug references |
|
||||||
|
| `24f3d09` | Fix: make gridPlaced global for CheckWeekendProtection |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 7. Settings Files
|
||||||
|
|
||||||
|
Existing `.set` files work without modification - new parameters use sensible defaults:
|
||||||
|
- `InpCloseBeforeWeekend = true`
|
||||||
|
- `InpWeekendCloseHour = 17`
|
||||||
|
- `InpCancelPendingBeforeWeekend = true`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 8. Next Steps
|
||||||
|
|
||||||
|
1. **Test in MT5** - Load both EAs on demo account
|
||||||
|
2. **Monitor** - Watch for SELL signals on Confluence EA
|
||||||
|
3. **Verify weekend close** - Check Grid EA closes Friday at 5 PM
|
||||||
|
4. **Push to Gitea** - Run `git push`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Session Status: ✅ COMPLETE
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Session recorded: 2026-03-30*
|
||||||
55
2026-03-31-confluence-settings-update.md
Executable file
55
2026-03-31-confluence-settings-update.md
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
# 2026-03-31 - Confluence EA Settings Update
|
||||||
|
|
||||||
|
## Date: March 31, 2026
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
Applied updated Confluence EA settings to all 10 MT5 charts. Verified settings via logs.
|
||||||
|
|
||||||
|
## Actions
|
||||||
|
|
||||||
|
### 1. Checked Local .set Files
|
||||||
|
Reviewed all confluence-*.set files in `/home/garfield/mql-trading-bots/`:
|
||||||
|
- standard, aggressive, relaxed (base profiles)
|
||||||
|
- eurusd, gbpjpy, gbpusd, audusd, usdjpy, eurjpy, usdcad, usdchf, nzdusd, xauusd (pair-specific)
|
||||||
|
|
||||||
|
### 2. Found MT5 Wine Presets
|
||||||
|
Located in: `~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Presets/`
|
||||||
|
|
||||||
|
### 3. Applied Settings to Running EAs
|
||||||
|
User applied sets one by one, verified via log output:
|
||||||
|
|
||||||
|
| Pair | Magic | Min Strength | Status |
|
||||||
|
|------|-------|--------------|--------|
|
||||||
|
| EURUSD | 777772 | 0.70 | ✓ |
|
||||||
|
| GBPJPY | 777780 | 0.75 | ✓ (fixed after reapply) |
|
||||||
|
| AUDUSD | 777777 | 0.71 | ✓ |
|
||||||
|
| GBPUSD | 777773 | 0.80 | ✓ |
|
||||||
|
| USDJPY | 777771 | 0.70 | ✓ |
|
||||||
|
| EURJPY | 777775 | 0.72 | ✓ |
|
||||||
|
| USDCAD | 777776 | 0.73 | ✓ |
|
||||||
|
| USDCHF | 777779 | 0.75 | ✓ |
|
||||||
|
| NZDUSD | 777778 | 0.72 | ✓ |
|
||||||
|
| XAUUSD | 777774 | 0.75 | ✓ |
|
||||||
|
|
||||||
|
### 4. Risk Calculation Discovery
|
||||||
|
**Issue Found:** Both EAs (Confluence + Smart Grid) share the same daily drawdown limit.
|
||||||
|
|
||||||
|
**Code Analysis:**
|
||||||
|
- `MultiSignal_Confluence_EA.mq5` lines 648-689: Daily drawdown uses `AccountInfoDouble(ACCOUNT_EQUITY)`
|
||||||
|
- Both EAs check same account equity, so they share the 3% daily limit
|
||||||
|
- Position counting IS correct (filters by symbol + magic number)
|
||||||
|
|
||||||
|
**Implication:** If Smart Grid EA loses 2%, Confluence EA only has 1% remaining.
|
||||||
|
|
||||||
|
## Decisions Pending
|
||||||
|
User is thinking about how to handle shared daily drawdown risk:
|
||||||
|
1. Lower Grid EA risk
|
||||||
|
2. Increase total daily drawdown (e.g., 5%)
|
||||||
|
3. Separate tracking per EA
|
||||||
|
|
||||||
|
## Files Modified
|
||||||
|
- All confluence-*.set files synced to MT5 Presets directory
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
- Wait for user decision on risk management approach
|
||||||
|
- Potentially adjust Grid EA settings
|
||||||
75
2026-03-31-devops-infrastructure.md
Normal file
75
2026-03-31-devops-infrastructure.md
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# Session: 2026-03-31 - DevOps Infrastructure Update
|
||||||
|
|
||||||
|
## Participants
|
||||||
|
- **User**: Garfield (garfield@fetcherpay.com)
|
||||||
|
- **AI**: opencode
|
||||||
|
|
||||||
|
## Session Overview
|
||||||
|
Updated firewall rules and local DNS to reflect new server IP. Fixed AT&T router to allow external access to fetcherpay.com.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Context
|
||||||
|
|
||||||
|
User wanted to update infrastructure documentation with new server IP `104.190.60.129` and ensure external access works.
|
||||||
|
|
||||||
|
## 2. Work Done
|
||||||
|
|
||||||
|
### Updated INFRASTRUCTURE.md
|
||||||
|
- Changed DNS whitelist entries from `23.120.207.35` to `104.190.60.129`
|
||||||
|
- Added Public Access section with ports
|
||||||
|
- Updated Kubernetes API Server IP
|
||||||
|
- Added Public SSH note
|
||||||
|
|
||||||
|
### Files Modified
|
||||||
|
- `/home/garfield/devops/INFRASTRUCTURE.md`
|
||||||
|
|
||||||
|
### Pushed to Git
|
||||||
|
- Repo: `https://git.fetcherpay.com/garfield/devops-convo-memories`
|
||||||
|
- Commit: `cef4416` - "Update IP addresses to 104.190.60.129 and add public access notes"
|
||||||
|
|
||||||
|
### DNS Verification
|
||||||
|
```bash
|
||||||
|
nslookup fetcherpay.com
|
||||||
|
# Resolves to: 104.190.60.129
|
||||||
|
|
||||||
|
dig @8.8.8.8 fetcherpay.com
|
||||||
|
# Resolves to: 104.190.60.129 (TTL: 600)
|
||||||
|
```
|
||||||
|
|
||||||
|
### AT&T Router Update
|
||||||
|
- User updated AT&T gateway router to allow incoming traffic
|
||||||
|
- Port 80/443 now accessible from external networks
|
||||||
|
- fetcherpay.com now accessible publicly
|
||||||
|
|
||||||
|
## 3. Current Infrastructure
|
||||||
|
|
||||||
|
| Service | IP/Endpoint |
|
||||||
|
|---------|-------------|
|
||||||
|
| Server Public IP | 104.190.60.129 |
|
||||||
|
| Gateway | 104.190.60.134 |
|
||||||
|
| Traefik | 104.190.60.129:80, :443 |
|
||||||
|
| Gitea | git.fetcherpay.com |
|
||||||
|
| fetcherpay.com | 104.190.60.129 |
|
||||||
|
|
||||||
|
## 4. Server Details
|
||||||
|
|
||||||
|
- **Hostname**: art0
|
||||||
|
- **OS**: Ubuntu
|
||||||
|
- **Public IP**: 104.190.60.129
|
||||||
|
- **ISP**: AT&T
|
||||||
|
|
||||||
|
## 5. Repositories
|
||||||
|
|
||||||
|
| Repo | URL |
|
||||||
|
|------|-----|
|
||||||
|
| devops-convo-memories | https://git.fetcherpay.com/garfield/devops-convo-memories |
|
||||||
|
| mql-trading-bots | https://git.fetcherpay.com/garfield/mql-trading-bots |
|
||||||
|
| conversation-history | https://git.fetcherpay.com/garfield/conversation-history |
|
||||||
|
|
||||||
|
## 6. TODO
|
||||||
|
|
||||||
|
- [ ] Add domains to `/etc/hosts` (requires sudo)
|
||||||
|
- [ ] Configure firewall rules if needed
|
||||||
|
|
||||||
|
## Session Status: ✅ COMPLETE
|
||||||
91
2026-04-01-mt5-analysis-and-fixes.md
Normal file
91
2026-04-01-mt5-analysis-and-fixes.md
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
# Session: 2026-04-01 - MT5 Trading Analysis & EA Fixes
|
||||||
|
|
||||||
|
## Participants
|
||||||
|
- **User**: Garfield (garfield@fetcherpay.com)
|
||||||
|
- **AI**: opencode
|
||||||
|
|
||||||
|
## Session Overview
|
||||||
|
Analyzed MT5 trading logs, identified critical bugs and misconfigurations, and applied fixes to both the Confluence EA and the Grid EA.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Trading Activity Summary
|
||||||
|
|
||||||
|
- **Account**: 104125640 — MetaQuotes-Demo, Hedging
|
||||||
|
- **March P&L**: ~+$541,735.64 (1,199 deals) — heavy demo activity
|
||||||
|
- **Apr 1 Activity**: 106 deals (much quieter than Mar 31)
|
||||||
|
- **Current Open Positions**: 45 positions
|
||||||
|
- **Primary EAs**: `MultiSignal_Confluence_EA v1.18` + `OrdersEA_Smart_Grid v3.2`
|
||||||
|
|
||||||
|
### Confluence EA Status
|
||||||
|
- **Effectively dormant** over the last 2 days.
|
||||||
|
- Blocked by: low signal strength (23x) and ATR/volatility filters (7x).
|
||||||
|
- Filters are working as designed — avoiding choppy markets.
|
||||||
|
|
||||||
|
### Grid EA Status
|
||||||
|
- Active on NZDUSD, GBPJPY, USDCAD, GBPUSD.
|
||||||
|
- Identified a critical **order clustering bug** causing multiple stop orders to stack within 1 pip.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Critical Fixes Applied
|
||||||
|
|
||||||
|
### A. Grid Clustering Bug — FIXED & RECOMPILED
|
||||||
|
**File**: `~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Experts/OrdersEA_Smart_Grid.mq5`
|
||||||
|
|
||||||
|
**Problem**: When a calculated grid level was too close to current price, the EA clamped it to the minimum allowed distance. This caused multiple buy/sell stops to pile up at the same price.
|
||||||
|
|
||||||
|
**Fix**: Changed `PlaceBuyStop()` and `PlaceSellStop()` to **skip (`return false`)** levels that are too close, rather than clamping them.
|
||||||
|
|
||||||
|
**Status**: ✅ Recompiled successfully (`.ex5` updated).
|
||||||
|
|
||||||
|
### B. Desktop `.set` Files — FIXED
|
||||||
|
**Files**: `~/Desktop/confluence*.set`
|
||||||
|
|
||||||
|
**Problem**: These files used old parameter names from a previous EA version (`InpMinConfluenceStrength`, `InpMaxSignalAge`, `InpUseATRFilter`, `InpAvoidWeekends`, etc.). MT5 silently ignored them, so charts were running on defaults.
|
||||||
|
|
||||||
|
**Fix**: Rewrote all Desktop confluence `.set` files with correct `v1.18` parameter names, then synced them with the optimized `MQL5/Presets/` versions.
|
||||||
|
|
||||||
|
### C. Unique Magic Numbers — ENSURED
|
||||||
|
- **Confluence presets**: Each pair now has a unique magic number (e.g., `777772` for EURUSD, `777780` for GBPJPY). `confluence-audusd.set` was kept at `777777` to avoid orphaning live trades.
|
||||||
|
- **Grid presets**: Already unique (`333001`–`333014`). Desktop grid `.set` files were synced to match.
|
||||||
|
|
||||||
|
### D. New Feature: `InpStopAfterProfit` — ADDED
|
||||||
|
**File**: `OrdersEA_Smart_Grid.mq5`
|
||||||
|
|
||||||
|
**What it does**: When enabled (`InpStopAfterProfit=true`), the Grid EA stops placing new grids for the rest of the day after a **profitable cycle** (all positions close with equity higher than the cycle start).
|
||||||
|
|
||||||
|
**Reset**: Automatically clears at broker time hour `00:00`.
|
||||||
|
|
||||||
|
**Parameter added** to all grid `.set` files (default `false`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Files Modified
|
||||||
|
|
||||||
|
### Source Code
|
||||||
|
- `~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Experts/OrdersEA_Smart_Grid.mq5`
|
||||||
|
- `~/mt5-docker/source-files/OrdersEA_Smart_Grid.mq5`
|
||||||
|
|
||||||
|
### Compiled Binary
|
||||||
|
- `~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Experts/OrdersEA_Smart_Grid.ex5`
|
||||||
|
|
||||||
|
### Presets (MQL5 & Desktop)
|
||||||
|
- All `confluence-*.set` files (parameter names + magic numbers)
|
||||||
|
- All `grid-*.set` files (magic numbers + `InpStopAfterProfit`)
|
||||||
|
|
||||||
|
### Infrastructure
|
||||||
|
- `~/devops/INFRASTRUCTURE.md` — Added `doc.fetcherpay.com` and `www.fetcherpay.com` to DNS whitelist
|
||||||
|
- `~/fetcherpay-docs/k8s/docs-deployment.yaml` — Added `doc.fetcherpay.com` to ingress
|
||||||
|
- `~/fetcherpay-k8s/fetcherpay-complete.yaml` — Fixed truncated ingress section
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Action Items for User
|
||||||
|
|
||||||
|
1. **Reload `.set` files** on all MT5 charts (Properties → Load → select preset).
|
||||||
|
2. **Remove and re-attach** `OrdersEA_Smart_Grid` to pick up the recompiled binary with fixes.
|
||||||
|
3. **Restart MT5** after reloading to ensure clean state.
|
||||||
|
4. Optionally enable `InpStopAfterProfit=true` on grid charts if you want one profitable cycle per day.
|
||||||
|
|
||||||
|
## Session Status: ✅ COMPLETE
|
||||||
93
2026-04-03-confluence-ea-analysis.md
Normal file
93
2026-04-03-confluence-ea-analysis.md
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
# Session: 2026-04-03 - Confluence EA Crisis Analysis & Recovery Plan
|
||||||
|
|
||||||
|
## Participants
|
||||||
|
- **User**: Garfield (garfield@fetcherpay.com)
|
||||||
|
- **AI**: Jacob (Algorithmic Trading Partner)
|
||||||
|
|
||||||
|
## Session Overview
|
||||||
|
Critical analysis of MultiSignal Confluence EA v1.14 trading halt due to catastrophic account losses. Identified OrdersEA Smart Grid as primary cause of ~$60,000 loss. Created comprehensive diagnostic and recovery plan.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Session Summary
|
||||||
|
|
||||||
|
**Objective:** Diagnose why MultiSignal Confluence EA v1.14 stopped trading for 2 weeks
|
||||||
|
|
||||||
|
**Key Findings:**
|
||||||
|
- **Root Cause:** Account equity at 47% (53% drawdown) triggering daily drawdown protection
|
||||||
|
- **Major Loss Source:** OrdersEA Smart Grid v3.0/v3.1 caused ~$60,000 loss through high-frequency trading (253 orders on GBPUSD in 24hrs)
|
||||||
|
- **Confluence EA Status:** Working correctly but had one bad trade due to ranging market fake signal
|
||||||
|
- **Current State:** EA correctly blocked from trading due to risk management protocols
|
||||||
|
|
||||||
|
## Account Timeline
|
||||||
|
- **March 22, 2026:** $106,935.12 balance (+6.94% profit, 71.79% win rate)
|
||||||
|
- **March 24-25:** OrdersEA Smart Grid added alongside Confluence EA
|
||||||
|
- **April 2, 2026:** Account equity dropped to 47% (~$60,000 loss)
|
||||||
|
|
||||||
|
## Technical Analysis
|
||||||
|
|
||||||
|
### Confluence EA v1.14 Features:
|
||||||
|
- ATR volatility filter
|
||||||
|
- ADX trend filter
|
||||||
|
- Dynamic risk management (1-5% per trade)
|
||||||
|
- 3% daily drawdown limit
|
||||||
|
- Fixed short signal detection bug (removed restrictive belowPivot check)
|
||||||
|
|
||||||
|
### Issue: Ranging Market Fake Signal
|
||||||
|
- EA got caught in whipsaw during ranging market conditions
|
||||||
|
- This is normal market behavior, not EA malfunction
|
||||||
|
- Risk management correctly prevented further losses
|
||||||
|
|
||||||
|
## Current Status
|
||||||
|
- **Daily drawdown protection active** - blocking all new trades
|
||||||
|
- **Equity at 47%** - below typical minimum thresholds
|
||||||
|
- **EA functioning correctly** - protective behavior, not malfunction
|
||||||
|
- **Monitoring plan:** Watch for resume next week when daily limits reset
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
|
||||||
|
### Week of April 7-11, 2026:
|
||||||
|
1. **Monday-Tuesday:** Monitor for trading resume
|
||||||
|
2. **Wednesday:** If no trades, begin diagnostic process
|
||||||
|
3. **Use diagnostic checklist** for systematic troubleshooting
|
||||||
|
|
||||||
|
### Potential Issues to Check:
|
||||||
|
1. **Equity protection too strict** (may need >50% to trade)
|
||||||
|
2. **Daily drawdown memory persistence** (may need EA restart)
|
||||||
|
3. **Filters too conservative** (ATR/ADX thresholds too high)
|
||||||
|
4. **Market conditions unsuitable** (continued ranging)
|
||||||
|
|
||||||
|
## Risk Management Assessment
|
||||||
|
- **Daily drawdown protection: WORKING CORRECTLY**
|
||||||
|
- **Equity protection: WORKING CORRECTLY**
|
||||||
|
- **Signal quality filters: WORKING CORRECTLY**
|
||||||
|
- **Position sizing: APPROPRIATE**
|
||||||
|
|
||||||
|
## Recommendations
|
||||||
|
|
||||||
|
### Short-term:
|
||||||
|
- **Do NOT modify EA settings yet** - let protection systems work
|
||||||
|
- **Monitor market conditions** - avoid forcing trades in ranging markets
|
||||||
|
- **Wait for equity recovery** or account funding to restore trading capacity
|
||||||
|
|
||||||
|
### Long-term Enhancements:
|
||||||
|
- **Add breakout confirmation** - require 2-3 candles in direction
|
||||||
|
- **Strengthen ranging market detection** - avoid trades when ADX < 25
|
||||||
|
- **Time-of-day filters** - avoid low-liquidity periods
|
||||||
|
- **Volume confirmation** - require above-average volume for breakouts
|
||||||
|
|
||||||
|
## Files Generated:
|
||||||
|
1. `confluence_ea_diagnostic.md` - Systematic troubleshooting guide
|
||||||
|
2. `transfer_diagnostic.sh` - Script to transfer diagnostic to server
|
||||||
|
3. `2026-04-03-confluence-ea-analysis.md` - This session summary
|
||||||
|
|
||||||
|
## Infrastructure
|
||||||
|
- **Server:** 23.120.207.35 (Ubuntu)
|
||||||
|
- **MT5 Account:** 104125640 (MetaQuotes-Demo)
|
||||||
|
- **Docker:** gmag11/metatrader5_vnc:1.1
|
||||||
|
- **VNC Access:** Port 3000
|
||||||
|
- **Git Repository:** https://git.fetcherpay.com/garfield/conversation-history.git
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Session Conclusion:** The Confluence EA is working as designed. The lack of trading is due to proper risk management protecting the account after the Grid EA caused massive losses. Monitor next week for natural resume of trading activity.
|
||||||
100
2026-04-05-grid-shutdown-analysis.md
Normal file
100
2026-04-05-grid-shutdown-analysis.md
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# Session: 2026-04-05 - Trading Log Analysis & Grid EA Shutdown Decision
|
||||||
|
|
||||||
|
## Participants
|
||||||
|
- **User**: Garfield (garfield@fetcherpay.com)
|
||||||
|
- **AI**: opencode
|
||||||
|
|
||||||
|
## Session Overview
|
||||||
|
Analyzed MT5 trading logs from March-April 2026 to understand why Confluence EA stopped trading. Discovered shared drawdown issue between both EAs.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Log Analysis Findings
|
||||||
|
|
||||||
|
### Grid EA Issues (OrdersEA_Smart_Grid)
|
||||||
|
- Placed **dozens of grid orders per hour** on multiple pairs
|
||||||
|
- March 31: Grid after grid placed and filled (6-10 buy + 6-10 sell stops per cycle)
|
||||||
|
- When market moved against position, all levels filled → cascading losses
|
||||||
|
- **Root cause of ~$60K loss**: Earlier in March (Mar 24-30) with clustering bug
|
||||||
|
|
||||||
|
### Confluence EA Status
|
||||||
|
- Continuously **blocked by low signal strength** (0.00 < 0.70-0.85)
|
||||||
|
- **Volatility filters working** (ATR too low: 0.13-0.20% < 0.30%)
|
||||||
|
- Filters working as designed - market was choppy/ranging
|
||||||
|
- No drawdown protection triggered in recent logs
|
||||||
|
|
||||||
|
### Grid Clustering Fix (Already Applied April 1)
|
||||||
|
- Logs show "too close to price. Skipping" (fix working)
|
||||||
|
- Pre-April 1 logs showed old "Adjusting" behavior
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Equity Timeline from Logs
|
||||||
|
|
||||||
|
| Date | Time | Equity | Event |
|
||||||
|
|------|------|--------|-------|
|
||||||
|
| Mar 31 | 08:34 | $107,036 | Daily reset |
|
||||||
|
| Apr 1 | 15:11 | $106,952 | Declining |
|
||||||
|
| Apr 1 | 17:00 | $106,896 | End of day |
|
||||||
|
| Apr 2 | 17:00 | $107,084 | New day reset |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Critical Discovery: Shared Drawdown
|
||||||
|
|
||||||
|
**Issue**: Both EAs share the same 3% daily drawdown limit.
|
||||||
|
|
||||||
|
From `2026-03-31-confluence-settings-update.md`:
|
||||||
|
- Both EAs check `AccountInfoDouble(ACCOUNT_EQUITY)`
|
||||||
|
- Position counting IS correct (filters by symbol + magic)
|
||||||
|
- **Implication**: If Grid EA loses 2%, Confluence only has 1% remaining
|
||||||
|
|
||||||
|
**Code Location**:
|
||||||
|
- `MultiSignal_Confluence_EA.mq5` lines 648-689
|
||||||
|
- `OrdersEA_Smart_Grid.mq5` - similar daily drawdown logic
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Decision: Shutdown Grid EA
|
||||||
|
|
||||||
|
**User Action**: Shut down Grid EA for the week to test if it's hogging equity.
|
||||||
|
|
||||||
|
**Reasoning**:
|
||||||
|
- Grid EA consuming daily drawdown budget
|
||||||
|
- Confluence EA blocked despite good signal filters
|
||||||
|
- Separating the two might allow Confluence to trade
|
||||||
|
|
||||||
|
**Steps**:
|
||||||
|
1. Disable/remove Grid EA from all charts
|
||||||
|
2. Restart Confluence EA to clear daily equity tracking
|
||||||
|
3. Monitor for Confluence trades over next few days
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. What to Watch After Grid Shutdown
|
||||||
|
|
||||||
|
1. **Confluence should have full 3% daily budget** - more room to trade
|
||||||
|
2. **If still no trades**:
|
||||||
|
- Still-ranging market (low ATR/ADX)
|
||||||
|
- Signals below minimum strength (0.70-0.90)
|
||||||
|
- Need MT5 restart to reset drawdown tracking
|
||||||
|
3. **If trades resume** - Grid was hogging equity
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Current Status (April 5, 2026)
|
||||||
|
|
||||||
|
- **Grid EA**: Being disabled this week
|
||||||
|
- **Confluence EA**: Running, awaiting trading opportunity
|
||||||
|
- **Market conditions**: Low volatility/ranging (ATR filters blocking)
|
||||||
|
- **Account**: ~$47% equity (still recovering)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Session Status: IN PROGRESS
|
||||||
|
|
||||||
|
Monitoring Confluence EA behavior without Grid EA competition.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Session recorded: 2026-04-05*
|
||||||
87
INFRASTRUCTURE.md
Executable file
87
INFRASTRUCTURE.md
Executable file
@@ -0,0 +1,87 @@
|
|||||||
|
# Infrastructure Overview
|
||||||
|
|
||||||
|
**Date:** 2026-03-30
|
||||||
|
|
||||||
|
## Server
|
||||||
|
|
||||||
|
- **Public IP:** 23.120.207.35
|
||||||
|
- **Hostname:** (check with `hostname`)
|
||||||
|
- **Operating System:** Ubuntu (likely 22.04 LTS)
|
||||||
|
|
||||||
|
## Network
|
||||||
|
|
||||||
|
| Network | Subnet |
|
||||||
|
|---------|--------|
|
||||||
|
| Primary | 23.120.207.35/22 |
|
||||||
|
| Docker bridge | 172.17.0.1/16 |
|
||||||
|
| Docker secondary | 172.18.0.1/16 |
|
||||||
|
| Docker tertiary | 172.19.0.1/16 |
|
||||||
|
| Docker quaternary | 172.20.0.1/16 |
|
||||||
|
| MicroK8s | 10.1.58.192/32 |
|
||||||
|
|
||||||
|
## DNS Whitelist (Firewall)
|
||||||
|
|
||||||
|
| Domain | IP Address |
|
||||||
|
|--------|-------------|
|
||||||
|
| chat.fetcherpay.com | 23.120.207.35 |
|
||||||
|
| git.fetcherpay.com | 23.120.207.35 |
|
||||||
|
| (internal Gitea) | 10.152.183.192:3000 |
|
||||||
|
|
||||||
|
## Kubernetes (MicroK8s)
|
||||||
|
|
||||||
|
- **Cluster:** microk8s-cluster
|
||||||
|
- **API Server:** https://23.120.207.35:16443
|
||||||
|
- **Config:** ~/.kube/config
|
||||||
|
- **User:** admin
|
||||||
|
|
||||||
|
## Traefik (Reverse Proxy)
|
||||||
|
|
||||||
|
- **Config:** ~/traefik.yml
|
||||||
|
- **HTTP:** :80 (redirects to HTTPS)
|
||||||
|
- **HTTPS:** :443
|
||||||
|
- **Dashboard:** Enabled (insecure)
|
||||||
|
- **Let's Encrypt:** admin@fetcherpay.com
|
||||||
|
|
||||||
|
## Docker Containers (Running)
|
||||||
|
|
||||||
|
| Container | Image | Ports |
|
||||||
|
|-----------|-------|-------|
|
||||||
|
| mt5 | gmag11/metatrader5_vnc:1.1 | 3000, 8001, 3001 |
|
||||||
|
| temporal-ui | temporalio/ui:latest | 8233->8080 |
|
||||||
|
| temporal | temporalio/auto-setup:latest | 6933-6935, 6939, 7233-7235, 7239 |
|
||||||
|
| adminer | adminer:latest | 8080 |
|
||||||
|
| fetcherpay-api | node:18-alpine | - |
|
||||||
|
| grafana | grafana/grafana:latest | 3000 |
|
||||||
|
| prometheus | prom/prometheus:latest | 9090 |
|
||||||
|
| mysql | mysql:8.0 | 3306, 33060 |
|
||||||
|
|
||||||
|
## Gitea Runner
|
||||||
|
|
||||||
|
- **Path:** ~/gitea-runner/
|
||||||
|
- **Runner file:** .runner
|
||||||
|
- **Log:** runner.log
|
||||||
|
|
||||||
|
## Project Repositories
|
||||||
|
|
||||||
|
| Project | Path |
|
||||||
|
|---------|------|
|
||||||
|
| MQL Trading Bots | ~/mql-trading-bots/ |
|
||||||
|
| MT5 Docker | ~/mt5-docker/ |
|
||||||
|
| MT4 Docker | ~/mt4-docker/ |
|
||||||
|
| Fetcherpay Docs | ~/fetcherpay-docs/ |
|
||||||
|
| Fetcherpay K8s | ~/fetcherpay-k8s/ |
|
||||||
|
| Fetcherpay Marketing | ~/fetcherpay-marketing/ |
|
||||||
|
| Conversation History | ~/conversation-history/ |
|
||||||
|
|
||||||
|
## K8s Deployments (from fetcherpay-k8s/)
|
||||||
|
|
||||||
|
- fetcherpay-complete.yaml
|
||||||
|
- temporal-combined.yaml
|
||||||
|
- temporal-complete-stack.yaml
|
||||||
|
- temporal-ui-deployment.yaml
|
||||||
|
- poste-email.yaml
|
||||||
|
|
||||||
|
## SSH Access
|
||||||
|
|
||||||
|
- Current SSH connection: 192.168.1.65 (pts/4)
|
||||||
|
- Local users: garfield (seat0, :0, pts/4)
|
||||||
70
README.md
Normal file → Executable file
70
README.md
Normal file → Executable file
@@ -6,31 +6,54 @@ This repository stores session notes and project context for AI-assisted develop
|
|||||||
|
|
||||||
| Date | Project | Summary | File |
|
| Date | Project | Summary | File |
|
||||||
|------|---------|---------|------|
|
|------|---------|---------|------|
|
||||||
| 2026-03-21 | MQL Trading Bots | Verified 19% profit, fixed bugs, migrated to Gitea | [2026-03-21-mql-trading-bots.md](2026-03-21-mql-trading-bots.md) |
|
| 2026-03-30 | Weekend Gap & Short Signals | Fixed weekend protection, short signal detection | [2026-03-30-weekend-gap-short-signal-fix.md](2026-03-30-weekend-gap-short-signal-fix.md) |
|
||||||
|
| 2026-03-29 | Settings Library | Created 24 .set files, critical bug fixes | [SESSION_SAVE_2026-03-29.md](SESSION_SAVE_2026-03-29.md) |
|
||||||
|
| 2026-03-21 | Initial Verification | Verified 19% profit, Gitea migration | [2026-03-21-mql-trading-bots.md](2026-03-21-mql-trading-bots.md) |
|
||||||
|
|
||||||
## How to Use This Repository
|
## How to Use This Repository
|
||||||
|
|
||||||
|
### For AI Agents:
|
||||||
|
1. Read `AGENTS.md` first - contains technical context
|
||||||
|
2. Check `conversation-history/` for session notes
|
||||||
|
3. Read latest README for current status
|
||||||
|
|
||||||
### For Returning Users:
|
### For Returning Users:
|
||||||
1. Read the latest session file for your project
|
1. Read the latest session file for your project
|
||||||
2. Share the file content with AI at start of new session
|
2. Share the file content with AI at start of new session
|
||||||
3. AI will have full context of previous work
|
3. AI will have full context of previous work
|
||||||
|
|
||||||
### For New Projects:
|
---
|
||||||
1. Create new session file: `YYYY-MM-DD-project-name.md`
|
|
||||||
2. Document what was built, configured, and decided
|
|
||||||
3. Include file locations, settings, and performance data
|
|
||||||
4. Commit and push to preserve context
|
|
||||||
|
|
||||||
## Project Index
|
## Project Index
|
||||||
|
|
||||||
### Active Projects
|
### Active EAs
|
||||||
- **mql-trading-bots** - MetaTrader EA development (profitable!)
|
|
||||||
- Repository: http://10.152.183.192:3000/garfield/mql-trading-bots
|
|
||||||
- Status: Active, ~19% return achieved
|
|
||||||
- Last Session: 2026-03-21
|
|
||||||
|
|
||||||
### Future Projects
|
| EA | Version | Status | Purpose |
|
||||||
(Add new projects here as they're started)
|
|----|---------|--------|---------|
|
||||||
|
| MultiSignal_Confluence_EA.mq5 | v1.14 | ✅ Active | Pivot+Candle+Harmonic confluence |
|
||||||
|
| OrdersEA_Smart_Grid.mq5 | v3.1 | ✅ Active | Grid trading around pivots |
|
||||||
|
|
||||||
|
### Performance
|
||||||
|
|
||||||
|
| Account | Period | Return | Win Rate |
|
||||||
|
|---------|--------|--------|----------|
|
||||||
|
| 104125640 | March 2026 | ~15-19% | 46-87% |
|
||||||
|
| 103477358 | February 2026 | ~4% | - |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Critical Fixes (Chronological)
|
||||||
|
|
||||||
|
| Date | Version | Fix |
|
||||||
|
|------|---------|-----|
|
||||||
|
| 2026-03-21 | v1.11 | Stop loss cross-symbol contamination |
|
||||||
|
| 2026-03-21 | v1.12 | Volatility/ADX filters |
|
||||||
|
| 2026-03-29 | v1.13 | Daily drawdown protection |
|
||||||
|
| 2026-03-29 | v3.0 | Grid daily forced closure bug |
|
||||||
|
| 2026-03-30 | v1.14 | Short signal detection |
|
||||||
|
| 2026-03-30 | v3.1 | Weekend gap protection |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Template for New Sessions
|
## Template for New Sessions
|
||||||
|
|
||||||
@@ -39,7 +62,7 @@ This repository stores session notes and project context for AI-assisted develop
|
|||||||
|
|
||||||
## Participants
|
## Participants
|
||||||
- User: [Name]
|
- User: [Name]
|
||||||
- AI: Kimi Code CLI
|
- AI: [AI Assistant]
|
||||||
|
|
||||||
## Session Overview
|
## Session Overview
|
||||||
Brief summary of what was done.
|
Brief summary of what was done.
|
||||||
@@ -60,16 +83,29 @@ Files modified, settings, configurations.
|
|||||||
What needs to be done next.
|
What needs to be done next.
|
||||||
|
|
||||||
## Session Status: [IN PROGRESS / COMPLETE]
|
## Session Status: [IN PROGRESS / COMPLETE]
|
||||||
|
```
|
||||||
|
|
||||||
## 📊 Trading Performance Reports
|
---
|
||||||
|
|
||||||
|
## Trading Performance Reports
|
||||||
|
|
||||||
| Report | Date | Account | Return | File |
|
| Report | Date | Account | Return | File |
|
||||||
|--------|------|---------|--------|------|
|
|--------|------|---------|--------|------|
|
||||||
| Account 104125640 Analysis | 2026-03-21 | 104125640 | 6.9% | [2026-03-21-mql-trading-report-analysis.md](2026-03-21-mql-trading-report-analysis.md) |
|
| March Analysis | 2026-03-21 | 104125640 | 6.9% | [2026-03-21-mql-trading-report-analysis.md](2026-03-21-mql-trading-report-analysis.md) |
|
||||||
|
|
||||||
### Quick Stats
|
### Quick Stats
|
||||||
- **Best Win Rate**: 86.67% (13/15 trades)
|
- **Best Win Rate**: 86.67% (13/15 trades)
|
||||||
- **Profit Factor**: 2.52
|
- **Profit Factor**: 2.52
|
||||||
- **Current Balance**: $106,935.12 (from $100k start)
|
- **Current Balance**: ~$115,000 (from $100k start)
|
||||||
- **Strategy**: MultiSignal Confluence EA on USDJPY H1
|
- **Strategy**: MultiSignal Confluence EA on USDJPY H1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Gitea Repository
|
||||||
|
|
||||||
|
- **URL:** https://git.fetcherpay.com/garfield/mql-trading-bots
|
||||||
|
- **Last Push:** 2026-03-30
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Last Updated: 2026-03-30*
|
||||||
|
|||||||
0
REPOSITORIES.md
Normal file → Executable file
0
REPOSITORIES.md
Normal file → Executable file
0
SESSION_SAVE_2026-03-22.md
Normal file → Executable file
0
SESSION_SAVE_2026-03-22.md
Normal file → Executable file
0
TEMPLATE.md
Normal file → Executable file
0
TEMPLATE.md
Normal file → Executable file
150
confluence_ea_diagnostic.md
Normal file
150
confluence_ea_diagnostic.md
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
# Confluence EA Diagnostic Checklist
|
||||||
|
**Date:** 2026-04-03
|
||||||
|
**Issue:** EA not trading despite being functional
|
||||||
|
|
||||||
|
## 🔍 Step-by-Step Diagnosis
|
||||||
|
|
||||||
|
### 1. Equity Protection Check
|
||||||
|
```bash
|
||||||
|
# Check current account state
|
||||||
|
Account Equity: _____%
|
||||||
|
Required Minimum: ____% (check EA settings)
|
||||||
|
Daily Drawdown Used: ____% of 3%
|
||||||
|
```
|
||||||
|
|
||||||
|
**Action:** If equity below threshold, either:
|
||||||
|
- Wait for account recovery
|
||||||
|
- Temporarily lower minimum equity setting
|
||||||
|
- Fund account to restore equity percentage
|
||||||
|
|
||||||
|
### 2. EA Settings Verification
|
||||||
|
```bash
|
||||||
|
# In MT5 Expert Properties
|
||||||
|
✓ Allow live trading: [Yes/No]
|
||||||
|
✓ Allow DLL imports: [Yes/No]
|
||||||
|
✓ Allow import of external experts: [Yes/No]
|
||||||
|
✓ Confirm live trading: [Yes/No]
|
||||||
|
|
||||||
|
# EA-Specific Settings
|
||||||
|
✓ InpUseRiskPercent: [True/False]
|
||||||
|
✓ InpRiskPercent: [1.0-5.0]%
|
||||||
|
✓ InpMaxPositions: [3-5]
|
||||||
|
✓ InpMinConfluence: [2-3]
|
||||||
|
✓ InpMinStrength: [0.85-0.95]
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Filter Status Check
|
||||||
|
Monitor Journal for these filter blocks:
|
||||||
|
|
||||||
|
**Volatility Filter:**
|
||||||
|
- Message: "Volatility filter BLOCKED: ATR too low"
|
||||||
|
- Solution: Lower InpMinATRPercent or disable temporarily
|
||||||
|
|
||||||
|
**ADX Filter:**
|
||||||
|
- Message: "ADX filter BLOCKED: trend too weak/strong"
|
||||||
|
- Solution: Adjust InpMinADX or disable temporarily
|
||||||
|
|
||||||
|
**Confluence Filter:**
|
||||||
|
- Message: "Insufficient confluence signals"
|
||||||
|
- Solution: Lower InpMinConfluence from 3 to 2
|
||||||
|
|
||||||
|
**Strength Filter:**
|
||||||
|
- Message: "Signal strength below threshold"
|
||||||
|
- Solution: Lower InpMinStrength from 0.90 to 0.85
|
||||||
|
|
||||||
|
### 4. Market Condition Analysis
|
||||||
|
```bash
|
||||||
|
Current Market State:
|
||||||
|
EURUSD ATR: _____
|
||||||
|
GBPUSD ATR: _____
|
||||||
|
USDJPY ATR: _____
|
||||||
|
|
||||||
|
ADX Levels:
|
||||||
|
EURUSD ADX: _____
|
||||||
|
GBPUSD ADX: _____
|
||||||
|
USDJPY ADX: _____
|
||||||
|
```
|
||||||
|
|
||||||
|
**Normal Ranges:**
|
||||||
|
- ATR: 0.0050-0.0150 (50-150 pips daily range)
|
||||||
|
- ADX: 20-40 (trending but not extreme)
|
||||||
|
|
||||||
|
### 5. Symbol-Specific Issues
|
||||||
|
Check each trading pair individually:
|
||||||
|
|
||||||
|
**EURUSD (Chart 1):**
|
||||||
|
- EA loaded: [Yes/No]
|
||||||
|
- Last signal time: _____
|
||||||
|
- Filter blocks: _____
|
||||||
|
|
||||||
|
**GBPUSD (Chart 2):**
|
||||||
|
- EA loaded: [Yes/No]
|
||||||
|
- Last signal time: _____
|
||||||
|
- Filter blocks: _____
|
||||||
|
|
||||||
|
**Continue for all 10 pairs...**
|
||||||
|
|
||||||
|
### 6. Technical Fixes
|
||||||
|
|
||||||
|
**If filters too restrictive:**
|
||||||
|
```cpp
|
||||||
|
// Temporarily relax settings
|
||||||
|
InpMinATRPercent = 0.3 // Lower from 0.5
|
||||||
|
InpMinADX = 15 // Lower from 20
|
||||||
|
InpMinStrength = 0.80 // Lower from 0.90
|
||||||
|
InpMinConfluence = 2 // Lower from 3
|
||||||
|
```
|
||||||
|
|
||||||
|
**If equity protection too strict:**
|
||||||
|
```cpp
|
||||||
|
// Check for equity threshold settings
|
||||||
|
// May need to temporarily disable equity checks
|
||||||
|
// Or add manual override for recovery period
|
||||||
|
```
|
||||||
|
|
||||||
|
**If no signals generated:**
|
||||||
|
```cpp
|
||||||
|
// Enable debug mode in EA
|
||||||
|
// Add Print() statements in signal detection
|
||||||
|
// Monitor Journal for signal attempts
|
||||||
|
```
|
||||||
|
|
||||||
|
## 🎯 Expected Outcomes
|
||||||
|
|
||||||
|
### Normal Resume (Best Case):
|
||||||
|
- Monday: Daily limits reset
|
||||||
|
- Tuesday: First trades appear
|
||||||
|
- Wednesday: Regular trading rhythm restored
|
||||||
|
|
||||||
|
### Gradual Resume (Likely Case):
|
||||||
|
- Monday-Tuesday: Filters blocking due to low volatility
|
||||||
|
- Wednesday-Thursday: First trades as markets normalize
|
||||||
|
- Following week: Full trading restored
|
||||||
|
|
||||||
|
### Manual Intervention Needed (Worst Case):
|
||||||
|
- EA settings too conservative for current equity level
|
||||||
|
- Market conditions outside normal parameters
|
||||||
|
- Code modification required for recovery scenario
|
||||||
|
|
||||||
|
## 📞 Escalation Triggers
|
||||||
|
|
||||||
|
**Call for help if:**
|
||||||
|
1. No trades by Thursday with good market conditions
|
||||||
|
2. Journal shows unknown error messages
|
||||||
|
3. EA repeatedly starts then stops
|
||||||
|
4. Filters appear to be malfunctioning
|
||||||
|
5. Account equity continues declining despite no trading
|
||||||
|
|
||||||
|
## 📝 Documentation Requirements
|
||||||
|
|
||||||
|
**Daily Log Template:**
|
||||||
|
```
|
||||||
|
Date: _____
|
||||||
|
Equity: _____%
|
||||||
|
Trades Today: _____
|
||||||
|
Blocked Signals: _____
|
||||||
|
Filter Status: _____
|
||||||
|
Next Action: _____
|
||||||
|
```
|
||||||
|
|
||||||
|
This systematic approach will quickly identify if it's a temporary market/filter issue or a deeper problem requiring code changes.
|
||||||
Reference in New Issue
Block a user