Aim Gold Ea
- Experts
-
Jony Islam
I am Jony Islam, Founder and MQL5 EA Developer at ThnEA, specializing in automated trading systems for MetaTrader 5.
My work focuses on algorithmic trading, Expert Advisor development, Gold (XAUUSD), Forex, systematic trade execution, and risk management. - Versão: 1.19
- Ativações: 18
Aim Gold Ea - Pattern-Driven Trading System for XAUUSD on MetaTrader 5
Aim Gold Ea is a professional-grade Expert Advisor developed for trading XAUUSD on the MetaTrader 5 platform. It combines a pattern-driven decision engine with a complete risk management framework, an optional economic news filter, and three independent trailing stop methodologies. The system is built for traders who value structured, rule-based execution over discretionary decisions.
WHAT PATTERN-BASED TRADING MEANS IN THIS SYSTEM
Pattern-based trading refers to the process of recognizing recurring price formations and sequences in the market and comparing them with historical precedents. Aim Gold Ea does not rely on a single indicator or a fixed grid of levels. Instead, it evaluates how price has behaved in comparable situations and uses that information to decide whether a trading opportunity exists. This approach allows the system to remain adaptive across changing market conditions while keeping every decision transparent and rule-based.
HOW THE SYSTEM OPERATES
Aim Gold Ea continuously monitors the XAUUSD symbol selected by the user. When market conditions match a recognized scenario, the EA evaluates the direction, the potential take profit and stop loss ranges, and the prevailing risk parameters. If all conditions are satisfied, a market order is placed with the user-defined comment, magic number, and lot sizing method. The EA then manages the position according to the selected trailing stop method and risk protection rules. Every action is controlled by user-configurable inputs, so the behaviour of the EA remains predictable and auditable.
MONEY MANAGEMENT
Aim Gold Ea provides five distinct lot-sizing methods so that the user can align the EA with any account size or risk profile:
-
Risk percentage of balance: calculates the lot size from a fixed percentage of the current account balance.
-
Fixed lot size: uses the same lot size for every trade regardless of account balance.
-
Cash amount risk: calculates lot size from a fixed monetary risk per trade.
-
Fixed equity percentage: sizes positions from a fixed percentage of account equity.
-
Risk-to-reward based: derives the lot size from the intended risk-reward relationship of the setup.
All methods respect the minimum and maximum volume limits of the broker, and the EA automatically normalizes the lot size to the symbol's volume step.
RISK PROTECTION
The EA includes several layers of account protection:
-
Weekend close: optionally closes all open positions before the weekend at a user-defined hour.
-
Maximum drawdown guard: monitors the account drawdown and can close all positions if a specified percentage is reached.
-
Maximum daily loss limit: prevents further trading for the day if a specified monetary loss is exceeded.
-
Hedging control: allows or blocks opposite-side positions according to the user's preference.
-
Direction filter: restricts trading to buy-only, sell-only, or both directions.
ECONOMIC NEWS FILTER
An optional news filter can block trading during high, medium, or low impact economic events. Each impact level is controlled independently, so the user can choose how conservative the EA should be around news releases. The filter is disabled by default and uses the broker's economic calendar feed.
TRAILING STOP MANAGEMENT
Aim Gold Ea offers three trailing stop methodologies, each with independent configuration:
-
Fixed pip trailing: trails the stop loss by a fixed distance once the trade reaches a configurable activation level.
-
ATR-based trailing: calculates the trailing distance dynamically from the Average True Range, using a configurable period, timeframe, and multiplier.
-
Previous candle trailing: uses the high or low of the previous candle on a selected timeframe as the trailing reference.
The trailing stop module operates independently of the entry logic, so the user can enable, disable, or tune it without affecting the core decision engine.
EXECUTION CONTROL
The EA includes several execution controls designed for prop-firm and live trading environments:
-
Entry price randomizer: optionally randomizes the execution price to produce a more natural order flow.
-
Symbol suffix resolution: automatically resolves broker-specific suffixes for XAUUSD, so the EA works on brokers that use symbols such as XAUUSD.a, XAUUSDm, or similar variants.
-
Custom magic number: uniquely identifies the EA's trades on the account.
-
Custom order comment: attaches a user-defined comment to every order.
INPUT PARAMETERS
The full input list is organised into logical groups, making the EA easy to configure:
-
General settings: symbol list, automatic suffix resolution, magic number, order comment.
-
Money management: lot calculation method, risk percentage, fixed lot size, cash risk amount.
-
Risk protection: weekend close hour, maximum drawdown percentage, close-on-drawdown toggle, maximum daily loss amount.
-
News filter: high impact, medium impact, and low impact blocking toggles.
-
Trailing stop: enable/disable toggle, trailing method, activation distance, fixed distance, ATR period, ATR timeframe, ATR multiplier, candle timeframe.
-
Execution control: price randomizer toggle, hedging toggle, trade direction selection.
Every parameter includes a clear description in the input dialog, so the user always knows which behaviour each setting controls.
RECOMMENDED SETUP
Aim Gold Ea is designed to run on the XAUUSD symbol. Before using the EA on a live account, it is strongly recommended to:
-
Test the EA on a demo account with the same broker and account type that will be used for live trading.
-
Verify that the symbol name in the input list matches the broker's symbol after suffix resolution.
-
Confirm that the magic number is unique on the account if other EAs are used.
-
Review the risk protection settings and adjust them to the account size and the user's risk tolerance.
-
Ensure that the broker's economic calendar feed is available if the news filter is enabled.
IMPORTANT NOTES
Aim Gold Ea is a technical trading tool. It does not guarantee profits, and it does not eliminate trading risk. Trading XAUUSD and other CFD instruments involves substantial risk, and losses can exceed the initial deposit in extreme market conditions. Past performance, backtesting results, and historical pattern behaviour do not guarantee future results. The EA's performance can be affected by broker execution quality, spread, slippage, swap, and liquidity conditions. The user is responsible for the correct configuration of all inputs, for monitoring the EA, and for applying appropriate risk management. Please test thoroughly on a demo account before deploying on a live account.
SUMMARY
Aim Gold Ea brings together a pattern-driven decision engine, a flexible money management module, multiple layers of risk protection, an optional economic news filter, and three trailing stop methodologies into a single, well-organised Expert Advisor for XAUUSD on MetaTrader 5. Every component is controlled through clearly described inputs, allowing the user to tailor the behaviour of the EA to their own trading approach.
