Ultimate Hephaestus MT5
- Эксперты
-
Tuan Duyet Nguyen
Software Engineer at Meta Technology, building trading systems for MetaTrader 5. - Версия: 1.0
- Активации: 10
Ultimate Hephaestus MT5
Swing breakout Expert Advisor for XAUUSD (gold). Seven sub-strategies place buy stop and sell stop orders at recent swing highs and lows. Every order has a stop loss and a take profit. No grid, no martingale, no averaging.
Swing breakout Expert Advisor for XAUUSD (gold). Seven sub-strategies place buy stop and sell stop orders at recent swing highs and lows. Every order has a stop loss and a take profit. No grid, no martingale, no averaging.
Main features
Gold often moves fast once it breaks a recent swing high or low. Ultimate Hephaestus does not predict direction: it waits at those levels with pending orders and lets price decide.
- Seven independent sub-strategies: three use daily swings, four use hourly swings, each with its own stop, target and exit rules.
- Stop loss and take profit on every order, set when the order is placed.
- Distances follow the gold price: entries, stops, targets and trailing are a percentage of the recent daily price instead of fixed dollars.
- Active management: break-even, trailing stop and, on the wide-stop sub-strategies, an early exit after a deep adverse move.
- Built-in filters: pending orders are removed before the daily rollover, around US payroll (US Non-Farm Payrolls (NFP)) releases and when the spread is too wide; a cap on open positions.
- No grid, no martingale, no external libraries (DLL), no external services. Resumes normally after a terminal restart.
How it works
How it works
1. Each sub-strategy finds the newest confirmed swing high and swing low on D1 or H1 that price has not yet passed.
2. It places a buy stop just inside the swing high and a sell stop just inside the swing low, with stop loss and take profit. Orders are refreshed every 15 minutes.
3. After a fill, the position is managed every minute: stop tightening, break-even, trailing stop and, for wide-stop sub-strategies, an exit on a bounce after a deep adverse move.
4. Pending orders are removed before the daily rollover and placed again afterwards. Around US payroll releases the Expert Advisor closes its positions and orders.
5. At the open-position limit all pending orders are removed until positions close.
Recommendations
- Symbol: XAUUSD (gold). The Expert Advisor is designed and tested for gold only. It can run on other symbols for compatibility, but no results are claimed there.
- Chart: any timeframe (backtests used H1).
- Account: hedging recommended.
- Balance: backtests used 10,000 USD with 0.01 lot; at least 2,000 USD per 0.01 lot is suggested. If your broker's minimum lot is larger than the calculated lot, the minimum lot is used and logged.
- Terminal online 24/5 with Algo Trading enabled; a virtual private server is recommended.
- A broker with GMT+0 server time is preferred, otherwise adjust the time inputs.
Quick start
1. Attach the Expert Advisor to an XAUUSD chart and enable Algo Trading.
2. Keep the default settings (or load the default preset) and choose your BaseLot.
3. Check your broker's server time and adjust CancelSummer, CancelWinter and ReopenTime if it is not GMT+0.
4. Run it on a demo account first.
Inputs
- MagicNumber: identifies the Expert Advisor's orders.
- CommentPrefix: order comment prefix; the Expert Advisor reads it back, do not change it while positions are open.
- BaseLot: lot per sub-strategy order.
- BalanceStep: 0 for a fixed lot; otherwise BaseLot is added per this amount of balance (raises risk).
- Run1 to Run7: enable or disable each sub-strategy.
- MaxPositions: maximum open positions.
- MaxSpreadPoints: no new orders above this spread, in points.
- SlippagePoints: maximum slippage on closes, in points.
- MaxFillsD1 / MaxFillsH1: how often the same swing can be traded in one session.
- CancelSummer / CancelWinter: server time when pending orders are removed before rollover (US summer / winter time).
- ReopenTime: server time when pending orders are placed again.
- AvoidNfp, NfpBeforeMin, NfpAfterMin: stay flat around US payroll releases, minutes before and after.
- CloseOnFriday, FridayCloseTime: optionally close everything late on Friday (server time).
Support
Please contact me through MQL5 private messages or the Comments section of this product. A user guide and the default preset are available on request.
Risks and limitations
These are backtests, not live trading results. Tick quality was 0%, 45% and 100% real ticks in the three tests; the 2024 test used generated ticks only and is less precise. Past performance does not guarantee future results. Trading gold involves a risk of loss.
- Average losses are larger than average wins, so results depend on a high win rate.
- Three sub-strategies (1, 5 and 6) use a stop 3.8 to 11.5 times larger than their target. One full stop can erase many wins. You can turn these sub-strategies off.
- Rollover and payroll news times assume a broker server on GMT+0. On another server time, adjust the time inputs.
- Positions can stay open over the weekend unless CloseOnFriday is enabled (the backtests kept it off).
- Up to 20 positions can be open at the same time with the default settings.
- Spread, slippage and execution speed affect the results.
Please test on a demo account first.
