Technical analysis Chart analysis

The Hammer Pattern is a Reversal Model. Is It Really So?

Елена Берсенева 15 December 2021 958 4 The Hammer Pattern is a Reversal Model. Is It Really So?

In the following series of articles, we are going to talk about such issues of great interest as chart patterns.


And we are beginning the series of articles devoted to chart patterns with the most famous pattern for all traders - the Hammer. Let's make it clear right away that there are many author-specific sources, schools, and directions where this pattern is called completely differently, which does not change its essence.

Hypothesis
To conclusion

In our research, we are going to stick to the interpretation given by one of the founders of Japanese candlestick analysis - Steve Neeson in his book "Japanese Candlesticks: Graphical Analysis of Financial Markets", published in 1991, where the Hammer chart pattern is marked as a characteristic reversal (or, at least, correctional) market model.

To conclusion

So, the following is what we mean by the Hammer in the rest of our research:


First, the Hammer must be preceded by two candlesticks with successively declining lows. With the Hammer itself, the low should also be below the low of the previous candlesticks. For the given example, we show a downtrend, and the Hammer here will be a reversal pattern for an upward movement.


Secondly, the distance from the lower border of the candlestick body to its high should be at least half of the height of the entire candlestick. At the same time, the color of the bodies of both the Hammer candlestick itself and its predecessors does not matter (the figure shows, for example, a situation when the open is higher than the close for all the three candlesticks).


Thirdly, we will assume that the two above-mentioned conditions are also true for the opposite (mirror situation) - Inverted hammer - a reversal pattern that is formed in a growing market. Steve Neeson, by the way, calls such pattern a Shooting star. But in order not to confuse the reader with unnecessary complications, we will also call it the Hammer for simplicity and convenience, since it does not really matter where the pattern is formed - at the top or the bottom of the price chart.

The Hammer Pattern is a Reversal Model. Is It Really So? - Photo 1

We suggest testing the resulting pattern on a large volume of historical data of completely different financial instruments and in the context of two timeframes.


In addition, we suggest testing the Hammer in three of its combinations, namely by adjusting the conditional parameter of the "body" of the candlestick. For convenience, let's conditionally call it T, and by it we mean the body of the candlestick plus a small tail, which may not exist if the open or the close coincide with the high.


So, we will consider the following combinations:

The Hammer Pattern is a Reversal Model. Is It Really So? - Photo 2

We introduced such combinations to determine whether the effectiveness of the Hammer will increase as the ratio "T" to the candlestick height decreases.



Now we are going to stipulate the conditions for opening and closing a trading position:


If the Hammer is formed, then open a buy (or sell) position at the open of the next candlestick.


Closing a position will be carried out in two modes. We fix it in the first test run at the close of the 5th candlestick following the Hammer, and in the second test run - at the close of the 10th candlestick. Thus, both profit and loss can be fixed.



Let us present the obtained six Hammer combinations for further testing in the form of a short table:


Т<= 10%, close on the 5th candlestick
Т<= 20%, close on the 5th candlestick
Т<= 30%, close on the 5th candlestick
Т<= 10%, close on the 10th candlestick
Т<= 20%, close on the 10th candlestick
Т<= 30%, close on the 10th candlestick
Data used

Next, we are going to define a list of financial instruments and their timeframes, on which we will be testing the Hammer. This sample will be represented by:

  • 23 currency pairs (Forex);
  • 6 commodity futures (Commodities);
  • 2 stock indices (Indices);
  • 30 stocks that are part of the Dow30 (Stocks).


Timeframes used:

H1 (1 hour) - 5 years of history,

D1 (1 day) - 10 years of history.


The sample is 2,124,495 values.

Having defined all the conditions and setting the necessary parameters, let's start testing!



Analysis of the results


First, we are going to estimate the results by the size of the obtained sample.



For 1 hour timeframe (H1):


Type of financial instruments
Number of candlesticks
Number of events
Forex
994755
39465
Commodities
191850
7908
Indices
87600
4288
Stocks
628011
34934



For daily timeframe (D1):


Type of financial instruments
Number of candlesticks
Number of events
Forex
83950
2709
Commodities
21900
693
Indices
7300
268
Stocks
109129
3920


Total: 2,124,495 candlesticks, 94,184 events (Hammers).



Next, let's see what is the share of the Hammer candlesticks in the total number of candlesticks in the sample in % in aggregate for two timeframes:


Type of financial instruments
Т <= 10
Т <= 20
Т <= 30
Forex
0.16
0.97
2.77
Commodities
0.34
1.08
2.57
Indices
0.42
1.35
3.03
Stocks
0.59
1.50
3.22
The average
0.38
1.23
2.90


Based on the results of the grouping, we can conclude that, regardless of the types of financial instruments, the distribution of the Hammers is approximately the same, namely:

  • Hammers with the parameter T <= 10 accounted for between 0.16 and 0.59% of the total number of candlesticks;
  • Hammers with the parameter T <= 20 accounted for between 0.97 and 1.5% of the total number of candlesticks;
  • Hammers with the parameter T <= 30 accounted for between 2.57 and 3.22% of the total number of candlesticks.


Now let's turn to the results of the trading signals processing, received as a result of the formed Hammers.


We are going to evaluate the results according to two criteria:

  • Momentum (m) - reflects the average percentage of increment of quotations of financial instruments at the moment of closing positions, in %. A positive impulse value indicates the profitability of signal processing; a negative impulse value indicates a loss.
  • SPP - share of profitable positions, %.


Momentum in % and share of profitable positions in % in the context of holding positions, timeframes and Hammer parameters:


