Gold Rejection Retest
- Experts
- 버전: 1.0
- 활성화: 5
Gold Rejection Retest is an Expert Advisor built and tested for GOLD (XAUUSD).
It does not use indicators. It reads price on four timeframes (D1, H4, M15, M1) and only trades when all of them line up.
HOW IT WORKS (sell side - buy is the exact mirror)
1. H4 level
The EA finds H4 levels by itself: places where one H4 candle was broken by the next candle of the same colour, and the H4 high and low of the recent move.
2. Rejection
A bullish M15 candle pushes up into an H4 level, or stops just under it, and does not close through it. The EA remembers that rejection high.
3. Retest
Price must first move away from the rejection (default $5 on gold), then come back to within $8 of it. The first touch is never traded - only the retest.
4. M15 confirmation
A "stranded" bear-to-bear M15 breakout: a bearish M15 candle closes below the previous bearish candle, and its high stays close to that candle's low.
5. M1 entry
On M1: 5 bearish candles in a row, then a bullish candle, then an M1 close below that bullish candle -> SELL.
6. Bigger move
Sells are only allowed while price is below where it was 10 days ago, buys only while it is above.
7. Exits
- Stop loss: just above the H4 level, the rejection high and the retest wick, whichever is highest.
- Take profit: just before the next H4 level below (or your own horizontal lines, if you choose that mode). At a new low with no level below, the next round number.
- The setup is cancelled if an M15 candle closes clearly through the level.
BACKTEST RESULTS (GOLD, $1,000 deposit, 1% risk per trade, default settings)
Jan 2023 - Nov 2026, 1-minute OHLC data:
- Net profit: +$344 (+34%)
- Profit factor: 6.04
- Maximum equity drawdown: 2.9%
- Trades: 49, of which 42 (86%) closed in profit
- Largest win: +$64.16. Largest loss: -$11.68. Most losses in a row: 2 (-$16.63).
- Average win +$9.81, average loss -$9.75: most wins are about the same size as a loss, so results depend on the high win rate.
- By year:
- 2023: +$49 (5 trades)
- 2024: +$2 (1 trade)
- 2025: +$139 (26 trades)
- 2026 (to Nov 20): +$154 (17 trades)
- 3 of the 22 months with trades closed with a loss.
Oct 2025 - Nov 2026, every real tick:
- Net profit: +$222
- Profit factor: 8.48
- Maximum equity drawdown: 1.8%
- Trades: 27, of which 24 (89%) closed in profit
- Most losses in a row: 1 (-$10.18)
How the settings were chosen: the retest distances were tested over a grid (move away $3-7, return zone $5-12) separately on Jan 2023 - Sep 2025 and Oct 2025 - Nov 2026. All settings with $3-5 away and $5-12 zone were profitable in both periods; the defaults are from the middle of that range. Both periods were used to choose the strategy, so these are not fully out-of-sample results.
Past backtest results do not guarantee future results.
WHAT TO EXPECT
- Very few trades. In 2023 and 2024 only 6 trades in total; in 2025-2026 about 1 to 3 per month. Expect weeks or months without a trade.
- A high win rate with modest wins. A losing trade costs about the same as a typical win.
- Losses will happen, and a run of losses longer than in the backtest is possible.
RECOMMENDED SETUP
- Symbol: GOLD / XAUUSD, any suffix your broker uses.
- Chart: any timeframe (M15 is easiest to watch). The EA reads D1, H4, M15 and M1 itself, so the chart timeframe does not change its trades.
- Risk: 1% per trade (default), or a fixed lot.
- Account: hedging or netting. A low-spread account is better.
- Minimum balance: about $2,000 at 1% risk if your broker's minimum lot is 0.01. With a smaller balance the minimum lot would risk more than twice your chosen %, so the EA skips the trade and tells you why.
- VPS recommended, so the EA can watch every M1 candle.
- One chart per account. On more charts, give each a different magic number.
SAFETY FEATURES
- Every trade has a stop loss and a take profit from the moment it opens.
- No martingale, no grid, no averaging, no adding to losing trades.
- Never more than one open trade.
- Before every order it checks free margin, the broker's lot limits, the minimum stop distance, that trading is allowed and that the market is in session.
- If the balance is too small for the chosen risk, it skips the trade and says why. It never increases risk to force a trade.
- Chart panel shows what the EA is waiting for (rejection, retest, M15 breakout, M1 signal).
INPUTS
Strategy
- Entry type: retest only (default), first rejection only, or both
- Trade direction: buy and sell / sell only / buy only
- Distance mode: Auto (default) - on gold all % inputs are % of a fixed 3600 reference, so they work as fixed dollar distances ($5, $8 ...); on other symbols they are scaled to that symbol's average daily range. Or "% of the current price" on every symbol.
- Gold reference price: 3600
- Bigger move, days: 10 (0 = off)
- H4 bars searched for levels: 120
- Push zone around the level, %: 0.28 (= $10 on gold)
- Max close through the level, %: 0.083 (= $3)
- Min M15 push body, %: 0.083 (= $3)
- Retest: move away first, %: 0.139 (= $5)
- Retest: return zone, %: 0.222 (= $8)
- Retest must come within N M15 bars: 96
- M15 bars allowed for the M15 breakout: 8
- Stranded breakout max gap, %: 0.028 (= $1); min distance, %: 0.111 (= $4)
- M15 bars allowed for the M1 signal: 8
- M1 candles in a row before the signal candle: 5
- M1 signal candle min body, %: 0.028 (= $1); entry buffer, %: 0.0083 (= $0.30)
Exit
- SL buffer, %: 0.028 (= $1); min SL, %: 0.083 (= $3); max SL, %: 1.11 (= $40, larger: trade skipped)
- Take profit: next H4 level (default) / your horizontal lines / fixed multiple of the stop
- TP buffer before the level, %: 0.028; ignore levels closer than, %: 0.083
- Round-number step at a new high/low, %: 2.78 (= $100)
- Fixed TP multiple: 3.0 (fixed mode only)
- Break-even at this multiple of risk: 0 (off)
Money management
- Lot mode: risk % (default) or fixed lot
- Risk per trade, % of balance: 1.0 (allowed 0 to 10)
- Fixed lot: 0.10
Other
- Magic number: 240132
- Max slippage, points: 30
- Show chart panel: true
GOLD ONLY
This EA is designed, tuned and tested for GOLD (XAUUSD). It runs on other symbols without errors, but its settings have not been tested there, and I do not recommend using it on them.
RISK WARNING
Trading gold carries a high level of risk and may not be suitable for everyone. Test the EA on a demo account first, and only trade money you can afford to lose.
