MQLXpert Gold One Candle
- Uzmanlar
-
Luke John Smith
I'm a full-time MQL4/MQL5 developer and trader with over 5 years of experience developing automated trading systems.
I build Expert Advisors, indicators, dashboards and trading tools for traders who want reliable automation based on clearly defined rules.
I specialise in: - Sürüm: 1.10
Automated XAUUSD One-Candle Scalping Expert Advisor for MetaTrader 5
MQLXpert Gold One Candle is a focused automated trading system developed specifically for Gold (XAUUSD).
The EA analyses a predefined M15 trigger candle and monitors the market for its long-entry conditions. When the required conditions are met, the EA automatically calculates the entry, Stop Loss, Take Profit and position size before managing the setup.
The strategy is intentionally long-only. Sell trading is not used.
Key Features
• Developed specifically for XAUUSD
• M15 strategy by default
• One trading setup per day
• Automated pending-order execution
• Adjustable trigger time
• Automatic Stop Loss and Take Profit calculation
• Adjustable Risk-to-Reward target
• Risk Percentage position sizing
• Optional Fixed Lot position sizing
• Automatic pending-order expiry
• Restart and duplicate-trade protection
• Broker volume and margin validation
• Live MQLXpert dashboard
• Clear setup and trading status information
• Magic Number support
• Custom trade comment
Trading Strategy
The EA uses a predefined daily trigger candle as the basis for its trading setup.
Once the trigger candle has completed, the EA calculates the required price levels and monitors the market for the strategy's bullish entry conditions.
If a valid setup is generated, the EA prepares the trade automatically.
The system is designed around one controlled Gold setup per trading day, rather than continuously entering the market.
The exact internal entry logic is proprietary.
Risk Management
The EA includes two position-sizing modes:
Risk Percentage
The lot size is calculated automatically according to the selected percentage of account equity and the distance between the entry and Stop Loss.
Default:
Risk: 1.0%
Fixed Lots
A fixed lot size can alternatively be selected.
The EA also checks broker requirements including:
• Minimum lot size
• Maximum lot size
• Volume step
• Tick size
• Stop distance requirements
• Available margin
• Trading permissions
Take Profit
Take Profit is calculated as a multiple of the initial trade risk.
Default:
Take Profit Factor: 1.5R
This can be adjusted through the EA inputs.
Pending Order Expiry
Trading setups do not remain active indefinitely.
The pending setup automatically expires after the configured period if the required entry has not occurred.
Default:
3 hours
This prevents the EA from entering significantly later than the intended trading window.
Daily Trade Protection
The EA is designed to process only one setup per day.
Restart protection checks existing and historical orders so restarting MetaTrader, changing charts or reinitialising the EA does not unintentionally create another setup for the same trading day.
Dashboard
The integrated dashboard displays important live information including:
• Current strategy status
• Server trigger time
• Trading timeframe
• Trigger candle range
• Entry price
• Stop Loss
• Take Profit
• Calculated lot size
• Risk percentage
• Pending-order expiry
• Daily setup availability / status
Possible dashboard states include:
• Waiting for trigger candle
• Monitoring bullish breakout
• Setup triggered
• Setup expired
• Setup already triggered today
Input Parameters
Strategy Settings
Timeframe
Trading timeframe used by the strategy.
Default: M15
Trigger Hour
Server-time hour used for the daily trigger.
Default: 16
Trigger Minute
Server-time minute used for the daily trigger.
Default: 30
TP Factor
Take Profit expressed as a multiple of the initial trade risk.
Default: 1.5
Pending Expiry Hours
Maximum time the daily setup remains active.
Default: 3 hours
Risk Management
Position Size Mode
Choose between Risk Percentage and Fixed Lots.
Risk Percent
Percentage used for automatic position sizing.
Default: 1.0%
Fixed Lots
Lot size used when Fixed Lot mode is selected.
Trade Settings
Magic Number
Unique identifier for EA trades.
Trade Comment
Custom order comment.
Dashboard
Show Dashboard
Enable or disable the dashboard.
Dashboard X / Y
Adjust the dashboard position on the chart.
Recommended Setup
Symbol: XAUUSD
Timeframe: M15
Default Risk: 1.0%
Default TP Factor: 1.5R
The trigger time is based on broker server time. Users should confirm their broker's server time before changing the default settings.
Historical Strategy Testing
A historical MetaTrader 5 Strategy Tester simulation using the default 1% Risk and 1.5R settings produced:
• Initial Deposit: $100,000
• Total Trades: 638
• Winning Trades: 44.36%
• Profit Factor: 1.19
• Maximum Equity Drawdown: 15.67%
• History Quality: 100%
These figures represent historical simulation results only.
Historical results do not guarantee future performance. Trading financial markets carries a high level of risk. Profits are not guaranteed and financial losses can occur. Users should perform their own testing and analysis before trading on a live account.
Important Information
MQLXpert Gold One Candle is designed specifically around Gold trading conditions.
Broker specifications, spreads, execution, liquidity and server times can differ between brokers and may affect results.
Always test the EA using your own broker's historical data and trading conditions before considering live use.
Developed by MQLXpert
Code for Traders. By Traders.
