Queen Gold
- Experts
- Version: 3.0
- Activations: 5
QUEEN GOLD
Previous Day Breakout EA for XAUUSD
© Panyanon H. Made In Thailand
What is Queen Gold?
Queen Gold is a fully automated Expert Advisor built exclusively for XAUUSD (Gold) trading on the M30 timeframe. The strategy is based on one of the most reliable price action concepts in professional trading — Previous Day High/Low Breakout.
Every day, gold respects its previous day structure. When price breaks above the previous day High or below the previous day Low, institutional momentum follows. Queen Gold captures that momentum from the first breakout candle with precise ATR-based entries and exits.
No martingale. No grid. No dangerous money management. Just pure breakout logic backed by dynamic ATR risk management.
How It Works
Queen Gold records the previous day High and Low at the start of every new trading day. When price breaks above the previous High, a Buy order is placed. When price breaks below the previous Low, a Sell order is placed.
Every entry is filtered by EMA(200) to ensure trades are placed only in the direction of the prevailing trend. Buy trades are taken only when price is above EMA(200). Sell trades are taken only when price is below EMA(200). This eliminates low-quality trades against the trend.
Stop Loss and Take Profit are calculated dynamically using ATR(14), automatically adapting to current market volatility. No fixed pip values. No guessing. The EA adjusts to whatever the market is doing that day.
Session Coverage
Queen Gold operates across two session windows to maximize trade opportunities while avoiding low-liquidity periods.
The Asian Session runs from GMT 01:00 to 08:00, capturing early momentum moves before London opens. The London and New York Session runs from GMT 08:00 to 20:00, covering peak liquidity hours where the highest quality breakouts occur. On Fridays, the EA automatically stops trading at GMT 17:00. No positions are held over the weekend.
Protection Systems
Queen Gold includes multiple layers of account protection that run on every tick.
A Daily Loss Limit pauses the EA automatically when the daily loss reaches the set percentage of balance. The EA resets automatically the following day. A Break-Even System moves the Stop Loss to the entry price plus a small buffer once profit reaches a set ATR distance, making the trade risk-free. A Trailing Stop is available as an optional feature to lock in progressive profits as price moves further in the trade direction.
Before every single order, the EA verifies account balance, equity, free margin, and margin level. If any condition is not met, the trade is skipped entirely. Slippage protection rejects any order where the fill price differs from the requested price by more than 30 points. The filling mode is detected automatically and works on any MT5 broker without manual configuration.
Visual Tools
Queen Gold transforms the chart into a professional trading workspace. The main chart displays real-time ATR-based SL and TP zone lines, Previous Day High and Low levels, and the EMA(200) trend reference line — all color-coded and updated on every tick. A dashboard in the upper left shows session status, EA status, trend direction, break-even status, trailing stop status, daily profit and loss, trade count, win rate, and profit factor. The Queen Gold logo appears in the upper right corner of the chart.
Risk Management Philosophy
Every trade risks exactly the percentage of current account balance set in RiskPercent. Lot size is calculated automatically based on the ATR-based stop loss distance and current account balance. No trade ever risks more than the set percentage regardless of market conditions. A hard lot cap provides an absolute ceiling as an additional safety layer.
Conservative traders can use 1% risk for steady, controlled growth. Moderate traders can use 2% for a balance between growth and risk. Aggressive traders can use 3% for maximum return potential with higher drawdown tolerance.
Requirements
Queen Gold requires MetaTrader 5 and is designed exclusively for the XAUUSD symbol on the M30 timeframe. A minimum deposit of 100 USD is required though 500 USD or more is recommended for comfortable operation. A leverage of at least 1:100 is required. The EA works on any MT5 broker with ECN or standard account types. A VPS is strongly recommended to ensure 24-hour uninterrupted operation.
Installation
Download the Queen Gold ex5 file and place it in the MQL5 Experts folder. Download the queen gold logo bmp file and place it in the MQL5 Images folder. Attach the EA to a XAUUSD M30 chart, enable Algo Trading, and the EA begins operating immediately.
Key Settings
AllowedAccount locks the EA to a specific account number. Setting this to zero disables the lock. RiskPercent sets the risk per trade as a percentage of current balance with a default of 1.0. MaxDailyLossPercent sets the maximum daily loss before the EA pauses with a default of 3.0. ATR Period sets the ATR calculation period with a default of 14. SL Multiplier sets the stop loss distance as a multiple of ATR with a default of 1.2. TP Multiplier sets the take profit distance as a multiple of ATR with a default of 3.0. UseTrendFilter enables the EMA(200) trend filter and is enabled by default. UseBreakEven enables the break-even system and is enabled by default. UseTrailingStop enables the trailing stop and is disabled by default for conservative operation. UseAsianSession enables Asian session trading and is enabled by default.
Important
Past performance does not guarantee future results. Always test on a Demo account before live trading. Trading involves substantial risk and may not be suitable for all investors.
Queen Gold — Trade Smart, Trade Gold © Panyanon H. Made In Thailand
