Legend Gold
- Experts
-
Blessing Samuel Olasunkanmi
Forex trader, MQL5 developer and founder of OlaDigital Nexus Framework, a registered Nigerian business focused on programming, trading and e-learning. - Versione: 1.0
Legend Gold is a trend-continuation Expert Advisor for gold (XAUUSD) on MetaTrader 5. It waits for a clear trend, enters on a momentum candle in the trend direction, and manages every trade with a stop loss, take profit, break-even and trailing stop. It trades one position at a time and focuses on disciplined entries and capital protection.
A clean on-chart panel shows the current market condition, the open position and today's results, so you always know what the robot is doing and why.
HOW IT TRADES
- Trend: fast EMA above slow EMA, with price on the right side of the trend EMA (9 / 21 / 50 by default)
- Momentum: a candle closes strongly in the trend direction, with RSI inside a healthy zone (not overbought or oversold)
- Strength: ADX must confirm a trending market, and +DI / -DI must agree with the trade direction
- Direction filter: trades only in the direction of the SuperTrend
- One trade at a time: a new trade only opens when the previous one has closed
TRADE MANAGEMENT
- Stop loss and take profit placed on the server with every order (based on ATR, adjustable)
- Break-even: the stop moves to entry when the trade is halfway to its target
- Trailing stop: locks in profit as price moves further in your favour
- Time stop: closes trades that take too long to develop
RISK MANAGEMENT
- Lot size by equity (default 0.0025 lot per 1,000 of equity, about 0.02 on an 8,000 account), by risk %, or your own fixed lot
- Maximum lot per trade and maximum risk per trade, so the lot never becomes too large
- Daily loss limit: trading stops for the rest of the day when it is reached
- Maximum trades per day and a minimum time between trades, to avoid overtrading
- Short pause after each trade and a longer pause after several losses in a row
- No martingale, no grid, no averaging, no lot increase after losses
FILTERS
- Gold spread limit and volatility spike filter
- London and New York sessions only (adjustable), daily rollover block, late-Friday cut-off
- High-impact news filter using the MT5 Economic Calendar, with an option to close the open trade before the news (live trading only; the calendar is not available in the Strategy Tester)
ON-CHART PANEL
- Market condition: GOOD / FAIR / POOR score, trend, ADX strength, SuperTrend, volatility, spread, session and news
- Position: direction, lot, profit, entry / stop loss / take profit and progress to the target
- Today: trades, wins and losses, profit, and how much of the daily loss limit is used
- Status line explaining what the robot is doing right now
- Clean dark chart colours, restored when the robot is removed
RECOMMENDATIONS
- Symbol: XAUUSD (it also works on other symbols)
- Timeframe: the robot uses M5 internally; you can attach it to any chart timeframe
- Account: hedging or netting, low-spread account recommended
- Run it continuously, for example on a VPS
- Test it on a demo account before using it on a live account
MAIN INPUTS
- Lot size: your own fixed lot (0 = automatic)
- Automatic lot mode: by equity, risk % or fixed lot; lot per 1,000 equity; risk %; maximum lot; maximum risk %
- Strategy: timeframe, EMA periods, RSI levels, ADX filter, SuperTrend period and multiplier
- Stop loss and take profit (x ATR), break-even, trailing start and distance, time stop
- Filters: gold maximum spread, maximum spread in points, volatility spike limit, session hours, rollover and Friday settings
- News: on/off, minutes before and after, close before news
- Safety: daily loss limit, maximum trades per day, minimum minutes between trades, pauses after wins, losses and losing streaks
- Display: panel on/off, clean chart colours
IMPORTANT
Trading involves risk. Legend Gold does not guarantee profits, and past results do not guarantee future results. Always test on a demo account first and use risk settings that suit your account.

