XauUsd Smart Strategy EA v4
- エキスパート
- バージョン: 4.0
- アクティベーション: 5
Intelligent Automation for XAUUSD Trading with Multi-Timeframe Analysis and Advanced Risk Management
A strategy designed to focus on quality, not quantity
XAUUSD Smart Strategy EA v4.00 is an advanced Expert Advisor for MetaTrader 5 designed to automate a trading strategy based on the combination of trend analysis, market strength, volatility, Multi-Timeframe confirmation, Price Action and dynamic risk management.
Designed primarily for XAUUSD, this system does not rely on a single entry signal. Before entering the market, it can analyse multiple conditions across different timeframes to identify stronger alignment between the main market trend and the entry opportunity.
The goal is to provide a selective, configurable and structured automated trading system, capable of adapting to changing market conditions through technical filters and integrated account protection tools.
WHAT MAKES XAUUSD SMART STRATEGY EA DIFFERENT?Many automated trading systems rely on a single signal: a moving average crossover, an overbought or oversold condition, or one isolated indicator.
XAUUSD Smart Strategy EA v4.00 has been designed with a different approach.
Before executing a trade, the system can combine multiple layers of analysis:
✓ Main trend analysis on H1.
✓ Optional H4 confirmation.
✓ Additional confirmations on M30, M15 and M5.
✓ Moving averages to identify market direction.
✓ ADX to measure trend strength.
✓ DI+ and DI- for directional confirmation.
✓ ATR to adapt risk management to market volatility.
✓ Fair Value Gaps as an additional Price Action filter.
✓ Optional early-entry system.
✓ Spread control before trading.
✓ Configurable trading hours.
✓ Dynamic Stop Loss and Take Profit.
✓ Intelligent Trailing Stop.
✓ Automatic Break-Even.
✓ Daily profit and loss limits.
✓ Maximum daily trade control.
✓ Internal drawdown protection.
✓ Integrated visual trading panel.
The result is a strategy designed to make decisions based on a combination of conditions rather than relying on a single indicator.
MULTI-TIMEFRAME ANALYSIS: A BROADER VIEW OF THE MARKETThe core of XAUUSD Smart Strategy EA is its Multi-Timeframe architecture.
The market may show a bullish signal on a 5-minute chart while the dominant trend on H1 or H4 remains bearish. Entering trades based only on the lower timeframe can increase exposure to signals that conflict with the broader market context.
For this reason, the EA can analyse the market from multiple perspectives.
H1: The Main Market Context
The H1 timeframe is used as one of the main references for determining the overall market structure.
The system analyses:
-
The relationship between the fast and slow moving averages.
-
Trend strength using ADX.
-
Direction using DI+ and DI-.
-
The price position relative to the longer-term trend.
Based on these conditions, the EA can classify the main market context as:
BULLISH
BEARISH
NEUTRAL OR INSUFFICIENT TREND STRENGTH
If market conditions are not suitable, the system can reject new trade opportunities.
H4: Higher-Timeframe Confirmation
For traders looking for additional filtering, the EA includes optional H4 confirmation.
This feature allows the system to verify whether the direction of a potential trade is also supported by a higher-timeframe structure.
For example, a buy signal may require not only a bullish setup on the entry timeframe, but also favourable market conditions on H4.
This provides an additional layer of confirmation before a trade is executed.
M30, M15 and M5: Alignment Before Entry
The strategy allows independent confirmations on M30, M15 and M5.
Each filter can be enabled or disabled according to the desired trading style.
The more timeframes that are enabled, the more selective the entry process can become.
This makes it possible to configure the EA from a more flexible approach to a highly selective Multi-Timeframe strategy.
The system can follow a structured process:
Main Trend → Confirmation → Alignment → Entry Signal → Execution
ADX: NOT EVERY TREND HAS THE SAME STRENGTHIdentifying market direction is not always enough.
A market may show a slightly bullish or bearish structure without having sufficient momentum to develop a meaningful directional movement.
For this reason, XAUUSD Smart Strategy EA uses ADX as a trend-strength filter.
The system can avoid opening new positions when:
-
The market is moving sideways.
-
Trend strength is insufficient.
-
Directional conditions do not meet the configured requirements.
DI+ and DI- are also used to help determine which side of the market has stronger directional pressure according to the strategy logic.
This adds another confirmation layer beyond a simple moving average crossover.
ATR: DYNAMIC MANAGEMENT BASED ON VOLATILITYOne of the most important aspects of an automated strategy is the ability to adapt to changing market conditions.
XAUUSD can experience periods of low volatility and, at other times, strong and fast price movements.
For this reason, the EA incorporates ATR into its trade-management logic.
ATR can be used to dynamically adapt several elements of the strategy.
Stop Loss
The protective distance can be calculated according to current market volatility.
This helps avoid using exactly the same Stop Loss distance under very different market conditions.
Take Profit
The profit target can also be dynamically calculated using a configurable ATR multiplier.
Trailing Stop
The trailing system can use volatility-based calculations to adjust position protection as the trade develops.
All of these parameters are configurable.
TWO RISK MANAGEMENT MODESDifferent traders and accounts may require different approaches to position sizing.
For this reason, XAUUSD Smart Strategy EA provides two main risk-management modes.
Fixed Lot Size
Ideal for traders who prefer to use a consistent trading volume.
The user defines the position size, while the EA can also apply an absolute maximum lot limit as an additional safety layer.
Percentage Risk
For more dynamic money management, the EA can automatically calculate the position size according to:
-
Account balance.
-
Configured risk percentage.
-
Stop Loss distance.
-
Tick value.
-
Tick size.
-
Minimum and maximum allowed volume.
-
Symbol volume step.
The resulting position size is adjusted to the trading specifications of the instrument.
This approach allows position sizing to be linked to the configured level of risk rather than relying only on a fixed lot size.
FAIR VALUE GAP: AN ADDITIONAL PRICE ACTION LAYERXAUUSD Smart Strategy EA includes an optional Fair Value Gap filter.
The system analyses previous candles to identify potential price imbalances that are compatible with the direction of a potential trade.
The filter can be used as an additional condition to increase entry selectivity.
Its logic can be applied to both bullish and bearish scenarios.
The user can also configure the number of candles used for the analysis.
For traders who want to combine technical indicators with Price Action concepts, this feature adds another analytical layer to the system.
OPTIONAL EARLY ENTRY SYSTEMThe EA includes an optional early-entry feature.
This function is designed to detect certain situations in which moving averages begin to converge before a complete crossover occurs.
The system analyses the distance between the moving averages and uses a configurable maximum threshold.
When conditions are compatible with the main market direction, the EA can evaluate a potential opportunity before waiting for full crossover confirmation.
This feature can be enabled or disabled.
This allows the user to choose between:
MORE CONFIRMATION → Wait for a more complete signal.
EARLIER MARKET PARTICIPATION → Allow opportunities to be evaluated before a full crossover is confirmed.
SPREAD CONTROLSpread can have a direct impact on the quality and cost of a trade entry.
For this reason, the EA checks the current spread before opening a new position.
If the spread exceeds the configured limit, the system can remain on standby.
This helps avoid opening new trades when entry costs do not meet the requirements established by the user.
The maximum spread is fully configurable.
ADVANCED TRAILING STOPOnce a position is open, XAUUSD Smart Strategy EA includes several tools for managing the trade.
The user can choose between different approaches.
Dynamic ATR-Based Trailing
The Stop Loss distance can be adjusted according to market volatility.
This approach allows the trailing logic to take changing market conditions into account.
Step Trailing
The Stop Loss can be moved progressively using configurable steps.
As price moves in favour of the position, the system can update the protective level in stages.
The trailing system can also be configured to activate only after the trade reaches a minimum profit threshold.
AUTOMATIC BREAK-EVENWhen a trade moves favourably, the EA can automatically move the Stop Loss towards the entry area.
This feature is designed to reduce exposure on a position that has already achieved a meaningful favourable movement.
Break-Even can be enabled or disabled through the EA settings.
TREND REVERSAL EXITMarket conditions can change while a position remains open.
To help manage this situation, the EA includes an optional trend-reversal exit feature.
If the main market trend no longer supports the direction of an open position, the system can close that trade.
For example:
A buy position can be closed if the main context changes to bearish.
A sell position can be closed if the main context changes to bullish.
This feature allows changes in the main market structure to become part of the position-management process.
DAILY ACCOUNT PROTECTIONAn automated strategy should not only search for opportunities. It should also have rules for when to stop.
XAUUSD Smart Strategy EA includes several configurable daily limits.
Maximum Daily Loss
When the daily result reaches the configured loss limit, the system can:
-
Close the EA's positions.
-
Block new trade entries.
-
Remain inactive until the next daily reset.
Daily Profit Target
A daily profit target can also be configured.
When the selected target is reached, the system can stop opening new positions for the remainder of the trading day.
Maximum Daily Trades
The user can define a maximum number of trades per day.
Once this limit is reached, the EA stops opening new positions.
These features provide additional control over the system's daily activity and market exposure.
ADVANCED DRAWDOWN PROTECTIONThe EA includes an internal protection system based on account equity.
The user can configure a maximum drawdown threshold.
When this protection is triggered, the system can enter a lockout mode, close positions belonging to the EA and prevent new trades.
This feature can use either a user-defined initial capital reference or the equity available when the system starts.
SHARED LOCKOUT SYSTEMA particularly useful feature for accounts running multiple automated systems is the shared lockout mechanism.
The EA can use a MetaTrader 5 global variable to detect a common account-protection state.
If another compatible system activates this lockout, XAUUSD Smart Strategy EA can recognise the condition and stop its own trading activity.
This creates an additional layer of coordination and protection when multiple EAs are running on the same account.
FULLY CONFIGURABLE TRADING HOURSThe EA allows the user to define when the system can search for new opportunities.
You can configure:
-
Trading start time.
-
Trading end time.
-
Enable or disable the time filter.
-
Optionally close positions outside the selected trading window.
This allows the strategy to be adapted to different market sessions and liquidity conditions.
NEW-CANDLE BASED ENTRY LOGICThe search for new entries is performed in a controlled way when a new candle appears on the configured entry timeframe.
This helps maintain a structured decision process based on candle development and prevents the system from repeatedly evaluating the same entry signal.
At the same time, position-management features such as Trailing Stop and Break-Even can continue monitoring open trades.
INDEPENDENT TRADE MANAGEMENT WITH MAGIC NUMBEREach trade opened by the EA can be identified using a configurable Magic Number.
This makes it possible to distinguish the EA's positions from:
-
Manual trades.
-
Other Expert Advisors.
-
Other strategies running on the same account.
The management system is designed to act only on positions associated with the configured symbol and Magic Number.
PROFESSIONAL INTEGRATED HUD PANELXAUUSD Smart Strategy EA includes an integrated visual panel directly on the chart.
This panel allows the trader to monitor the status of the system without constantly checking multiple indicators.
The information is organised into different sections.
MARKET
Displays:
-
Current price.
-
Spread.
-
Entry timeframe.
-
Trading status.
TREND
Displays:
-
Main market direction.
-
ADX.
-
DI+ and DI-.
-
General trend context.
ENTRY
Displays:
-
Detected entry direction.
-
ATR.
-
Fair Value Gap status.
-
Early-entry status.
CONFIRMATION
Displays:
-
Multi-Timeframe alignment.
-
M30 confirmation.
-
M15 confirmation.
-
M5 confirmation.
POSITION
Displays:
-
Position type.
-
Number of open positions.
-
Floating profit or loss.
-
Break-Even status.
RISK
Displays:
-
Daily result.
-
Equity.
-
Number of trades.
-
Current risk configuration.
The panel can also help identify whether the EA is:
READY TO TRADE
WAITING FOR CONFIRMATION
PAUSED BY DAILY LIMITS
LOCKED BY ACCOUNT PROTECTION
WAITING FOR ACCEPTABLE SPREAD CONDITIONS
OUTSIDE THE TRADING WINDOW
XAUUSD Smart Strategy EA v4.00 is not limited to a single trading configuration.
The user can adapt numerous parameters according to:
-
Trading style.
-
Account size.
-
Broker conditions.
-
Desired risk level.
-
Preferred timeframes.
-
Required level of signal filtering.
Main configurable parameters include:
Trend and Analysis
-
Trend timeframe.
-
Entry timeframe.
-
Fast moving average.
-
Slow moving average.
-
Long-term trend moving average.
-
ADX settings.
-
Multi-Timeframe confirmations.
Risk Management
-
Fixed lot size.
-
Percentage risk.
-
Maximum lot size.
-
Dynamic Stop Loss.
-
Fixed Stop Loss.
-
ATR multipliers.
-
Maximum allowed spread.
Position Management
-
Dynamic Take Profit.
-
Trailing Stop.
-
Step Trailing.
-
Break-Even.
-
Trend-reversal exit.
Account Protection
-
Maximum daily loss.
-
Daily profit target.
-
Maximum daily trades.
-
Maximum drawdown.
-
Shared lockout.
Price Action
-
Fair Value Gap filter.
-
Number of candles analysed.
-
Early-entry system.
-
Maximum convergence distance.
Trading Hours
-
Start time.
-
End time.
-
Time filter.
-
Close positions outside trading hours.
Visual Panel
-
Position.
-
Size.
-
Font.
-
Transparency.
-
Borders.
-
Visibility.
In simplified form, XAUUSD Smart Strategy EA follows a structured decision process:
1. PROTECT THE ACCOUNT
Checks daily limits, drawdown conditions and account-protection lockouts.
2. ANALYSE THE MARKET CONTEXT
Evaluates the main trend and overall market strength.
3. SEARCH FOR ALIGNMENT
Checks the selected Multi-Timeframe confirmations.
4. WAIT FOR A SIGNAL
Looks for a valid moving average crossover or an early-entry opportunity when that feature is enabled.
5. APPLY ADDITIONAL FILTERS
Checks spread, trading hours, Fair Value Gap conditions and operational limits.
6. CALCULATE RISK
Determines position size and protective distances.
7. EXECUTE THE TRADE
Opens a position only when the configured conditions are satisfied.
8. MANAGE THE POSITION
Monitors Trailing Stop, Break-Even and potential changes in the main trend.
IDEAL FOR TRADERS LOOKING FOR✓ Automated trading based on multiple filters.
✓ Multi-Timeframe market analysis.
✓ ATR-based risk management.
✓ Trend and market-strength filters.
✓ Price Action through Fair Value Gaps.
✓ Daily trade limits.
✓ Daily profit and loss controls.
✓ Internal drawdown protection.
✓ Automatic Trailing Stop and Break-Even.
✓ A professional integrated trading panel.
✓ A structured and configurable automated trading environment.
ANALYSIS
✓ Multi-Timeframe architecture.
✓ H1 main market context.
✓ Optional H4 confirmation.
✓ M30, M15 and M5 confirmations.
✓ Moving averages.
✓ ADX.
✓ DI+ and DI-.
✓ Long-term trend filter.
PRICE ACTION
✓ Fair Value Gap analysis.
✓ Configurable filter.
✓ Optional early-entry system.
RISK MANAGEMENT
✓ Fixed lot mode.
✓ Percentage risk mode.
✓ Maximum lot protection.
✓ ATR-based Stop Loss.
✓ Fixed Stop Loss option.
✓ Dynamic Take Profit.
✓ Spread control.
POSITION MANAGEMENT
✓ ATR-based Trailing Stop.
✓ Step Trailing.
✓ Automatic Break-Even.
✓ Trend-reversal exit.
ACCOUNT PROTECTION
✓ Daily loss limit.
✓ Daily profit target.
✓ Maximum daily trades.
✓ Drawdown protection.
✓ Shared lockout system.
OPERATIONAL CONTROL
✓ Configurable trading hours.
✓ Magic Number management.
✓ Independent position management.
✓ New-candle based entry logic.
VISUAL MONITORING
✓ Integrated HUD panel.
✓ Real-time market information.
✓ Trend monitoring.
✓ Multi-Timeframe confirmation status.
✓ Position information.
✓ Risk information.
More Analysis. More Control. More Protection.
XAUUSD Smart Strategy EA v4.00 brings together technical analysis, Multi-Timeframe confirmation, Price Action concepts, dynamic position management and account-protection tools in one automated trading system.
Its design allows the strategy to be configured for different trading approaches, ranging from more flexible setups to highly selective configurations with multiple confirmation filters.
Instead of relying on a single signal, the EA can analyse the market from different perspectives before executing a trade.
TREND + STRENGTH + CONFIRMATION + VOLATILITY + PRICE ACTION + RISK MANAGEMENT
All supported by an integrated visual panel and a comprehensive set of tools designed to provide greater control over automated trading.
RISK DISCLAIMER
Trading financial markets involves significant risk and may result in financial losses. No automated system, indicator or trading strategy can guarantee profits or future performance.
Historical results, backtests, optimisations and demo-account performance do not guarantee the same results under live market conditions.
The performance of the EA may be affected by factors including market volatility, spread, slippage, broker execution, gaps, economic news and changing market conditions.
Proper testing and responsible risk management are strongly recommended before trading with real capital.
