Moving Average x Relative Strength Indicator EA - MetaTrader 5 Expert - MT4/MT5 Resources




The EA is built to demonstrate:
Dynamically adjust lot size based on account risk
Overbought/oversold entry conditions based on RSI
Trend filtering using moving averages
Stop loss and take profit levels are adjusted according to the trading instrument scale accuracy
This EA is especially useful for learners who are experimenting with technical strategies and want to understand how indicator processing, dynamic risk and broker number differences affect trading logic.
The EA operates with the following entry rules:
The current price is above the moving average (bullish)
RSI is below the oversold threshold (indicating price will rise)
Price is below the moving average (bearish)
RSI is above the overbought threshold (indicating that prices will fall)
Stop Loss and Take Profit are configured using _Point and adjusted based on the broker's pricing precision (_Digits).
Symbol : XAUUSD (gold)
Approximate time : M15 or H1
Broker : Any broker with correct quote data (tested for consistency among 2/3 and 4/5 brokers)
Backtesting range : 3-6 months recommended
Condition : Ensure tick data is available for reliable RSI/MA values
Function PipSize() helps to normalize pip values between brokers with different _Digits.
The EA automatically calculates the lot size based on the current account balance and the defined risk.
The code is modular and can be easily extended with trailing stops, news filters or other conditions.
This project is an ongoing project and feedback is welcome!
Attachment download
📎 marsi_ea.mq5 (8.12 KB)
Source: MQL5 #60730
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •