If you're on the lookout for a robust trading strategy, you're in luck! You can check out the original trade strategy by following this link:
http://www.unfx.ru/strategies_to_trade/strategies_131.php
This Expert Advisor (EA) was designed to test the effectiveness of the trading strategy outlined by the original author. For a detailed look at the EA's parameters and its educational content, check out our latest journal issue:
http://www.fortrader.ru/ftgate.php?id=0&num=42
Quick Overview of the EA Algorithm:
- Time Frame: H1-D
- Instruments: Trend-based financial instruments
- Volume: Whole lot (0.2, 0.4, 0.8, 1.0, etc.)
- Indicators: MA (50 period), MA (100 period), MACD with standard parameters
Trading Signals:
Buy Signal:
The price must be above both the 50 and 100 period MAs by 10 points, and MACD must be above zero. Before the signal, MACD should have displayed negative values for the last five bars. Set the StopLoss at the minimum of the last five bars.
Sell Signal:
The price should be below both the 50 and 100 period MAs by 10 points, and MACD must be below zero. Similar to the buy signal, MACD should have shown positive values for the last five bars before the signal. Set the StopLoss at the maximum of the last five bars.
Position Management:
- Once a signal appears, open an order at a whole lot.
- The first target is set at double the StopLoss level; once reached, close half the position and move the StopLoss to break-even.
Position Closing:
The opened position will close either at the StopLoss or when the price crosses the 50-period MA by 10 points—downward for buys and upward for sells.
Testing the EA:
Here’s how the EA performed with standard parameters:

And after optimizing the parameters:

For a complete analysis of the strategy and its performance on future quotes, check out our journal:
http://www.fortrader.ru/ftgate.php?id=0&num=42
P.S. All possible variables of the strategy are adjustable, giving you the flexibility to experiment with parameters that work well for intraday charts. It’s best to test on tick data since profits are realized at market closure.
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
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Mastering Bullish and Bearish Harami Patterns with Stochastic in MT5
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies