XAUUSD Reversal in Trend employs a trend-following pullback strategy, identifying entry opportunities using RSI or Stochastic oscillators at extreme zones combined with candle rejection confirmations. To ensure alignment with broader market conditions, the EA filters setups using moving average slope and ADX on higher timeframes like M15 or H1. Trade management utilizes a single-entry model without grid or martingale mechanics, enforcing protection through adaptive stop-loss configurations, breakeven triggers, and trailing stops.
Trend-aligned pullback entries on M1 timeframe
Oscillator filters using RSI, Stochastic, or both indicators
Rejection wick candle confirmation criteria
Two-stage trade management with breakeven and trailing options
Read from XAUUSD_ReversalTrend_M1.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTrendTimeframe
ENUM_TIMEFRAMES
PERIOD_M15
TF penentu tren (M15 default, boleh H1)
InpTrendEMAPeriod
int
50
Periode EMA tren
InpUseSlopeFilter
bool
true
Aktifkan filter kemiringan EMA
InpSlopeLookback
int
5
Bar lookback untuk hitung slope
InpMinSlopePoints
double
10.0
Ambang minimal slope (points) agar tak dianggap datar
InpUseADXFilter
bool
true
Aktifkan filter kekuatan tren (ADX)
InpADXTimeframe
ENUM_TIMEFRAMES
PERIOD_M15
TF ADX (default = TF tren)
InpADXPeriod
int
14
Periode ADX
InpADXMinLevel
double
25.0
ADX minimal agar entry diizinkan
InpOscMode
ENUM_OSC_MODE
OSC_RSI
Pilihan oscillator
InpRSIPeriod
int
14
Periode RSI
InpRSIBuyLevel
double
40.0
Level oversold RSI untuk BUY (longgar)
Show all 40 inputs
Name
Type
Default
Description
InpRSISellLevel
double
60.0
Level overbought RSI untuk SELL (longgar)
InpStochK
int
5
%K Stochastic
InpStochD
int
3
%D Stochastic
InpStochSlowing
int
3
Slowing Stochastic
InpStochBuyLevel
double
30.0
Zona oversold Stochastic (BUY)
InpStochSellLevel
double
70.0
Zona overbought Stochastic (SELL)
InpSignalValidBars
int
3
Masa berlaku sinyal (bar) setelah cross
InpSameBarOnly
bool
false
true = cross & candle konfirmasi harus 1 bar (paling ketat)
InpMinWickRatio
double
0.30
Rasio minimal rejection wick / total range
InpMinClosePosition
double
0.50
Posisi close minimal di paruh atas(BUY)/bawah(SELL)
InpMinRangeATRRatio
double
0.0
Range minimal = rasio x ATR (0 = nonaktif)
InpSLMode
ENUM_SL_MODE
SL_CONFIRM
Mode SL (ConfirmCandle direkomendasikan)
InpSLBufferPoints
int
20
Buffer SL (points)
InpSwingLookback
int
10
Lookback swing (mode SwingLowHigh)
InpATRPeriod
int
14
Periode ATR (M1)
InpATRMultSL
double
1.5
Multiplier ATR untuk SL (mode ATR)
InpMinSLPoints
int
50
Jarak SL minimal (points) - kalau lebih rapat, dilebarkan
InpMaxSLPoints
int
800
Jarak SL maksimal (points) - kalau lebih lebar, entry dibatalkan
InpUseBreakeven
bool
true
Aktifkan breakeven
InpBreakevenTriggerPoints
int
100
Profit (points) untuk mengunci breakeven
InpBreakevenBufferPoints
int
5
Buffer breakeven (dipakai sebagai NILAI MINIMUM)
InpCommissionPoints
int
0
Komisi round-turn dalam points (untuk buffer BE)
InpUseTrailing
bool
true
Aktifkan trailing (hanya jalan setelah breakeven ter-set)
InpTrailMode
ENUM_TRAIL_MODE
TRAIL_ATR
Mode trailing
InpATRMultTrail
double
1.5
Multiplier ATR untuk trailing
InpTrailDistancePoints
int
150
Jarak trailing tetap (mode FixedStep)
InpTrailStepPoints
int
30
Step geser trailing (mode FixedStep)
InpTrailEMAPeriod
int
20
Periode EMA trailing (mode EMA)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone 30blekok-stack/EA-MT5---M1-Reversal-in-Trend from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index
FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take
This MetaTrader 5 expert advisor collection provides multiple variants for scalping gold on the one-minute timeframe. It utilizes a combination of Stochastic Oscillator crossovers and linear regression analysis to identify trend quality and entry points. Trade management is handled through ATR-based dynamic stop loss a
This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity
Snipe FX Pro is a MetaTrader 5 expert advisor designed for high-frequency tick scalping, primarily pre-configured for XAUUSD. It utilizes a virtual stealth execution system to manage entries and exits without placing hard stops on the broker's server until necessary. The EA enters trades based on price breakouts or pul
EA Ak47 Hybrid is a modular scalping expert advisor for MetaTrader 5, specifically optimized for gold markets. It generates signals using the Relative Strength Index filtered by an Exponential Moving Average trend component. The EA includes secondary filters for ATR volatility, MACD momentum, and Stochastic oscillators