Complete reference for all Grid EA parameters.
Direction Control
| Parameter | Default | Description |
| AllowBuy | true | Enable BUY orders |
| AllowSell | true | Enable SELL orders |
| AutoFirstOrder | true | Automatically open the first order when EA starts |
| EnableRemote | true | Allow admin to pause/resume EA remotely |
Trend Filter
| Parameter | Default | Description |
| TrendFilter | MA | Filter mode: OFF, MA, RSI, or MA+RSI |
| CloseOnTrendChange | false | Close all positions when trend reverses |
| TrendStrictMode | false | Only trade in ONE direction based on trend |
| TrendStrictBullish | false | Allow BUY only on bullish trend (if StrictMode) |
| TrendStrictBearish | false | Allow SELL only on bearish trend (if StrictMode) |
| TrendStrictBuffer | 1000 | Buffer zone around MA (points) - no trade if price too close |
| TrendMA_Period | 100 | Moving Average period |
| TrendMA_Method | SMA | MA calculation method (SMA, EMA, SMMA, LWMA) |
| TrendTimeframe | H1 | Timeframe for trend calculation |
| RSI_Period | 14 | RSI indicator period |
| RSI_Oversold | 40 | RSI level below = oversold (bullish) |
| RSI_Overbought | 60 | RSI level above = overbought (bearish) |
Trend Filter Modes
| Mode | Description |
| OFF | No trend filter, trade both directions |
| MA | Use Moving Average for trend |
| RSI | Use RSI for trend |
| MA+RSI | Both must agree |
Grid Parameters
| Parameter | Default | Description |
| GridMode | Fixed | Grid type: Fixed, S/R Levels, or Order Blocks |
| GridStep | 1100 | Distance between grid levels (points) |
| GridStepMultiplier | 1.0 | Multiplier for progressive grid (1.0 = fixed) |
| GridDelayedAfter | 0 | Add extra distance after X levels (0 = off) |
| GridDelayedExtra | 0 | Extra points to add after delayed level |
| FirstOrderDistance | 600 | Distance from price for first pending order |
| MoveStep | 60 | Step size when moving pending orders |
| GridFollowDistance | 100 | Distance for grid trailing entry |
| GridFollowStep | 30 | Step size for grid trailing |
| SR_Lookback | 50 | Bars to look back for Support/Resistance |
| SR_Strength | 3 | Minimum touches to confirm S/R level |
| SR_Tolerance | 100 | Tolerance for S/R level detection (points) |
| OB_Lookback | 30 | Bars to look back for Order Blocks |
| OB_MinMove | 500 | Minimum move to confirm Order Block |
Grid Modes
| Mode | Description |
| Fixed | Fixed distance between levels |
| S/R | Grid at Support/Resistance levels |
| Order Block | Grid at Order Block zones |
Lot Size & Martingale
| Parameter | Default | Description |
| UseAutoLot | false | Calculate lot size based on balance |
| AutoLotPercent | 0.1 | Percentage of balance for auto lot |
| StartLot | 0.01 | Starting lot size |
| LotMultiplier | 2.0 | Multiply lot by this for each grid level |
| LotIncrement | 0.0 | Add this to lot for each level (alternative) |
| MaxGridLevels | 0 | Maximum grid levels (0 = unlimited) |
Lot Progression Example (StartLot=0.01, Multiplier=2.0)
- Level 1: 0.01
- Level 2: 0.02
- Level 3: 0.04
- Level 4: 0.08
- Level 5: 0.16
Profit Targets
| Parameter | Default | Description |
| TakeProfit_1Dir | 600 | TP when trading ONE direction (points) |
| TakeProfit_2Dir | 500 | TP when trading BOTH directions (points) |
Trailing Stop
| Parameter | Default | Description |
| TrailingType | OFF | Trailing mode: OFF, Points, or Bars |
| TrailingActivation | 800 | Profit to activate trailing (points) |
| TrailingPoints | 500 | Trailing distance (points) |
| TrailingTF | M15 | Timeframe for bar-based trailing |
| TrailingBars | 10 | Number of bars for trailing |
Risk Management
| Parameter | Default | Description |
| MaxLossUSD | 0 | Max loss in USD before closing all (0 = off) |
| MaxDrawdownPct | 0 | Max drawdown % before closing all (0 = off) |
Dynamic TP & Degressive Martingale
Dynamic Take Profit
Reduces TP when grid gets deeper to help recovery.
| Parameter | Default | Description |
| UseDynamicTP | true | Enable dynamic TP |
| DynamicTP_Level1 | 3 | After X levels, first reduction |
| DynamicTP_Value1 | 250 | New TP after Level1 (points) |
| DynamicTP_Level2 | 5 | After X levels, second reduction |
| DynamicTP_Value2 | 100 | New TP after Level2 (points) |
| DynamicTP_Level3 | 7 | After X levels, third reduction |
| DynamicTP_Value3 | 50 | New TP after Level3 (points) |
Degressive Martingale
Reduces multiplier at deeper levels.
| Parameter | Default | Description |
| UseDegressiveMartingale | false | Enable degressive martingale |
| DegressiveAfter | 3 | After X levels, reduce multiplier |
| DegressiveMultiplier1 | 1.5 | Multiplier after DegressiveAfter |
| DegressiveAfter2 | 5 | After X levels, reduce more |
| DegressiveMultiplier2 | 1.2 | Multiplier after DegressiveAfter2 |
End of Day Management
| Parameter | Default | Description |
| UseEndOfDay | true | Enable end of day management |
| EOD_CloseHour | 23 | Hour when market closes (server time) |
| EOD_NoNewGridMinutes | 60 | Stop new grids X minutes before close |
| EOD_ForceCloseMaxGrid | 2 | Force close if grid ≤ X levels before close |
⛔ OTHER - DO NOT CHANGE
🔴 WARNING
Do not modify these settings unless you know what you're doing. Changing these can cause issues with order management and license validation.
| Parameter | Default | Description |
| Magic | 888 | Magic number - unique identifier for EA orders |
| Comment_ | Filtred_ea | Comment attached to orders |
⚠️ Magic Number
If you change this, the EA will not recognize its own orders. Only change if running multiple instances on same account.
⛔ DISPLAY - DO NOT CHANGE
🔴 WARNING
These settings control the overlay position. Changing them may hide the overlay or cause display issues.
| Parameter | Default | Description |
| Display_X | 20 | Overlay X position (pixels from left) |
| Display_Y | 30 | Overlay Y position (pixels from top) |
| Display_FontSize | 11 | Font size |
| Display_Font | Consolas | Font name |
💡 Tip
Only change Display_X and Display_Y if the overlay is hidden behind another element.