EA Bill Williams Alligator
- Uzman Danışmanlar
- Kostadin Yankov
- Sürüm: 5.14
- Etkinleştirmeler: 5
ALLIGATOR STRATEGY
Fully Automated Expert Advisor for Gold Trading | MQL5 / MetaTrader 5 | Version 5.10 | XAUUSD / GOLD Only
| 29x Return in 4 Years | Under 10% Maximum Drawdown | Real Ticks Verified Results |
1. Backtesting Results — Real Ticks
VERIFIED: Real tick data (99% quality) | 2021–2026 | 4+ Years
| Metric | Value |
| Starting Capital | $1,000 (lot size 0.15) |
| Final Balance | $27,217 |
| Total Profit | $26,217 (+2,621%) |
| Period | 2021 — 2026 (4+ years) |
| Maximum Drawdown | <10% |
| Timeframe | M15 |
| Instrument | XAUUSD / GOLD |
| Data Quality | Real Ticks (99%) |
The equity curve grows steadily and smoothly throughout the entire 4-year period — including 2021–2023 when gold was in a correction phase. Maximum drawdown remains below 10%, which is exceptionally low for this level of return.
IMPORTANT!
For both backtesting and live trading, please use only the attached set files from the Comments section — available for 2-digit and 3-digit brokers. If you are not sure how many digits your broker uses, simply run the EA in the MT5 Strategy Tester with both set files — you will quickly see which one fits your broker.
The EA was built without a visual interface to keep it lightweight and fast. If you would like to visualize it on your chart, download our companion indicator from the Comments section — completely free — and attach it to the same chart where the EA is running.
Please use moderate risk settings in your trading. Let us not forget that backtests are based on historical data, and the future remains unknown for all of us. Even though the EA uses a modern Money Management strategy, avoid trading with excessive lot sizes.
2. What Is This Expert Advisor
EA Bill Williams Alligator Strategy is a fully automated trading system developed exclusively for trading Gold (XAUUSD / GOLD) on MetaTrader 5. The system identifies moments when the gold market is in a clear trend and only enters a position when multiple independent conditions are satisfied simultaneously. This significantly reduces false signals during choppy or sideways markets.
Supported instruments: XAUUSD (standard naming used by most brokers) and GOLD (used by RoboForex, Exness, FXPro and others).
Important: This EA is developed and optimized for Gold ONLY. Using it on other instruments is not recommended.
3. Strategy Overview
The system is based on the classical Bill Williams theory for identifying market trends through dynamically shifted moving averages. It recognizes three phases of the market:
- Sleeping market — EA does not enter positions, waits for the market to activate
- Awakening market — the system prepares and monitors entry conditions
- Active market (trend) — enters in the direction of the trend with clear levels
The key advantage is its multi-layer filtration system. The EA requires several independent conditions to be satisfied simultaneously before opening any position — dramatically reducing false signals and improving trade quality.
Risk Management
- Dynamic SL/TP — adapted to current market volatility (ATR-based)
- Trailing Stop — automatically moves SL to lock in profits
- Daily Loss Limit — stops the EA when the daily loss limit is reached
- Trend Filter — blocks positions during a global bear market
4. Input Parameters
4.1 Core Settings
| Parameter | Default | Description |
| InpLotSize | 0.10 | Lot size for each trade |
| InpMagicNumber | 12345 | Unique EA identifier |
| InpSlippage | 10 | Maximum allowed slippage in points |
4.2 Stop Loss & Take Profit
| Parameter | Default | Description |
| InpATRPeriod | 14 | Period for volatility calculation |
| InpSL_ATR_Mult | 10.0 | SL multiplier — higher = wider stop loss |
| InpTP_ATR_Mult | 10.0 | TP multiplier — higher = further take profit |
4.3 Signal Filters
| Parameter | Default | Description |
| InpUseAO | true | Momentum filter — recommended ON |
| InpUseFractals | true | Fractal filter — recommended ON |
| InpFractalBars | 3 | Number of bars to search for fractal |
| InpMinAlligatorGap | 0.5 | Sleep filter — higher = more strict |
4.4 Trend Filter
| Parameter | Default | Description |
| InpUseTrendFilter | true | Enables the global trend filter |
| InpTrendMAPeriod | 200 | Trend MA period |
| InpTrendTF | W1 | Trend MA timeframe (Weekly) |
4.5 Protection & Management
| Parameter | Default | Description |
| InpUseDailyLimit | true | Enable daily loss limit |
| InpDailyLossPercent | 5.0 | Max daily loss % — EA stops until next day |
| InpUseTrailing | true | Trailing stop to lock in profits |
| InpTrailing_ATR | 1.5 | Trailing distance in ATR units |
4.6 Notifications & Panel
| Parameter | Default | Description |
| InpSendPush | true | Push notification to mobile phone |
| InpSendEmail | false | Email notification on signal |
| InpSendAlert | true | Platform alert on signal |
| InpShowPanel | true | Show live info panel on the chart |
5. Optimal Settings — Tested Results
Multiple backtests with real tick data were conducted for the period 2021–2026. RECOMMENDED: SL 10.0 / TP 10.0 — best balance between return and risk.
| SL Mult | TP Mult | Final Balance | Drawdown |
| 2.0 | 3.0 | ~$26,600 | Low |
| 5.0 | 10.0 | ~$24,720 | 25%! |
| 8.0 | 12.0 | ~$27,576 | Low |
| 10.0 ★ | 10.0 ★ | ~$27,217 (real ticks) | <10% |
6. Installation & Setup
Step 1: Copy the Files
You receive two ready-to-use compiled files:
- EA_BillWilliams_Alligator.ex5 — the Expert Advisor (bot)
- EA_BillWilliams_Alligator_Visual.ex5 — visual companion indicator (optional)
Copy the .ex5 files to the correct folders:
- EA file: MT5 → File → Open Data Folder → MQL5 → Experts
- Indicator: MT5 → File → Open Data Folder → MQL5 → Indicators
- After copying, restart MT5 or press Refresh in the Navigator panel
Step 2: Load the Set File
You also receive a ready-made Set file: EA_BillWilliams_Alligator_XAUUSD.set with the optimal settings.
- In Strategy Tester or when attaching → click Load → select the .set file
Step 3: Attach to Chart
- Open a XAUUSD or GOLD chart on the M15 timeframe
- Find the EA in Navigator → Expert Advisors
- Drag the EA onto the chart or double-click it
- Enable Allow Algo Trading in the settings window and click OK
Step 4: Verify
Make sure there is a smiley face icon in the top right corner of the chart — the EA is active. The live info panel will appear in the top left corner.
7. Running a Backtest
- Symbol: XAUUSD or GOLD | Timeframe: M15
- Period: 2021.01.01 — 2026.01.01 (minimum 2 years recommended)
- Modelling: Every tick based on real ticks (99% quality)
- Initial Deposit: 10,000 USD | Leverage: 1:100
- Load the Set file for optimal settings and start the test
Expect a balance curve that grows steadily and smoothly throughout the entire period.
8. Important Notes & Risk Disclaimer
WARNING: Past performance does not guarantee future results. Trading financial instruments carries a significant risk of loss.
- The backtest was conducted with lot size 0.15 on a $1,000 account — this is an aggressive setting
- Recommended: use lot 0.01 per $1,000 of capital for conservative trading
- Only trade with funds you can afford to lose
- Always test on a demo account before going live
- The EA performs best during strong gold trends
- Monitor your account at least once per day
- Enable Push notifications to receive signals on your phone
9. Support
For questions and suggestions please use the Comments section on the product page in MQL5 Market. We respond within 24–48 hours.
Happy trading!
