Tâche terminée
Spécifications
MT5 Gold Grid Hedging EA Requirements
General
- Platform: MetaTrader 5
- Language: MQL5
- Instrument: Any symbol (optimized for XAUUSD)
- Works on any timeframe
- Magic Number support
- Multi-chart compatible
Trading Strategy
The EA should create two grids:
Buy Grid
- Place BUY STOP pending order
- s above current market price.
- Equal distance between each order.
- User can define number of buy orders.
Example
Current Price = 4190
BUY STOP
4191
4192
4193
4194
...
Sell Grid
Place SELL STOP pending orders below market price.
Example
4189
4188
4187
4186
...
User Inputs
Trading
- Lot Size
- Magic Number
- Slippage
- Max Spread
- Enable Buy Grid
- Enable Sell Grid
Grid Settings
- Grid Distance (points)
- Number of Buy Orders
- Number of Sell Orders
- Auto Rebuild Grid
- Maintain Constant Grid
Money Management
- Fixed Lot
- Auto Lot
- Risk %
If Auto Lot
Calculate lot based on balance.
Take Profit
Options
Individual TP
Every trade has its own TP.
OR
Basket TP
Close all trades when total profit reaches:
Example
$20
$50
$100
Stop Loss
- Individual SL
- Basket SL
- No SL option
Trailing Stop
Enable/Disable
Inputs
Trailing Start
Trailing Distance
Trailing Step
Break Even
Enable
Move SL to BE after
Example
200 points
Grid Behaviour
When one BUY STOP becomes market order
Immediately place another BUY STOP at the top of grid.
Same for SELL STOP.
Grid should always maintain selected number of pending orders.
Hedging
Allow Buy and Sell simultaneously.
No closing opposite trades.
True hedging mode.
Pending Order Management
Automatically delete extra pending orders.
Replace missing orders.
Do not duplicate pending orders.
Maximum Orders
Maximum Open Buy Trades
Maximum Open Sell Trades
Maximum Pending Orders
Maximum Total Orders
Basket Functions
Close All Buy
Close All Sell
Close Everything
Close Winning Trades
Close Losing Trades
Auto Restart
After basket closes
Automatically rebuild full grid.
Visual Panel
Display:
- Account Balance
- Equity
- Floating Profit/Loss
- Daily Profit
- Drawdown %
- Open Buy Orders
- Open Sell Orders
- Pending Buy Stops
- Pending Sell Stops
- Spread
- Trading Status (ON/OFF)
Buttons:
- Buy Grid ON/OFF
- Sell Grid ON/OFF
- Close All
- Pause EA
- Resume EA
Recommended Default Settings (Gold)
- Grid Distance: 100 points
- Buy Stop Orders: 20
- Sell Stop Orders: 20
- Lot Size: 0.01
- Basket TP: $20
- Basket SL: Disabled
- Trailing Stop: Off
- Hedging: Enabled
- Auto Grid Rebuild: Enabled
- Spread Filter: 50 points