diff --git a/SESSION_SAVE_2026-03-22.md b/SESSION_SAVE_2026-03-22.md index b176f6d..a64f392 100644 --- a/SESSION_SAVE_2026-03-22.md +++ b/SESSION_SAVE_2026-03-22.md @@ -294,3 +294,47 @@ This will: 2. Use MT4→MT5 conversion tools for old code 3. Watch for MetaEditor freezes during compilation 4. Restart container if VNC becomes unresponsive + +--- + +## OrdersEA Smart Grid v3.0 Created +**Date:** March 24, 2026 + +### New EA: OrdersEA_Smart_Grid.mq4 + +**Features:** +1. **Auto Pivot Calculation** - Calculates P, R1, S1, R2, S2 from daily data +2. **RSI Filter** - Only trades when RSI is in neutral zone (35-65) +3. **ADX Filter** - Only trades when ADX < 25 (ranging market) +4. **ATR Adaptive Range** - Grid range adjusts to volatility +5. **Max Levels** - Safety limit on grid depth +6. **Auto Recalculation** - Updates pivots at new trading day + +### Key Parameters: + +**Grid Settings:** +- UseAutoPivots: true = auto-calculate, false = use manual HIGH/LOW +- Entry: Grid spacing in pips (default 10) +- TP: Take profit per level (default 15) +- MaxLevels: Maximum orders per side (default 10) + +**Filters:** +- UseRSIFilter: Enable RSI check +- RSILower/RSIUpper: 35/65 default (neutral zone) +- UseADXFilter: Enable trend detection +- ADXMax: 25 default (below = ranging) +- UseATRFilter: Enable volatility-based range +- ATRMultiplier: 1.5 default (range = ATR × 1.5) + +### How It Works: + +1. At startup, calculates yesterday's pivot points +2. Sets grid range: HIGH = R1 (or R2), LOW = S1 (or S2) +3. Each tick checks: + - RSI between 35-65? (Not overbought/oversold) + - ADX < 25? (Not trending) + - Price within range? +4. If all pass, places grid orders +5. If market trends (ADX > 25), stops placing new orders + +### Commit: 73d420c