Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

The pattern MACD - head and shoulders. Good but on rare occasions. - expert for MetaTrader 4

Views:
12522
Rating:
(1)
Published:
2008.06.27 08:27
Updated:
2014.04.21 14:52
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The implementation of the pattern MACD head and shoulders


The original of the trade strategy is available by the link:
http://www.unfx.ru/strategies_to_trade/strategies_134.php

The EA was written to verify the effectiveness of the strategy described by the author, you can view the educt and the description of the EA in the latest issue of our journal:
http://www.fortrader.ru/ftgate.php?id=0&num=54


Short Description of the EA's Algorithm:

1. Time period: H4;
2. Symbol: EURUSD;
Volume: 1 lot
3. Indicators: ЕMA7, EMA21, EMA359, SMA89. MACD 5,13,1.


Searching for a buy signal
1. The MACD hystogram must form a minimum below -0,0030;
2. Once the minimum below -0,0030 has been formed, the hystogram must form another lower-lying minimum below -0,0045;
3. Once the minimum below -0,0045 has been formed, the hystogram must form another minimum that lies above the first and the second minimums;
4. The stop-order is placed below the last local minimum by 10 points;
5. The first target for 30% of the position is closed when the price's value is above the 21-peroid exponential average;
6. The second target for the half of the position is closed when the price reaches the value betweeen the 89-period simple sliding average and the 365-period exponential average;
7. The third target for the remaimig part of the position is closed when the price reaches the price resistance level.


Searching for a sell signal
1. The MACD hystogram must form a maximum above 0,0030;
2. Once the maximum above 0,0030 has been formed, the hystogram must form another higher maximum above 0,0045;
3. Once the maximum above 0,0045 has been formed, the hystogram must form another maximum that lies below the first and the second maximums;
4. The stop-order is placed above the last local maximum by 10 points;
5. The first target for 30% of the position is closed when the price's value is below the 21-peroid exponential average;
6. The second target for the half of the position is closed when the price reaches the value between the 89-period simple sliding average and the 365-period exponential average;
7. The third target for the remaimig part of the position is closed when the price reaches the price resistance level.



Testing the EA with the standard parameters:

After optimizing the parameters:

Reasonably good combinations are obtained during working on the future and the past, read the details in our journal:
http://www.fortrader.ru/ftgate.php?id=0&num=54

p/s All possible variables are outputted to the external parameters, you can pick up some good parameters for the intraday charts too, experiment. Testing with the ticks is dispensable. If you have any ideas about updating the EA or any questions, write.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/8212

ZigAndZag_trader ZigAndZag_trader

At Bookkeeper's request, I've made an "egzpert advizor" by the ZigAndZag indicator, published at: http://codebase.mql4.com/ru/3681

MultiIndicatorOptimizer MultiIndicatorOptimizer

The EA uses 5 indicators.

L_Correlation L_Correlation

The correlation coefficient between the quotes charts of two currency pairs.

Pendulum 1_01 Pendulum 1_01

The parameters of working - Places two starting pending orders for buying and selling (the size of the lot is calculated automatically on the basis of the deposit size and the maximum increase of leverage from 0.01 to 0.07 lots) taking into account th