Discussion of article "Reversal patterns: Testing the Head and Shoulders pattern"

 

New article Reversal patterns: Testing the Head and Shoulders pattern has been published:

This article is a follow-up to the previous one called "Reversal patterns: Testing the Double top/bottom pattern". Now we will have a look at another well-known reversal pattern called Head and Shoulders, compare the trading efficiency of the two patterns and make an attempt to combine them into a single trading system.

Head and Shoulders and Inverted Head and Shoulders patterns are among the most well-known and widely used graphical patterns. The name of the pattern clearly describes its graphical structure. The Head and Shoulders pattern is formed at the end of the bullish trend and provides sell signals. The pattern itself consists of three consecutive price chart tops. The middle top rises above the two adjacent ones, like a head above the shoulders. The middle top is called the Head, while the adjacent ones are called the Shoulders. The line connecting the bottoms between the pattern tops is called the neckline. The signals of the pattern having its neckline inclined to the left are considered to be stronger. The Inverted Head and Shoulders pattern is a mirrored version of Head and Shoulders indicating a bullish movement.

Head and Shoulders pattern

Most often, the pattern is formed in case of a false breakthrough of the price support/resistance level. Trend-following traders perceive a small correction (left shoulder top) as a good opportunity to increase their position. As a result, the price returns to the current trend and breaks the left shoulder level. After breaking through the current support/resistance level, the weakened trend is stopped by counter-trend traders increasing their positions, which leads to a new correction. A trend reversal is formed and the price falls below the level again (the head is formed). Another attempt to resume the trend demonstrates its weakness, a small movement is formed (the right shoulder). At this point, market participants notice a trend reversal. Trend-following traders exit the market en masse, while counter-trend ones increase their positions. This leads to a powerful movement and the formation of a new trend.

Author: Dmitriy Gizlyk

 

Hi.

I´m a newcomer and got the following errors when compiling the code.

ZigZag.mqh provide the errors

'Create' - unexpected token, probably type is missing? ZigZag.mqh 72 10

'Create' - function already defined and has different type ZigZag.mqh 72 10

'Calculate' - unexpected token, probably type is missing? ZigZag.mqh 89 10

'Calculate' - function already defined and has different type ZigZag.mqh 89 10

'AddExtremum' - unexpected token, probably type is missing? ZigZag.mqh 280 10

'AddExtremum' - function already defined and has different type ZigZag.mqh 280 10


Is there anyone with the same error?

Txs.

 

I have tried EA but 9 errors inmt5 script,

the same in Top bottom EA

 
SOARCH LA:

Hi Dmitriy,

Very enlightening and challenging article here. I loved the article and your codes but it seems due to mql5 updating.,..there is an error that keeps coming up with the class LimitTakeProfit,...

it says parameters passed as reference,..variable expected on these lines;

Can you help to figure how to resolve this,..

i have gone through the mql5 documentation and i have idea what it means ,..but still cant figure it out.

Thanks.

i solved this already,...i discovered this was probably a deprecated method in mt5

 
LaLau:

Hi.

I´m a newcomer and got the following errors when compiling the code.

ZigZag.mqh provide the errors

'Create' - unexpected token, probably type is missing? ZigZag.mqh 72 10

'Create' - function already defined and has different type ZigZag.mqh 72 10

'Calculate' - unexpected token, probably type is missing? ZigZag.mqh 89 10

'Calculate' - function already defined and has different type ZigZag.mqh 89 10

'AddExtremum' - unexpected token, probably type is missing? ZigZag.mqh 280 10

'AddExtremum' - function already defined and has different type ZigZag.mqh 280 10


Is there anyone with the same error?

Txs.

Add void just before the function definitions of Create,Calculate and AddExtremum. Cheers

 
SOARCH LA:

Add void just before the function definitions of Create,Calculate and AddExtremum. Cheers

 Thank you. It works.
 

This is the new results for GPUUSD/M30 the same conditions with article , only the date is up to now. it is not good....


 
thank you Dmitriy! you are a genius and doing so much for the community!
 
Plamen Zhivkov Kozhuharov #:
thank you Dmitriy! you are a genius and doing so much for the community!

Thanks.

 

Dmitriy,

this seems to have a very promising results, 

any way to maybe expand on this with your RL librarys and method?

thanks

 

like any other EA and robots...

don't waste your money. 

Forum on trading, automated trading systems and testing trading strategies

Discussion of article "Reversal patterns: Testing the Head and Shoulders pattern"

Amirmohammad Zafarani, 2020.11.01 19:51

This is the new results for GPUUSD/M30 the same conditions with article , only the date is up to now. it is not good....



Reason: