4-Hour MACD FOREX Strategy: Pattern A

In the 16th issue of ForTrader.org we will consider the trading strategy "4-Hour MACD FOREX Strategy", which brings its author an average of 300 pips monthly, has been tested on historical data and has been working successfully on the author's account for more than two years. The strategy is based on the work on patterns MACD indicatoras well as on combinations of moving averages.

Used indicators

MACD:

FastEMA=5
LowEMA=13.

Moving Average: three exponential moving averages with periods 7, 21, 365 and simple moving average with period 98.

Trading strategy algorithm

So, to work on the strategy we will need: the MACD indicator and four sets of moving averages. We will use the 4-hour chart of the EURUSD currency pair for our study.

Fig. 1. Working Area.
Fig. 1. Working Area.

The author of the strategy offers for trading 6 different effective versions of patterns. In this issue we will test one of the patterns of possible trend reversal, pattern A, in the rest of the issues we will test other types of patterns.

Pattern A: MACD reversal pattern

Figure 2. Pattern A. Selling.
Figure 2. Pattern A. Selling.

For successful formation of the descending pattern A for sale, the value of the MACD histogram indicator must reach a level above 0.0045, then fall below 0.0045 and form a maximum.

Figure 3. Pattern A. Buying.
Figure 3. Pattern A. Buying.

For a successful formation of the rising pattern A to buy MACD histogram value should reach the level below -0.0045 then grow above -0.0045 and form a minimum.

Searching for a buy signal

1. The MACD histogram should take a value below -0.0045;

2. After forming a high below -0.0045, the histogram should rise above -0.0045 and form a low, after which you should buy;

3. Stop order is placed 10 points below the last local minimum;

4. The first target for 30% position is closed when the price value is above the 21-period exponential average;

5. The second target for half of the positions is closed when the price reaches the value between 89-period simple moving average and 365-period exponential average.

6. The third target for the remaining position volume is closed when the price reaches the price support level.

Fig. 4. Signal to buy.
Fig. 4. Signal to buy.

2001.03.07 был образован нисходящий паттерн А. Вход в позицию выполнен по цене 0.9305, стоп-приказ разместился на уровне 0.9383, тейк профит и он же Цель №3 — на уровне поддержки 0.9014, объем — 1 лот. Практически сразу цена опустилась ниже 21-опериодной экспоненциальной средней, и тем самым была достигнута Цель №1, и закрыто 0,33 лота по цене 0,9014 с плюсом в $108,08. Чуть позже цена достигла середины между 89-ти и 359-тискользящими средними, и по 0,34 лота были закрыты на второй цели с плюсом $267, далее была достигнута третья цель и закрыты остальные 0,33 лота в плюсе $942.

Searching for a sell signal

1. The MACD histogram should take a value above 0.0045;

2. After forming a high above 0.0045, the histogram should fall below 0.0045 and form a high, after which you should sell;

3. A stop order is placed 10 pips above the last local high;

4. The first target for 30% position is closed when the price value is below the 21-period exponential average;

5. The second target for half of the positions is closed when the price reaches the value between 89-period simple moving average and 365-period exponential average.

6. The third target for the remaining position volume is closed when the price reaches the price resistance level.

Fig.5. Sell signal.
Fig.5. Sell signal.

Strategy testing

Having implemented this strategy in MQL4 as an Expert Advisor, we have derived the following parameters to optimize the strategy:

— stoplossbars = 6 — количество баров, за которое определяется максимум или минимум для установки стоп приказа.

— takeprofitbars = 20 — количество баров, за которое находится сопротивление или поддержка.

— otstup = 10 — количество пунктов для отступа от найденного максимума или минимума при установке стоп приказа.

— lowema = 12 — период индикатора MACD.

— fastema = 26 — период индикатора MACD.

— maxur = 0.0045 — верхний уровень индикатора MACD.

— minur = -0.0045 — нижний уровень индикатора MACD.

Having tested the above rules from 2001 to 2008, with default parameters of indicators, we have obtained following results:

Fig. 6. Testing on EURUSD. H4.
Fig. 6. Testing on EURUSD. H4.

The results show that trading according to the standard parameters of the strategy is ineffective. Let's try to choose the most optimal parameters in the period from 2001.01.11 to 2008.01.11 and then check them in the future period up to the current moment.

Strategy optimization

Having tested different combinations of strategy parameters, we have obtained many profitable settings for the strategy, and have chosen the most profitable one best option in terms of profitability and maximum drawdowns:

Fig. 7. Results of strategy optimization for EURUSD. H4.
Fig. 7. Results of strategy optimization for EURUSD. H4.

Let's see what results the optimized strategy produces.

Figure 8. Result of the selected parameters in the period from 2001.01.11 to 2008.00.01.
Figure 8. Result of the selected parameters in the period from 2001.01.11 to 2008.00.01.

Как видим, результат получился положительный: за этот период прибыль составила — $17400. Начальный депозит был равен $3000. Проверим теперь, как данные параметры работают на будущем периоде с 08.01.11 по настоящее время.

Figure 9. System operation without parameter selection at the site from 2008.01.11 to present.
Figure 9. System operation without parameter selection at the site from 2008.01.11 to present.

The system earned $2900 on a future system, which is a good performance, the system has earned a whopping 100% in six months..

To summarize

The strategy, in our opinion, is effective for working on the FOREX market and with a high probability of with the right approach will bring profit to the traderWe would like to emphasize the good ratio of profit and low potential risk of this strategy. We have not optimized the parameters of moving averages, perhaps optimization of these parameters will also improve the result. ForTrader.org experts' verdict: the strategy is quite workable and can bring income. In the next issues we will consider other versions of MACD patterns.

Trading strategy update

After 6 years, ForTrader.org experts have re-examined this strategy. You can familiarize yourself with the results obtained here.

Leave a Reply

Back to top button