Helios XAU
- Uzmanlar
- Ignacio Agustin Mene Franco
- Sürüm: 1.0
- Etkinleştirmeler: 10
HELIOS XAU — Expert Advisor for XAU/USD | M5
Version 1.0 · Developed by WorldInversor · MQL4 / MetaTrader 4
Overview
HELIOS XAU is an algorithmic Expert Advisor specifically designed to trade the XAU/USD pair (spot gold) on the M5 timeframe. It combines RSI divergence detection, MACD momentum confirmation, and a dynamic trailing engine with order frequency control. Its modular architecture is organized into internal registers similar to the engine core.
Signal Engine
The EA operates under a double confirmation system before executing any order:
RSI Divergence Processor — The analytical core of the system. It detects bullish and bearish divergences by comparing price swing highs/lows against RSI pivots (14). A bullish divergence is confirmed when the price forms a lower low while the RSI forms a higher low (bearish exhaustion signal). Bearish divergence occurs in the opposite direction. The module also incorporates readings of extreme zones (overbought/overbold) and RSI position bias relative to the 50 level. Detected divergences are visually rendered on the chart with arrows and real-time trend lines.
MACD Signal Bus — A secondary momentum filter that evaluates the crossover between the MACD line (12/26) and the signal line (9). Entry is only enabled if the MACD confirms the same direction as the RSI, significantly reducing false signals. Both filters can be activated or deactivated independently.
Order and Risk Management
Order Type: Buy Stop / Sell Stop, placed above/below the current price respecting a configurable delta distance.
Stop Loss: Fixed in points, defined by the EXC_StopLoss parameter.
Dynamic Trailing Stop: A non-linear trailing engine that scales the protection level based on accumulated profit. The trailing range adjusts proportionally to the distance traveled since the opening, with configurable start and maximum values.
Spread Control: Configurable maximum spread gate (EXC_MaxSpread) that blocks the opening if the spread exceeds the set threshold—essential for gold during periods of high volatility.
Frequency Bus — Overtrading Control
Time gate system with two independent modes:
Bar Mode: Prevents opening new orders until a minimum number of bars have elapsed since the last trade (default: 5 M5 candles).
Time Mode: An alternative based on calendar minutes instead of bars.
Both modes can be combined or used separately, acting as an anti-overtrading filter in sideways market conditions.
Trading Window: The EA respects a configurable time window (StartHour / EndHour), allowing you to restrict trading to the most liquid gold session blocks: London, New York, and their overlapping periods.
HELIOS XAU was built with a philosophy of precision over volume: it operates less, but with greater signal confluence.
