Grid Weighted Average Risk
- Experts
- Versão: 1.0
- Ativações: 20
The Grid Weighted Average Risk EA is a grid averaging Expert Advisor featuring a fixed total risk control mechanism. Set your risk percentage once, and the EA automatically calculates the precise lot sizes and grid spacing for you.
⚙️ How It Works
- Layer Execution: Layer 0 opens immediately at market price. Layers 1 through N are placed as pending limit orders (below entry for Buy, above entry for Sell).
- Weighted Risk Allocation: Your total risk (% of account balance) is distributed across all layers with linearly increasing weights (1, 2, 3, etc.). Lot sizes per layer are calculated automatically based on your equity.
- Shared Stop Loss: A single shared Stop Loss (SL) protects all open positions, ensuring your maximum drawdown if SL is hit is known prior to entry.
- Automatic Grid Spacing: The distance between grid layers is mathematically derived from your SL distance, total layer count, and SL buffer settings.
- Order Tracking: Every layer receives a unique identifier (Base Magic + level) and a custom order comment (Grid WAR L[level]).
✨ Key Features
- Linear Lot Progression: Uses linear position sizing instead of aggressive exponential/martingale multipliers.
- Auto-Add Layers: Automatically splits and adds layers if calculated lot sizes exceed the broker’s maximum allowable lot limit.
- Auto-Reduce Layers: Automatically reduces the layer count if minimum lot size requirements push real risk above your target input.
- Minimum-Lot Fallback: Optional handling mechanism for calculated lot results that fall below broker minimums.
- Basket Take Profit: Closes positions based on the average (break-even) price, accounting for overnight swaps and commissions.
- Flexible TP Modes: Target profit can be defined in Money ($), Pips, or Percent of Balance (%).
- Break-Even SL Trailing: Option to move SL to break-even (plus an optional pip offset) after reaching a specified floating profit.
- On-Chart Info Panel: Real-time display showing balance, average entry price, break-even price, target TP, current profit, and targets (in $, pips, and %).
🎛️ Main Inputs
- Direction (Buy / Sell)
- Grid Layers & Max Layers
- SL Distance (pips) & SL Buffer (layers)
- TP Mode & Target Values
- Total Risk (%)
- Break-Even Settings
- Base Magic Number & Auto Restart
💡 Recommendations
- Account Type: A Hedging account is required (each layer executes as a separate position).
- Trading Symbols: Tested logic on XAUUSD and Forex pairs. (Set the pip size override if your symbol uses non-standard digits/quotes).
- Timeframe: Any timeframe (the EA runs purely on price action, independent of technical indicators).
- Minimum Balance: Varies depending on symbol and risk parameters. A small balance may force minimum lot limits and reduce the active layer count.
- Testing: Test on a Demo account first to verify that your broker's Stops Level accommodates the calculated grid spacing.
⚠️ Risk Warning
Grid and averaging strategies hold losing positions as price moves against your entries and can incur substantial losses if the shared SL is triggered.
While this EA strictly caps risk via automated position sizing, it does not eliminate market risk nor does it guarantee profits. Past performance is not indicative of future results. Only trade with capital you can afford to lose.