Indicator
5th candlestick
10th candlestick
H1
D1
T<=10
T<=20
T<=30
m
0.067
0.129
-0.005
0.2
0.233
0.067
-0.007
SPP
51.1
49.1
48.7
51.5
50.5
50
49.7



Momentum in % and share of profitable positions in % by types of financial instruments:


Indicator
Forex
Commodities
Indices
Stocks
m
0.062
0.24
-0.042
0.102
SPP
50.1
48.2
52.1
50.4


8 out of 11 average momentum values are positive in terms of parameters.


At the same time, some features can be highlighted.


To do this, let us visualize the results in the form of momentum distribution (m) relative to each considered parameter (position closing candlestick, timeframe, Hammer parameter, type of financial instruments).

The Hammer Pattern is a Reversal Model. Is It Really So? - Photo 3

The diagram above shows the momentum distribution depending on the parameters under consideration. The diagram consists of two parts: "box" and "tails" or "whiskers". 50% of the observed values ​​are placed in the box, the remaining 50 are represented by tails. The end of the lower tail represents the smallest observed value, and the end of the upper tail represents the largest one. The cross shows the average value.


Analysis of the results allows us to draw the following preliminary conclusions:

  • the average value of the momentum when fixing positions on the 10th candlestick is located higher than the average value of fixing on the 5th one, which indicates a higher profitability of closing positions on the 10th candlestick;
  • of the reviewed timeframes, the best momentum (in comparison with the others) is noted on the daily charts (0.2%)
  • among the Hammer parameters the best momentum is noted with the body of the Hammer not more than 10% (0.233%).
  • the best momentum among financial instruments is observed on Commodities (0.24%).


Let's see how the Hammers have shown themselves in terms of the timing of holding positions, timeframes and types of financial instruments.


We are going to accept the following abbreviations:

  • "H1 / 5" - fixing a position on the 5th candlestick when working on the 1 hour timeframe;
  • "H1 / 10" - fixing a position on the 10th candlestick when working on the 1 hour timeframe;
  • “D1 / 5” - fixing a position on the 5th candlestick when working on the daily timeframe;
  • "D1 / 10" - fixing a position on the 10 candlestick when working on the daily timeframe;
  • SPP - share of profitable positions, %;
  • T <= 10, T <= 20, T <= 30 - parameters of the Hammer pattern.



The obtained sample sizes, momentum values ​​and shares of profitable positions with Hammer parameters T <= 10


H1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
807
4129
1709
504
7149
Momentum
-0.049
-0.09
-0.003
-0.025
-0.042
SPP
47.9
47.8
48.8
48.2
48.0
H1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
807
4129
1709
504
7149
Momentum
-0.081
0.093
0.001
-0.088
-0.019
SPP
46.5
49.5
49
41.7
48.1
D1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
43
171
86
17
317
Momentum
1.337
0.141
0.249
-0.011
0.429
SPP
53.9
56.4
57
65.3
55.8
D1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
43
171
86
17
317
Momentum
2.999
0.423
0.021
0.28
0.931
SPP
52.9
52.9
39
70.8
52.1



The obtained sample sizes, momentum values and shares of profitable positions with Hammer parameters T <= 20


H1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
3039
10049
10315
1743
25146
Momentum
-0.087
0.02
-0.007
-0.002
-0.019
SPP
48.2
49.1
48.2
48.2
48.7
H1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
3039
10047
10314
1743
25143
Momentum
-0.172
0.103
-0.011
-0.028
-0.027
SPP
47.8
49.9
48
46.5
48.8
D1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
230
947
638
97
1912
Momentum
-0.072
0.175
0.13
-0.154
0.02
SPP
46.3
50.7
57.1
55.5
49.8
D1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
230
946
636
97
1909
Momentum
-0.254
0.303
0.157
-0.581
-0.094
SPP
45
50
52
44.9
48.2



The obtained sample volumes, momentum values and shares of profitable positions with Hammer parameters T <= 30


H1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
7518
20758
29118
4005
61399
Momentum
-0.092
-0.009
-0.004
-0.006
-0.027
SPP
47.7
48.9
48.8
47.7
48.4
H1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
7516
20756
29114
4005
61391
Momentum
-0.146
0.019
-0.005
-0.020
-0.038
SPP
48.2
49.7
49.1
48.1
49.0
D1 / 5
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
741
2803
2109
304
5957
Momentum
-0.139
0.011
0.064
0.095
0.008
SPP
48.3
49.7
53.8
56.4
49.8
D1 / 10
Indicator
Forex
Stocks
Commodities
Indices
All
Quantity
738
2802
2106
304
5950
Momentum
-0.367
-0.006
0.083
0.038
-0.063
SPP
45.8
49.6
50.3
52.2
48.3



Let's summarize the results obtained using the diagrams:

The Hammer Pattern is a Reversal Model. Is It Really So? - Photo 4The Hammer Pattern is a Reversal Model. Is It Really So? - Photo 5

We see that the best impulse of 0.931% is shown by the Hammer signals on the daily timeframe, with the Hammer body not exceeding 10% and when fixing the position on the 10th candlestick (all types of financial instruments, especially currency pairs, are profitable).

Conclusion

Summing up, we can conclude that the signal of the Hammer pattern, according to the generally accepted interpretation, is profitable when the most pronounced Hammers are formed (T <= 10%) on the daily timeframe.


The influence of the Hammer pattern has been revealed.

The detailed results are presented in the appendix:

XLSX (0.18 MB)Application to the article 'The hummer'..xlsx

Comments

4

Write the comment

Commenting rules
Only authorized users can leave comments. Sign in, please.
Only users with verified email can leave comments. To verify your email, click on the link in the message that has been sent to your email address . Send an email for activation again.