A deliberately simple Expert Advisor that can be read and understood in five minutes.
Rules:
1. During the Asian session (times are set by the parameters, based on the broker’s server time), the Expert Advisor measures the high and low of the range.
2. After the range ends and until the ‘no new entries’ hour, if a closed candlestick breaks through the range by a small buffer, the EA enters in the direction of the breakout.
3. Stop-loss: the opposite side of the range (plus the buffer). Take-profit: RR based on the distance to the stop (default 1.5).
4. A maximum of one trade per day. An open trade is closed at a set time.
5. Lot size is calculated as a percentage of the risk relative to the balance (default 0.5%, maximum 2%).
6. Filters: maximum spread; the day is skipped if the stop-loss is further than 3 x ATR(H1, 14).
What the EA does NOT do: no grid trading, no Martingale, no averaging, no hidden lot size increases; every trade has a stop-loss.
How to use: apply to a liquid instrument on the M5 or M15 timeframe (EURUSD, GBPUSD, XAUUSD); check the trading session times for your broker (server times may vary); run it first in the strategy tester, then on a demo account. Always test using your broker’s data.
Important: this is an educational and testing tool. Past performance and back-test results do not guarantee future profits. Trading involves the risk of loss. The author does not promise any profit.
Tester results (honest, XAUUSD M15, risk 0.5%, 10,000 USD, no delay): Jan–Jun 2026 +4.2% (PF 2.29, 29 trades); July–October 2026: +0.4% (PF 1.17, 14 trades); 2025: +3.2% (PF 1.18, 108 trades, max. drawdown 3.2%, backtest quality 59%). On EUR/USD, the result is close to zero. The advantage is small and depends on the period; the sample size is small. Treat the expert advisor as a template rather than a source of income.
I am willing to adapt the expert advisor to your specifications or to develop an indicator or expert advisor from scratch.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/78293
ReliableOutbox: persistent message queue with Telegram demo
Persistent MQL5 outbox with a Telegram demo and offline tests. An uncertain result is never retried automatically. Manual retry may duplicate a message; SENT means API acceptance, not a read receipt.
Risk Lot Size Calculator Panel
Lot size calculator panel for MT5 on Gold (XAUUSD), forex and indices: risk in percent of balance, percent of equity or money, stop in points, exact loss per lot, one click Buy or Sell with stop and target. Open source code.
Supertrend Gold Signals
Supertrend indicator for MT5 on Gold (XAUUSD), forex and indices: ATR trailing line in two colours, buy and sell arrows only on the closed candle of the flip, popup, push and sound alerts. Open source code.
MACD Signals
Indicator edition for new platform.