Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

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

Vues:
12694
Note:
(2)
Publié:
2008.06.27 08:27
Mise à jour:
2014.04.21 14:52
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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.

Traduit du russe par MetaQuotes Ltd.
Code original : 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