OneSet X
- Experts
-
Ademuyiwa Akinwande Oyekan
I am Adam, an independent developer of trading tools for MetaTrader 5, based in United Kingdom. I focus on rule-based Expert Advisors for XAUUSD with clear risk controls. - Version: 1.0
OneSet X is a moving average cross trend Expert Advisor for MetaTrader 5. It trades the cross of a fast and a slow exponential moving average, waits for one confirmation candle before entering, only trades in the direction of the daily trend, and closes and reverses the trade on the opposite cross. The default settings are made for XAUUSD on the M15 chart.
OneSet X is free and fully functional. There are no time, account or symbol limits.
Full user manual: https://www.mql5.com/en/blogs/post/783077
How it works
- The 13 EMA crosses the 50 EMA on a closed candle.
- The EA waits for the next candle to close. This is the confirmation candle.
- If the cross agrees with the daily trend, the trade opens at the start of the following candle. A buy needs the last daily close above the D1 50 EMA, a sell needs it below.
- When the averages cross the other way, the trade is closed and the opposite trade is opened.
Default settings
The built-in defaults are the recommended settings for XAUUSD M15: 13 and 50 EMA, the D1 50 EMA trend filter, cross-to-cross exits and 0.20% risk per trade. The lot size is worked out from a 1000-point stop distance, and the take profit is set very wide (50000 points), so in practice trades close on the opposite cross.
Please note: by default the stop loss is used only to size the lot and is not sent to the broker. Price gaps, fast news moves or the terminal being offline can cause a loss larger than the sizing distance. If you want a hard stop at your broker, set "Send stop loss to broker" to true.
On a 2-digit gold price, 1000 points is a 10.00 move. If your broker quotes gold with 3 digits, use 10000 points for the same distance. On balances below about 5,000 in account currency, the smallest lot (0.01) risks more than 0.20%. You can turn on "Skip if minimum lot is too risky" to skip those trades instead.
Optional features
- Entry filters: London and New York session windows with automatic summer time, Asian range sweep, daily range used, large candle (ATR), RSI agreement, choppy market check, spread limit and a news pause on live charts.
- Exits: fixed take profit, exit when price touches the slow average, trailing stop, and an adaptive take profit that learns from the best move of recent trades.
- A check that cancels the signal if the averages have crossed back by the end of the confirmation candle.
- Risk scaling that reduces the lot size while the account is in drawdown.
Account protection
You can set a daily loss limit, a maximum drawdown (from the starting balance or from the equity peak), a weekly loss limit, daily and total profit targets, a maximum number of trades per day, a cooldown between trades and a pause after a losing streak. A limit closes this EA's trades, or every trade on the account if you choose. Limits are saved, so restarting MetaTrader does not reset them.
Prop challenge simulator
For the Strategy Tester, OneSet X includes a prop firm challenge simulator with one or two phases, profit targets, static or trailing maximum drawdown, four ways to measure daily drawdown, minimum trading days, a daily profit cap and simulated payouts on the funded stage. It keeps its own account, separate from the tester balance, and shows its progress on a panel and in a Journal summary at the end of the test.
Dashboard
The on-chart dashboard shows the status, spread, balance and equity, both averages, the trend, the daily trend filter, the open position, the stop and target, the risk and next lot size, the protection limits and the reason the last signal was taken or skipped.
Recommendations
- Chart: XAUUSD M15 with the default settings.
- Test on a demo account or in the Strategy Tester first, using "Every tick based on real ticks".
- Use a different magic number for each chart if you run the EA on more than one symbol.
- A VPS is recommended, because exits depend on the EA running.
OneSet X does not use grid or martingale.
Support
Please ask questions in the product comments or send me a private message on MQL5. I read and answer both.
Trading involves risk. Strategy Tester results do not guarantee future results.
