Oryx Gold
- Experts
-
Mykola Zatsarynnyy
Independent developer of Expert Advisors for MetaTrader 5.
I build rule-based trading systems where every order is sent with a stop loss and a take profit. No grid, no martingale, no averaging. - Version: 1.2
- Activations: 10
Oryx Gold is a fully automated Expert Advisor for XAUUSD on MetaTrader 5. It trades breakouts of swing highs and swing lows with pending stop orders. Every order is sent with a stop loss and a take profit. It does not use grid, martingale or averaging.
How it works
The EA looks for price levels where gold has turned before: swing highs and swing lows on the H1, H4 and D1 charts. It places a buy stop just below a swing high and a sell stop just above a swing low. If price reaches the order, the trade opens in the direction of the breakout. If price does not get there, nothing happens.
Six strategies run side by side. Each one has its own timeframe, level definition, stop loss and take profit.
- Strategy 1 uses the highest high and the lowest low of the last 480 hours on H1.
- Strategies 2 and 3 use swing highs and lows on the daily chart.
- Strategies 4, 5 and 6 use swing highs and lows on the 4-hour chart.
A level that has already been traded is not traded again. The strategy waits for a new swing to form.
Trade management
The stop loss and the take profit are set when the order is placed. The take profit is not moved afterwards. After a first favourable move, the stop is placed just beyond the entry price (breakeven). From there the stop follows price at a fixed distance (trailing stop) and never moves back.
Protection filters
- News filter. Closes positions and cancels pending orders 5 minutes before high-impact USD news and waits 5 minutes after it. It uses the economic calendar built into MetaTrader 5, so no web address has to be added to the terminal settings.
- Non-Farm Payrolls filter. Stays out of the market around the NFP release on the first Friday of the month.
- Weekend. Closes positions and orders one hour before the Friday close.
- Market hours. Trading sessions are read from the broker, so the EA works with any server time zone. Pending orders are removed before the daily break and placed again after the market reopens.
- Spread filter. No new orders while the spread is above the maximum you set.
- Daily drawdown limit. Optional. When the daily loss you set is reached, the EA closes its trades and stops until the next day.
Information panel and notifications
A compact panel on the chart shows the result of the day, open positions and pending orders, the current session and spread, the active filters, the status of the EA and the next high-impact news. The EA can send a popup, a push notification or an email when a trade opens or closes.
Backtest
Strategy Tester, XAUUSD, 1 January to 20 November 2026, every tick based on real ticks, fixed lot 0.01, deposit 10,000 USD, news filter not active: 663 trades, 78.73% winning trades, profit factor 1.89, maximum equity drawdown 280.38 USD (2.44%). The average loss (11.63 USD) is larger than the average win (5.93 USD), the largest single loss was 77.15 USD and the longest losing streak was 22 trades.
These are Strategy Tester results on historical data, not real trading results. Past results do not guarantee future results.
Recommended setup
- Symbol: XAUUSD. The EA is designed and tested for gold only.
- Chart timeframe: any. The EA reads H1, H4 and D1 data by itself.
- Account: hedging is recommended. On netting accounts the EA runs with one position at a time.
- Deposit: at least 1,000 USD for each 0.01 lot.
- Broker: low spread on gold. A VPS is recommended, because the EA works with pending orders and should run without interruption.
- Attach the EA to one XAUUSD chart only.
Input parameters
General
- Lot mode: fixed lot or risk percent of balance
- Fixed lot size
- Risk per trade, percent of balance
- Magic number
- Max spread allowed for new orders
- Max daily drawdown percent (0 = off)
Strategies
- Strategy 1 to Strategy 6: on or off
News filter
- High-impact USD news filter: on or off
- Minutes before news and minutes after news
- Close open positions before news
- Non-Farm Payrolls filter: on or off
Market hours
- Close everything before the weekend
- Close positions before the daily break
- Broker GMT offset, winter and summer (used in backtests only)
Notifications
- Notify when a trade opens, notify when a trade closes
- Popup, push notification, email
Panel
- Show the panel, panel position
Notes on testing
The MetaTrader 5 economic calendar is not available in the Strategy Tester, so the news filter does not work in backtests. The Non-Farm Payrolls filter works in backtests: set the broker GMT offset inputs for it. In live trading the server time is detected automatically.
Support
Questions and support requests are answered in the Comments tab of this product and through private messages on MQL5.
Risk warning
Trading leveraged instruments involves a high level of risk. This Expert Advisor can have losing trades and losing periods. Test it on a demo account first and use a lot size that fits your account.
