Range Breakout Sniper
- Experts
- Versione: 1.2
- Attivazioni: 5
H1 Range Breakout EA
A disciplined session-breakout Expert Advisor for MetaTrader 5.
H1 Range Breakout EA marks the high and low of a defined early-session window. It waits for a confirmed hourly close beyond that range, then enters with a volatility-based stop, a fixed reward-to-risk target and automatic position protection. It follows one clear idea with strict risk rules, with no grid, martingale or averaging.
How it works
- Builds the range. It records the high and low of a set window (default 00:00–06:00 server time).
- Waits for a clean breakout. During the trading window (default 07:00–20:00), it needs an H1 candle to close beyond the range by a small ATR buffer. This filters out most intrabar fake-outs.
- Enters with defined risk. The stop is placed at a multiple of ATR (default 1.5×) and the take-profit at a fixed reward-to-risk ratio (default 1:2).
- Protects the trade. It moves the stop to break-even at +1R and then trails it by ATR once the trade reaches +1.5R.
Key features
- Percentage risk sizing. Lot size is calculated from account equity and stop distance (default 0.5% per trade), or you can use a fixed lot.
- Margin protection. Orders are scaled down to fit free margin, and skipped if the account can't afford even the minimum lot.
- Daily loss limit. Trading stops, and open positions can optionally be closed, if equity falls by a set percentage from the day's starting equity (default 3%).
- Trade limits. You can set a maximum number of trades per day and restrict the EA to one trade per day.
- Spread filter. It skips entries when the spread exceeds your limit.
- Broker-safe modifications. The EA respects stops and freeze levels, uses a minimum trail step and has a retry cooldown, which avoids "close to market" rejections.
- Direction control. Buy and sell can be switched on or off independently.
- Friday close. Optionally closes positions at a chosen time on Friday.
- Works on netting and hedging accounts.
Recommended setup
| Platform | MetaTrader 5 |
| Timeframe | H1 (the EA uses H1 data on any chart) |
| Instruments | Liquid FX pairs such as EURUSD; metals such as XAUUSD with suitable risk settings |
| Account | Netting or hedging; ECN or low-spread accounts preferred |
| Minimum balance | Depends on the symbol, so check margin per lot. Gold needs far more capital than FX at the same risk. |
Main inputs
- Range and trading hours (server time)
- ATR period, stop multiplier and breakout buffer
- Risk %, reward-to-risk and fixed-lot option
- Break-even and trailing settings
- Max spread, max trades per day, daily loss limit
- Margin usage cap and Friday close
