Get the Latest Version Here: https://www.mql5.com/en/code/9499
What's New:
This update supports both 5-digit and 4-digit brokers, includes a send mail function, and adds a moving average cross buffer for improved signaling. Plus, you now have five modes for moving averages and the option for static lot sizes.
The previous version has been removed; all updates are highlighted in red.
This Expert Advisor (EA) employs a variety of strategies to open and close trades, allowing you to customize each method. Keep in mind, this isn't a magic solution—it's a blend of multiple strategies designed for straightforward trading using your parameters.
Strategy Tester Report
| Symbol | EUR/USD (Euro vs US Dollar) | |||||
| Period | 1 Hour (H1) 2009.12.01 00:00 - 2010.01.29 22:00 | |||||
| Model | Every tick (the most precise method based on all available timeframes) | |||||
| Bars in test | 1991 | Ticks modeled | 1,794,365 | Modeling quality | n/a | |
| Initial deposit | $100,000.00 | |||||
| Total net profit | $2,157,162.27 | Gross profit | $4,370,724.52 | Gross loss | -$2,213,562.25 | |
| Profit factor | 1.97 | Expected payoff | $38,520.75 | |||
| Absolute drawdown | $23,503.85 | Maximal drawdown | $831,709.56 (49.83%) | Relative drawdown | 50.84% ($79,120.87) | |
| Total trades | 56 | Short positions (won %) | 36 (83.33%) | Long positions (won %) | 20 (30.00%) | |
| Largest profit trade | $422,527.01 | Largest loss trade | -$283,293.72 | |||
| Average profit trade | $121,409.01 | Average loss trade | -$110,678.11 | |||
| Maximal consecutive wins | 9 ($297,047.58) | Maximal consecutive losses | 5 (-$261,829.22) | |||
| Average consecutive wins | 3 | Average consecutive losses | 2 | |||

Multi-Time Frame & Multi-Currency Pair
First Method: Moving Average Cross
You can choose to use either a 2 or 3 moving average cross system:
- Set MA_MODE to 1: Use a 2 moving average cross system
- Set MA_MODE to 2: Use a 3 moving average cross system
- Set MA_MODE to 3: Use both options 1 & 2
- Set MA_MODE to 4: Signal by crossing the fastest moving average with the slowest
- Set MA_MODE to 5: Signal using mode 4 or mode 3
To enhance crossing signals, adjust MA1CrossBuffer or MA2CrossBuffer based on the ATR period.
Second Method: RSI with Four Modes
- RSI Mode 1: Use RSI in overbought & oversold zones to signal trades.
- RSI Mode 2: Use RSI as a trend indicator based on current and previous open prices.
- RSI Mode 3: Combine both Mode 1 & Mode 2.
- RSI Mode 4: Signal trades based on buy or sell zone conditions.
Third Method: MACD with Three Modes
- MACD Mode 1: Use trend direction.
- MACD Mode 2: Signal buys in sell zones and sells in buy zones.
- MACD Mode 3: Combine Mode 1 & Mode 2.
Note: Use this MACD from here—make sure to download and add it to your \\experts\indicators folder.
Fourth Method: Stochastic
Similar options to RSI Mode 1 & 2.
Fifth Method: Parabolic SAR
This EA utilizes the ATR to determine optimal stop loss and take profit levels. Simply provide the ATR period and ATR multiple to get your SL and TP.
Money Management System
This EA includes a money management system with risk parameters set in percentage.
New Feature: An option named Use_Static_Lots allows you to set static lots if enabled.
Auto Close Feature
There's now an option called Auto_Close, which will close a trade if an opposite signal is received. If you set Open_opposite_after_close to 1, it will open a new order upon receiving the opposite signal.
You can choose to exit an order based on MA signaling, MACD, RSI, Stochastic, or Parabolic SAR. You can enable all or just some of these options by setting them to 1 (True) or 0 (False).
- USE_MA: Set to 1 to use moving average cross signals.
- USE_RSI: Set to 1 to use RSI signals (based on RSI_MODE).
- USE_MACD: Set to 1 to use MACD signals (based on MACD_MODE).
- USE_STO: Set to 1 to use Stochastic signals.
- USE_SAR: Set to 1 to use Parabolic SAR signals.
Optimization
If you need to optimize this EA, you can do so in Open Price Only model.
I'd love to hear your feedback! I've been testing this EA on my demo account for a week with an optimization on EUR/USD (1H), achieving 200% profit with a 16% drawdown.
If you spot any bugs, please let me know so we can improve this EA together!
Remember: Optimizing this EA based on current market conditions can yield great results!
Comments 0