Trend Reversal EA seeks trend reversal opportunities by identifying overbought or oversold conditions combined with specific trend strength requirements. The EA includes risk management features such as fixed stop loss, take profit, and percentage-based lot sizing. It supports hedging and limits the total number of open positions. Exit logic is flexible, offering signal-based closures or time-based exits after a defined candle period. The repository lacks a README.
Multi-indicator signal logic using MACD, RSI, CCI, and ADX
Time-based exit logic after a defined candle period
Risk management with percentage-based position sizing
Visual indicator panel and on-chart trade signals
Optional hedging for simultaneous buy and sell positions
Read from TrendReversalEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
LotSize
double
0.1
Lot size
MagicNumber
int
12345
Magic number
MaxPositions
int
2
Maximum positions (1 or 2)
AllowHedging
bool
true
Allow opposite positions
MACD_Fast
int
5
MACD Fast EMA
MACD_Slow
int
35
MACD Slow EMA
MACD_Signal
int
9
MACD Signal SMA
CCI_Period
int
14
CCI Period
ADX_Period
int
14
ADX Period
RSI_Period
int
10
RSI Period
CCI_Oversold
double
-100
CCI Oversold level
MACD_MinValue
double
0.0004
Minimum |MACD| value
Show all 35 inputs
Name
Type
Default
Description
RSI_BuyMax
double
45
RSI maximum for buy
RSI_BuyOversold
double
30
RSI oversold level
ADX_MinStrength
double
20
Minimum ADX trend strength
CCI_Overbought
double
100
CCI Overbought level
RSI_SellMin
double
55
RSI minimum for sell
RSI_SellOverbought
double
70
RSI overbought level
EnableSignalExit
bool
true
Enable signal-based exit
EnableTimeExit
bool
true
Enable time-based exit
MaxCandlesPeriod
int
200
Max candles before forced exit
OnlyProfitableTimeExit
bool
true
Only close profitable positions on time
EnableStopLoss
bool
true
Enable stop loss
StopLossPips
int
5
Stop loss in pips
EnableTakeProfit
bool
true
Enable take profit
TakeProfitPips
int
70
Take profit in pips
MaxRiskPercent
double
2.0
Maximum risk per trade (%)
ShowIndicators
bool
true
Show indicator panel
AddIndicatorsToChart
bool
true
Add indicators to chart
ShowTradeSignals
bool
true
Show trade signals on chart
BuySignalColor
color
clrLime
Buy signal color
SellSignalColor
color
clrRed
Sell signal color
StrictConditions
bool
true
Require all conditions to be met
LogDetailedInfo
bool
false
Log detailed condition checks
Lock2TradingFail
bool
false
Lock 2th Trading Fail
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone fastleopard9372/MQL5 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, and any .mqh files into the Include folder the code expects.
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.
This MetaTrader 5 expert advisor is designed specifically for trading XAUUSD. It utilizes a combination of the Average Directional Index (ADX) for trend strength, Relative Strength Index (RSI) for momentum, and two Simple Moving Averages for trend direction. The system uses multi-timeframe analysis, specifically checki
Hosopi3 Tanpoji is a single-position trading robot for MetaTrader 4 and MetaTrader 5, specifically developed to avoid martingale and averaging techniques. It triggers entries using various built-in technical indicators such as Moving Averages, RSI, Bollinger Bands, and Stochastics, or through external custom indicator
This MetaTrader 4 expert advisor is an automated grid trading system that utilizes a variety of indicators including Moving Averages, CCI, Bollinger Bands, and MACD for trade entries. It employs a martingale-style lot multiplier to manage position sizing across sequential grid levels. The software includes risk control
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
This MetaTrader 5 expert advisor serves as an educational example from a book on MQL5 programming. It implements a versatile trading system that can be configured to use moving average crossovers, Relative Strength Index levels, or both indicators combined for trade entries. The EA manages risk with user-defined stop l
Allegro Stormer is a MetaTrader 5 expert advisor that implements a specific technical setup based on momentum and oscillator indicators. It utilizes a Momentum indicator filtered by a moving average alongside a Stochastic Oscillator to identify entry points. Risk management is centralized around the Average True Range,