당사 팬 페이지에 가입하십시오
- 조회수:
- 12587
- 평가:
- 게시됨:
- 2008.06.27 08:27
- 업데이트됨:
- 2014.04.21 14:52
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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.
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/8212
![ZigAndZag_trader](https://c.mql5.com/i/code/expert.png)
At Bookkeeper's request, I've made an "egzpert advizor" by the ZigAndZag indicator, published at: http://codebase.mql4.com/ru/3681
![MultiIndicatorOptimizer](https://c.mql5.com/i/code/expert.png)
The EA uses 5 indicators.
![L_Correlation](https://c.mql5.com/i/code/indicator.png)
The correlation coefficient between the quotes charts of two currency pairs.
![Pendulum 1_01](https://c.mql5.com/i/code/expert.png)
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