RSI Trend Pro EA
- Experts
- Amine Khattouti
- Versione: 1.2
- Aggiornato: 23 ottobre 2025
- Attivazioni: 5
Overview
The RSI TrendMaster EA is a fully automated trading system designed for XAUUSD (Gold) on the M5 timeframe. It combines Relative Strength Index (RSI) momentum signals with a trend confirmation filter based on the Exponential Moving Average (EMA). The Expert Advisor dynamically adjusts position size according to the selected risk percentage and calculates Stop Loss and Take Profit levels using the Average True Range (ATR). This allows the system to adapt to changing market conditions, including periods of high or low volatility.
Trading Logic
The EA follows a momentum and trend-based strategy:
-
Buy Setup: When the RSI value falls below the Buy Level and price is above the EMA, the EA opens a Buy order — taking advantage of bullish retracements in an uptrend.
-
Sell Setup: When the RSI rises above the Sell Level and price is below the EMA, the EA opens a Sell order — capturing bearish retracements in a downtrend.
ATR-based volatility management ensures that Stop Loss and Take Profit distances automatically expand or contract depending on current market activity.
Risk & Capital Management
-
Automatic Lot Calculation: Lot size is adjusted according to the chosen risk percentage, ensuring consistent exposure per trade.
-
Max Drawdown Protection (v1.2): The EA stops opening new positions when the account drawdown exceeds a user-defined limit.
-
Margin Check: Before placing any order, the system verifies whether sufficient margin is available to open the trade.
These risk management tools help maintain stable trading behavior and protect the account from excessive losses.
Main Features
-
RSI + EMA trend confirmation system
-
ATR-based dynamic Stop Loss and Take Profit
-
Fully automated order execution
-
Adjustable position sizing based on account risk
-
Built-in margin and drawdown control
-
Compatible with any broker and account type
-
No martingale, grid, or hedging logic
-
Simple parameter configuration and transparent rules
-
Optimized for accurate backtesting and forward testing
Input Parameters
| Parameter | description | default |
|---|---|---|
| RSI_Period | RSI calculation period | 17 |
| RSI_BuyLevel | Oversold level for Buy trades | 37 |
| RSI_SellLevel | Overbought level for Sell trades | 78 |
| Trend Filter | Additional EMA trend filter | 501 |
| MA_Period | Moving average calculation method | Exponential |
| MA_Price | Price applied to EMA | Weighted |
| SL_ATR_Mult | Stop Loss ATR multiplier | 17.1 |
| TP_ATR_Mult | Take Profit ATR multiplier | 21.0 |
| Risk_Percent | Risk per trade (%) | 1.0 |
Recommended Settings
-
Symbol: XAUUSD (Gold)
-
Timeframe: M5
-
Account balance: minimum $200–500
-
Risk: 1–2% per trade
-
Works best with low to medium spreads
Version History
-
v1.2: Added Max Drawdown Protection and improved money management logic.
-
v1.1: Added margin verification and optimized risk calculation.
-
v1.0: Initial release with RSI, EMA trend filter, and ATR-based trade management.
Support & Feedback
If you need help with installation, setup, or optimization, please contact me via the Comments section or through the MQL5 messaging system. Feedback and suggestions from users are always welcome to improve future versions.
Disclaimer
Trading involves risk. Past performance does not guarantee future results. Always test the EA on a demo account before using it on a live account, and ensure you understand the risk associated with leveraged trading.

Good expert from my buying history he has 2 trades that took profit and the author is very cooperative I wish everyone success