Specification
A fully automated Expert Advisor for XAUUSD (Gold) that places paired pending orders at multiple levels above the current period's High and below the current period's Low. The bot operates on a refresh cycle and enforces strict trading hours with automatic overnight closure. Order Structure · Buy Side (6 orders total): 2 orders at High +1 pip, 2 orders at High +11 pips, 2 orders at High +21 pips · Sell Side (6 orders total): 2 orders at Low -1 pip, 2 orders at Low -11 pips, 2 orders at Low -21 pips Key Mechanisms 1. Auto-Refresh: Deletes all pending orders and recalculates High/Low at user-defined intervals (e.g., every 1 hour), placing fresh orders at updated levels 2. Trading Hours: · Active window: 1:00 AM to 8:00 PM (broker time) · 8:00 PM: All pending orders deleted + all open positions closed at market · 1:00 AM: Bot reactivates with fresh orders 3. Exit Logic: · Fixed Stop Loss: 50 pips · Fixed Take Profit: 100 pips · Custom Trailing Stop: Activates after 15 pips profit, then for every 5 pips profit increase, SL moves 10 pips (2:1 ratio) Risk Management · Fixed or auto-lot based on risk percentage · Different lot sizes possible per level · Daily loss limit and consecutive loss limit · Maximum open positions cap · No martingale, no grid, no averaging.
Parameter Options
Timeframe Daily, H4, H1,
Custom Refresh Interval 1 hour, 2 hours, 4 hours,
Specific time Trading Hours Trading Start Time Default 01:00
Trading End Time Default 20:00
Close All at End Time True/False
Buy Side Settings Buy Level 1 Distance pips above High (default 1)
Buy Level 2 Distance pips above High (default 11)
Buy Level 3 Distance pips above High (default 21)
Orders Per Level (fixed at 2, or adjustable 1-3)
Sell Side Settings Sell Level 1 Distance pips below Low (default 1)
Sell Level 2 Distance pips below Low (default 11)
Sell Level 3 Distance pips below Low (default 21)
Trailing Stop Settings Enable Trailing True/False
Trail Activation pips (default 15)
Trail Step pips (default 5)
Trail Move pips (default 10)
Risk Settings Lot Size Level 1 Fixed or %
Lot Size Level 2 Fixed or %
Lot Size Level 3 Fixed or %
Stop Loss Fixed 50 pips
Take Profit Fixed 100 pips
Max Open Positions 1-12
Spread Limit User-defined