EA Gold ZigZag
- Experts
- Teerathad Booranawisedkul
- Versione: 1.0
- Attivazioni: 10
Gold ZigZag is a fully automated Expert Advisor designed for gold trading (XAUUSD) that utilizes a modified ZigZag indicator to identify key market swing points. The EA employs pending orders at strategic levels with strict risk management and trailing stop functionality.
Trading Strategy
The Expert Advisor implements a ZigZag-based breakout strategy combined with multiple confirmation filters:
Core Logic
- ZigZag Detection**: Identifies significant high and low pivot points using customizable ZigZag parameters
- Pending Orders**: Places Buy Stop orders above swing highs and Sell Stop orders below swing lows
- Distance-Based Entry**: Orders are positioned at a specified distance from ZigZag extreme points
- Single Position Management**: Trades one position at a time to minimize risk exposure
Risk Management Features
- Fixed Stop Loss
- Dynamic Take Profit : Adjustable TP based on ZigZag range or fixed multiplier
- Dual Trailing Stop System :
- Primary trailing stop activates at 20 pips profit
- Backup trailing stop activates at 30 pips profit
- Spread Filter : Automatically filters high-spread conditions
- Order Expiration : Pending orders automatically expire after set time
Trading Parameters
Trading Parameters
- Adjustable lot size or risk percentage per trade
- Customizable ZigZag depth, deviation, and backstep
- Configurable stop loss and take profit levels
- Maximum spread filter to avoid poor execution
- Time-based trading hours filter (optional)
- Pending order distance and expiration controls
Protection Mechanisms
- Magic number identification for multi-chart operation
- Automatic deletion of expired pending orders
- Spread monitoring with historical averaging
- Safe order placement with price validation
- Slippage control
Recommended Settings
For XAUUSD (Gold)
Timeframe: M15, M30
Lot Size: 0.01 (or Risk 1-2%)
Broker Requirements
- Minimum spread: Below 20 pips for optimal performance
- Account type: Any (ECN, Standard, Pro)
- Leverage: 1:100 or higher recommended
- Minimum balance: $500 for 0.01 lot size

