Hayat SwingBreak MT5
- エキスパート
-
Muhamad Ili Nurhayat Bin Hassan
Just a part timer looking for side profit. Being in this since 2012. Not an expert but still surviving with just a minimum of 100usd and not more than 1000 usd. - バージョン: 3.3
- アクティベーション: 5
Hayat SwingBreak MT5 is a structure-based Expert Advisor for MetaTrader 5, built around a Break of Structure (BoS) entry model combined with a grid recovery and hedging framework. It runs on any symbol and any timeframe — the strategy follows whatever chart it is attached to, rather than being locked to one instrument or period.
This EA is primarily designed and tested for H1 Gold and since this is based on swing the recommended setup is H1.
Entries are triggered when price closes beyond a confirmed swing high or swing low (a fractal-based structure break)... It includes a Grid recovery module to average into the position if price reverses, and a Hedge module to counter exposure if the trend continues against it. It also comes with a safety precaution: the EA stops opening new grid/hedge/hedge-grid legs once used margin exceeds 50% of equity by default — this can be adjusted, or set to 0 to disable it.
Key Features
- Break of Structure entry logic using fractal swing detection on the chart's own timeframe
- Adjustable minimum lookback bars and minimum swing amplitude filters to reduce noise from small swings
- Optional grid recovery module with three lot-progression modes (fixed, multiplier, linear additive)
- Optional hedge module that opens an opposing position to help manage exposure during strong counter-moves, with its own independent grid escalation
- Early hedge trigger option: can react to a reversal candle pattern at the position's current price extreme instead of only waiting for a fixed distance or floating-loss threshold
- Optional confirmation filters for hedge timing (RSI extreme, D1 range breakout)
- Choice of "One Order" mode (one basket per signal) or "Continuous" mode (auto re-open after take-profit)
- Trailing stop for the first order of each basket
- On-chart visuals: swing structure lines and entry markers labeled with the reason for each signal
- Optional trend filters for entries: EMA(H1) bias and a D1-candle-based directional filter with intraday flip logic
- Gap detection logging and a stagnant-position timeout to close a basket that hasn't moved meaningfully after a set number of bars
- Optional daily stop-loss based on the previous day's D1 range
- On-chart control panel: manual Buy/Sell/Close buttons, live balance/equity/P&L display, and toggles for auto-trading direction
- Compatible with cent accounts (see Requirements below for the account-type note)
Requirements
- MetaTrader 5, Hedging account type required (the hedge module opens an opposing position on the same symbol, which a Netting account cannot hold alongside the original position)
- Default input values (grid step, TP/SL distances, hedge trigger distance, swing amplitude) were tuned for XAUUSD (Gold) on the H1 timeframe. The EA will run on other symbols and timeframes, but these point-based inputs should be reviewed and re-tuned for the instrument's own volatility before live use
- Please test on a demo account first to become familiar with the input parameters before running live
Input Parameters
- Structure Detection: Bars required to confirm a fractal swing high/low; minimum swing amplitude; break confirmation mode (candle close vs. solid-body confirmation, with optional buffer)
- Order Mode: One Order (single basket per signal) vs. Continuous (auto re-open after take-profit)
- Entry: Master auto-trade switch; lot size for the first order of each basket
- Trade Time Filter: Optional start/stop hour restriction
- TP & SL (first order): Take-profit distance; optional stop-loss with its own distance
- Grid Recovery: Step distance between levels (fixed or ATR-based dynamic option); maximum levels; lot progression mode and its parameters; basket take-profit distance from the average price; live vs. closed-candle trigger timing
- Trailing Stop: Start distance and trail step, for the first order only
- Gap Protection: Detection threshold
- Stagnant Timeout: Maximum bars a basket may run, and a minimum floating P/L change required within a rolling window before the basket is closed regardless of profit or loss
- Daily Stop Loss: Optional D1-range-based stop
- Hedging: Master switch; distance/loss safety-net trigger; optional D1 and RSI confirmation filters; lot-sizing mode (match basket, half, fixed, or multiplier); hedge's own grid step and level cap
- Early Hedge Trigger: Optional reversal-candle-based trigger at the position's current price extreme, checked ahead of the distance/loss safety net
- Trend Filters: Optional EMA(H1) bias filter and D1 directional filter (with intraday flip) for entries
- RSI Filters (Continuous mode): RSI-based stop-open filter to pause new auto-re-entries; separate RSI-based stop-loss that can close an entire basket including grid/hedge legs
Risk Disclosure Automated trading involves risk, including the risk of loss. This EA's grid recovery and hedging modules increase position size when price moves against the initial entry, which can increase both the potential for recovery and the potential for a larger drawdown. Backtest or past performance does not guarantee future results. Please test thoroughly on a demo account and apply appropriate risk management before trading live.
Support Questions are welcome via the product's comments section.
