HeikenAshi EMA100 Gold Trend EA
- エキスパート
- バージョン: 5.0
- アクティベーション: 5
HeikenAshi EMA100 Gold Trend EA — XAUUSD M15 Expert Advisor
A disciplined, trend-following Expert Advisor for Gold (XAUUSD) on the M15 timeframe. Powered by HeikenAshi trend confirmation, an EMA-pullback entry, and a multi-layer risk filter stack — built to stay on the right side of the gold trend.
What It Does
HeikenAshi EMA100 Gold Trend EA enters on a pullback inside a confirmed trend: it waits for a clean HeikenAshi body in the trend direction, catches the pullback to the trend mean, and requires the full momentum/volatility filter stack to agree before opening. Every position is protected by an ATR trailing stop, an early break-even lock, a HeikenAshi 2-bar reversal exit, and a pre-close time exit — all wrapped in a hard circuit breaker and drawdown-suspension system.
Key Features
- HeikenAshi Trend Confirmation — filtered candles remove market noise; only clean trend bodies trigger entries
- EMA-Pullback Entry — buys the pullback inside a confirmed trend instead of chasing
- Multi-Layer Filter Stack — RSI direction, Bollinger bandwidth floor, ATR volatility floor, and a momentum vote must all agree before entry
- Optional Higher-Timeframe Macro Trend Filter — trade in the direction of the higher-timeframe 100-EMA when enabled
- ATR Trailing Stop (TightTrail2) — a protective trailing stop that only improves as the trade moves in your favor
- Early Break-Even Lock — protects profits shortly after the trade starts
- 2-Bar HeikenAshi Reversal Exit — closes winners when the trend body flips against the position
- Pre-Close Time Exit — flattens before swaps and weekend gaps
- Circuit Breakers — daily-loss cap, consecutive-loss cap, max-drawdown stop, and soft drawdown suspension
- Spread Filter — skips entries on wide spreads
- MT5 Native — no DLLs, no external dependencies
How It Works
- Convert M15 candles to HeikenAshi and wait for a confirmed trend body
- Price pulls back to the trend mean and closes back on the trend side
- RSI + Bollinger + ATR + momentum filters all confirm the setup
- Position opens with fixed or risk-based lot sizing
- ATR trail follows the move; break-even locks the profit early
- Trail hit, HeikenAshi 2-bar flip, or pre-close time exit closes the position
Input Parameters
| Parameter | Default | Description |
| InpLots | 0.01 | Fixed base lot |
| InpRiskPercent | 2.0 | Risk % for dynamic lot sizing |
| InpEMA_Period | 50 | Trend mean EMA period |
| InpRSI_Period | 21 | RSI filter period |
| InpATRMultiplier | 2.0 | ATR trailing stop distance |
| InpTrailPercent | 25.0 | Trail profit retracement % |
| InpBETriggerPips | 15.0 | Break-even trigger (pips) |
| InpMaxDailyLoss | 100 | Daily loss cap ($) |
| InpMaxDDPct | 30.0 | Max drawdown stop (%) |
| InpUseHTFFilter | false | Optional H1 EMA100 filter |
| InpMagicNumber | 12345 | Isolates EA positions |
Recommended Settings: XAUUSDm (Gold), M15 timeframe. All parameters are customisable — test on your own broker data before going live, start with a conservative fixed lot. Risk Disclaimer: Trading leveraged products carries substantial risk of loss. This product is a trading tool — not investment advice. Always test on demo and never risk capital you cannot afford to lose. Past performance does not guarantee future results
