Idea by: Sergey Deev.
MQL5 code by: Vladimir Karputov.
Ever thought about how to enhance your trading strategy? Let me introduce you to the Momentum-M15 EA, a nifty tool that trades using two key indicators: the Moving Average (iMA) and Momentum (iMomentum). This EA takes into account the closing price of the previous bar and the opening price of the current bar when entering trades. For closing or trailing positions, it uses the previous bar's close, along with the current bar's high and low. It’s a simple yet effective approach!
The beauty of this EA lies in its operation. It only kicks in when a new bar forms, keeping things straightforward and focused. Plus, it limits you to one open position at a time, which helps manage risk more effectively.
When it comes to optimization, I suggest using a genetic algorithm along with the "1 minute OHLC" tick generation mode. If you're curious about what parameters to use and the ideal timeframes, check out the example below:

For testing, I’ve had great results with the USDJPY symbol on the H1 timeframe, utilizing the parameters from the "Value" column. For a more comprehensive validation, I recommend running this test in the "Every tick based on real ticks" mode. Here’s what that looks like:

Happy trading, and may the pips be in your favor!
Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Leveraging MQL5 Wizard: Crafting Trade Signals with Meeting Lines and Stochastic
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation