Two MA One RSI
Info
The Two MA One RSI is a Expert Advisor for MetaTrader 5 that the ea trades on two indicators: ima (moving average, ma) and rsi (relative strength index). Trade signals are decided when a new bar appears, while positions are trailed and closed (in profit) at every tick.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Two MA One RSI
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
The EA trades on two indicators: IMA (Moving Average, MA) and RSI (Relative Strength Index).
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Awesome Oscillator Pullback EA for EURUSD: +209% in 2026 Backtest - another powerful expert for MetaTrader 5 traders.
The EA trades on two indicators: IMA (Moving Average, MA) and RSI (Relative Strength Index). Trade signals are decided when a new bar appears, while positions are trailed and closed (in profit) at every tick.Also recommended: Change Point: Bayesian Online Change Point Detection - similar expert with strong performance on MetaTrader 5.
An innovative approach is employed: the slow indicator's averaging period is twice the fast averaging period, and the RSI averaging period matches the fast period. This simplifies optimization by reducing parameter count.
All signs in the signal identification formula can be optimized using dedicated variables (inpmorelessbuy_1, inpmorelessbuy_2, inpmorelessbuy_3, inpmorelesssell_1, inpmorelesssell_2, and inpmorelesssell_3). The formula is modified as follows:
Input Parameters
Moving Average Parameters:
- Fast: Averaging period
- Fast: Horizontal shift
- Fast: Price type
- Slow: Horizontal shift
- Slow: Price type
- Fast and Slow: Smoothing type
RSI and Signal Parameters:
- RSI: Price type
- RSI: Level up
- RSI: Level down
Trading Parameters:
- Stop Loss
- Take Profit
- Trailing Stop
- Trailing Step
- Lots: Fixed lot size
- Risk: Dynamic lot size calculation
- Maximum positions in one direction
- Close all positions on profit
- Close opposite positions
- Magic number
This EA offers flexibility in indicator parameter setup, enabling/disabling stop loss, take profit, trailing, position limits, profit-based position closure, and opposite position closure. It also supports fixed or dynamic lot size calculations.
Optimization Recommendations
In 'OHLC на M1' mode, select a symbol and M15 timeframe. Disable stop loss, take profit, and trailing, setting the maximum positions per direction to 1. Alternatively, use the 'two ma one rsi m15 start.set' file in the mql5\profiles\tester\ folder for initial M15 optimization.
Choose 'Fast (Genetic Algorithm)' optimization type and optimize for 'Balance Max'. For efficient optimization, consider using cloud services and powerful hardware.
You may also like: Canvas Tabs: A Lightweight Tab Bar for MQL5 using C Canvas - excellent alternative for expert users on MetaTrader 5.
Source Code
/
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.