WIP: 6+ weeks of uncommitted EA development and preset tuning

Confluence EA (v1.16 → v1.20):
- Per-EA realized P&L tracking via history deals
- Weekly drawdown protection
- Warmup bars, pivot cache, state persistence
- Point-scaled pivot thresholds, ranging ATR factor
- Market filling mode helper per symbol

Grid EA (v3.1 → v4.1):
- Adaptive filters, adaptive entry, spread filter
- Session filter, breakeven, correlation caps, range drift
- Profit protection (stop-after-profit, cycle reports)
- Edge cleanup v5.0 — close wrong-side positions outside grid
- Master one-shot shutdown, grid state persistence

Presets:
- Fix GetOut=Y shutdown bug on 4 grid presets
- Relax ADXMax 18→40, widen RSI 20/80 across grid presets
- Standardize daily drawdown 3%→5%, add weekly 10%
- Increase grid lots 0.01→0.03
- Normalize confluence ATR thresholds per pair
- Add XAGUSD, EURCHF, EURGBP, AUDNZD presets

Docs & DevOps:
- April 23 audit files (preset mismatch, code review, checklist)
- n8n workflow and validation infrastructure updates
- AI agent analyses in notes/

Known issues carried forward:
- Shared drawdown budget contamination (both EAs)
- Confluence ranging-market threshold inversion
- Older grid presets missing v4.1 safety controls
This commit is contained in:
2026-05-12 09:02:25 -04:00
parent b9b4e2b22b
commit 0894d18db4
72 changed files with 3869 additions and 1416 deletions
Regular → Executable
+15 -14
View File
@@ -5,27 +5,27 @@
; === Grid Settings ===
UseAutoPivots=true
InpManualHigh=0 ; Use auto-calculated pivot levels
InpManualHigh=0
InpManualLow=0
Entry=14 ; 14 pip spacing (tight for EURUSD)
TP=22 ; 22 pip take profit
Lots=0.01
MaxLevels=8 ; More levels (very liquid)
Entry=14
TP=22
Lots=0.03
MaxLevels=8
; === Range Filters ===
UseRSIFilter=true ; Essential for ranging detection
UseRSIFilter=true
RSIPeriod=14
RSILower=28 ; Wider range for liquidity
RSIUpper=72
UseADXFilter=true ; Avoid trending markets
RSILower=20
RSIUpper=80
UseADXFilter=true
ADXPeriod=14
ADXMax=32 ; Allow slight trends (liquid pair)
ADXMax=40
UseATRFilter=true
ATRPeriod=14
ATRMultiplier=1.4 ; Tighter bands for liquid pair
ATRMultiplier=1.4
; === Risk Management ===
StopLoss=0 ; Grid relies on TP, not SL
StopLoss=0
TRADE_RANGE=45
LongLimit=0
ShortLimit=0
@@ -39,7 +39,8 @@ LotsFactorPercent=0
BaseEquity=10000
Master=false
DiagnosticModeOn=false
InpMaxDailyDrawdown=3.0 ; Standard for major pair
InpMaxDailyDrawdown=5.0
InpMaxWeeklyDrawdown=10.0
; === Session Notes ===
; Best: European session (08:00-17:00 GMT)
@@ -51,4 +52,4 @@ MagicNum=333011
; === Weekend Protection ===
InpCloseBeforeWeekend=true
InpWeekendCloseHour=17
InpWeekendCloseHour=14