How to techinally identify a "head and shoulder" chart pattern ?

 

Hi,


I would like to code an ea making an alert when a "head and shoulder" pattern

occurs in the market. I can to do some coding in MQ4 but I have no idea on

how to successfully program this function to identify perfectly the

pattern...Can you help me ? Check the chart below for such a pattern on eur/usd

currency symbol, H1 timeframe:

Thanks for helping ;)




OllyTrader

 
It's good question. Usually program packages (black boxes) use neuro or fuzzy for H&S identifications.
 

OT

Frankly, I'd be trading that nice range with an EA - 3 or 4 trades there plus pending breakouts through support & resistance :)

IMHO - Leave the 'big picture' stuff for discretionary trading

-BB-

 
ollytrader:

Hi,


I would like to code an ea making an alert when a "head and shoulder" pattern

occurs in the market. I can to do some coding in MQ4 but I have no idea on

how to successfully program this function to identify perfectly the

pattern...Can you help me ? Check the chart below for such a pattern on eur/usd

currency symbol, H1 timeframe:

Thanks for helping ;)




OllyTrader

 
ollytrader:

Hi,


I would like to code an ea making an alert when a "head and shoulder" pattern

occurs in the market. I can to do some coding in MQ4 but I have no idea on

how to successfully program this function to identify perfectly the

pattern...Can you help me ? Check the chart below for such a pattern on eur/usd

currency symbol, H1 timeframe: Thanks for helping ;)

OllyTrader

Hi Olly,

Interesting coding question. Thanks for sharing.

I'd suggest looking at some ZigZag EA's to start with.

The ZIgZag EA's already have the coding for finding the Hi/Low peaks like you show on your chart...

You could adjust them to find the 4 points you are using to create the "Head and Shoulders"...and draw the horizontal lines to connect A/C peaks and the 2 bottom low peaks.

I'm curious how you might trade this "Head and Shoulders" strategy?

Hope this helps,
Robert
 
ollytrader:

Hi,


I would like to code an ea making an alert when a "head and shoulder" pattern

occurs in the market. I can to do some coding in MQ4 but I have no idea on

how to successfully program this function to identify perfectly the

pattern...Can you help me ? Check the chart below for such a pattern on eur/usd

currency symbol, H1 timeframe:

Thanks for helping ;)




OllyTrader


If A == 0 the first touch with blue line 1 you make your point B == 2 the second touch with blue == 3 .......

A B and C are upperbuffers zigzag

touch with blue line lowerbuffers of zigzag if the last leg has also a zigzag (lower) value....(5) you can make your tradingconditions

Reason: