Technical analysis Chart analysis

Ominous Clouds. Will the Trend Change?

Елена Берсенева 28 December 2021 627 4 Ominous Clouds. Will the Trend Change?

This article considers the graphical analysis pair patterns named the "Dark Cloud Cover" and the "Piercing Line".


The Dark Cloud Cover and Piercing Line are attributed to reversal patterns.


Gregory L. Morris describes the Dark Cloud Cover pattern in the following way:


"Since it appears in an uptrend, the first day turns out to be a long white candlestick supporting this trend. The second day opens above the white day maximum. The price fall throughout the day leads to closing below the midpoint of the long white day."


The Dark Cloud Cover and the Piercing Line patterns:

Ominous Clouds. Will the Trend Change? - Photo 1

The Dark Cloud Cover consists of two candlesticks. The first pattern candlestick is formed in an uptrend. This is a light candlestick with a long body. The second one is dark. It opens above the maximum of the first candlestick and closes near its minimum.


The Covers signify a decline in the market which opens opportunities to place open-to-sale positions.


The Piercing Lines are different: after they appear, the trend tends to be upward, and this suggests placing buy-to-open positions.

Hypothesis
To conclusion

The Dark Cloud Cover and the Piercing Line are trend-change models.

To conclusion

Event detection method

Ominous Clouds. Will the Trend Change? - Photo 2

For the Dark Cloud Cover pattern, we will spot the pattern on charts in the following way:


  • Find an ascending trend by determining a consistently rising window of several candlesticks;

High[3] > High[4]

High[2] > High[3]


  • Find a combination of two candlesticks, the first one of which is white, and the second is dark. It must open above the maximum of the first candlestick and close near its minimum.

Close[2] > Open[2] (The second candlestick is bullish)

Close[1] < Open[1] (First candlestick is bearish)

Open[1] > Close[2] (The first candlestick opened with a gap up)

(Close[2] - Close[1]) * 100 / (Close[2] - Open[2]) > PP%

(Candlestick 1 must overlap the Candle 2 body by more than PP% - quality criterion)


  • The pattern is formed – place a buy-to-open position.


The way the Dark Cloud Cover is formed is outlined above. The Piercing Line is a mirrored version of this pattern.


We test the signals generated with Covers and Piercing Lines on a large volume of historical data refering to the various financial instruments and on two timeframes.


In addition, we test the patterns in three combinations optimising the conditional parameter: the percentage of candlestick overlap. Let us call it PP.


The PP overlap value is calculated with the following formula:


PP = ( Max(Close[1], Close[2]) - Min(Close[1], Close[2]) ) * 100 / S,

where S = Max(Open[2], Close[2]) - Min(Open[2], Close[2] )


The Dark Cloud Cover with the above parameter looks the following way (Fig.2):

Ominous Clouds. Will the Trend Change? - Photo 3

The figures illustrate Cloud covers, and the Piercing Line is a mirrored image of the pattern.


What is the model conditional parameter?

  • The percentage of candlestick overlap is the size of candlesticks relative to each other. The higher is the percentage of candlestick overlap, the stronger the black candlestick covers the white in the Dark Cloud Cover pattern (Piercing Line is different, the white candlestick overlaps the black one), and the more noticeable the patterns are.


Now, let's discuss the conditions for opening and closing a trading position.


Opening a position:

After the signal is formed, a position is opened at the opening of a new candlestick:

  • The Dark Cloud Cover pattern is a sell signal.
  • The Piercing Line pattern is a buy signal.


Closing a position:

In all conditions, the position lifetime is set to 5 or 10 (in candlesticks).

Data used

Next, we determine the set of financial instruments and their timeframes which we test the trading signal on. This sample will be given by:

  • 23 currency pairs (Forex);
  • 5 commodity futures (Commodities);
  • 2 stock indices (Indices);
  • 30 shares included in Dow30 (Stocks).


Timeframes used:

H1 (1 hour) – 5 - year history,

D1 (1 day) – 10 - year history.


The sample consists of 2,101,235 observations.

Having defined all the conditions and set the necessary parameters, let's go down to testing!



Analysis of the results


Firstly, we estimate the results by the sample size:



For the 1-hour timeframe (H1):



Type of financial instruments
Number of candlesticks
Number of events
Forex
994755
60853
Commodities
172240
8039
Indices
87600
4803
Stocks
628011
27665



For a daily timeframe (D1):


Type of financial instruments
Number of candlesticks
Number of events
Forex
83950
5406
Commodities
18250
935
Indices
7300
388
Stocks
109129
4139


Total: 2,101,235 candlesticks and 112,228 events (Covers and Piercing Line patterns).



Next what we analyse is the share of Covers and Piercing Lines (in %) in the total number of initial candlesticks by aggregating data from the two timeframes:


Covers/Piercing Lines Parameters
Forex
Commodities
Indices
Stocks
Average
30 PP
1.58
1.18
1.43
1.12
1.31
50 PP
1.00
0.74
0.91
0.68
0.81
70 PP
0.48
0.34
0.40
0.33
0.39


The results on grouping show that the distributions of Covers and Piercing Lines are roughly the same despite the type of the financial instrument.

  • Covers and Piercing Lines with the 30 PP parameter range from 1.12 up to 1.58 % of the total candlestick number;
  • Covers and Piercing Lines with 50 PP parameter range from 0.68 up to 1.00 % of the total candlestick number;
  • Covers and Piercing Lines with 70 PP parameter range from 0.33 up to 0.48 % of the total candlestick number.


Note that the more noticeable the Covers and Piercing Lines are, the smaller is their share in the total number of candlesticks.



Next, we consider the results of handled trading signals received from the patterns.


We evaluate the results according to two criteria:

  • Momentum (m) – reflects the average increment rate of financial quotes when fixing positions, in %. The positive momentum value indicates the profitability of the handled signal, a negative value indicates a loss.
  • SPP – the share of profitable positions, %.


Momentum in % and the share of profitable positions in % in terms of holding positions, timeframes and Covers/Piercing Lines parameters:


Indicator
5th candlestick
10th candlestick
H1
D1
30 PP
50 PP
PP 70
m
-0.052
-0.027
-0.039
-0.040
-0.020
-0.061
-0.039
SPP
48.3
48.2
48.4
48.1
49.0
48.3
47.4



Momentum in % and the share of profitable positions in % by financial instrument types.


Indicator
Forex
Commodities
Indices
Stocks
m
0.016
-0.117
0.050
-0.076
SPP
49.1
48.3
50.2
47.4


9 out of 11 average momentum values are negative.


We also can outline some peculiarities.


To do this, we can visualize the results in the form of momentum distribution (m) over each parameter (a holding period, timeframe, Covers and Piercing Lines (PP) parameters, type of financial instruments):

Ominous Clouds. Will the Trend Change? - Photo 4Ominous Clouds. Will the Trend Change? - Photo 5Ominous Clouds. Will the Trend Change? - Photo 6Ominous Clouds. Will the Trend Change? - Photo 7

The chart above illustrates the distribution of momentum depending on the parameters. The chart consists of two parts: a "box" and "tails" or "whiskers". 50% of the observed values are placed within the box, the remaining 50 are represented with tails. The end of the lower tail shows the smallest of the observed values, the end of the upper tail is the largest one. The cross shows the average value.


The analysis of the results allows us to make the following preliminary conclusions:

  • closing positions on the 10th candlestick minimizes the losses compared to the 5th candlestick.
  • the average momentum value on the hourly timeframe is higher than on the daily one, so it minimizes signal loss on hourly charts.
  • the signal is less profitable when the percentage of candlestick overlap is more than 30;
  • the best momentum is noted for Indices in comparison with other financial instruments.


Let’s review the results in terms of holding positions, timeframes, model parameters (the percentage of candlestick overlap) and types of financial instruments.


Take the notation keys:

«H1 / 5» – closing the position on the 5th candlestick when working on the 1- hour timeframe;

«H1 / 10» – closing a position on the 10th candlestick when working on the 1-hour timeframe;

«D1 / 5» – closing a position on the 5th candlestick when working on the daily timeframe;

«D1 / 10» – closing a position on the 10th candlestick when working on the daily timeframe;

SPP - the share of profitable positions, %,

PP - the percentage of candlestick overlap, %;



The number of Covers and Piercing Lines, Momentum in %, The share of profitable positions in %, in terms of holding positions, timeframes and types of financial instruments including the percentage of candlesticks overlap equal to more than 30


30 PP
Indicator
Stocks
Indices
Commodities
Forex
All
H1 / 5
Number
14549
2517
4209
31512
52787
Momentum
-0.040
-0.009
-0.047
-0.001
-0.024
SPP
49.1
48.2
46.8
49.2
48.9
H1 / 10
Number
14547
2517
4207
31509
52780
Momentum
-0.078
-0.013
-0.048
-0.003
-0.035
SPP
48.7
48.6
48.1
49.2
48,8
D1 / 5
Number
2172
193
461
2772
5598
Momentum
-0.041
0.060
0.042
0.007
0.017
SPP
49.8
49.7
50,0
49.7
49.8
D1 / 10
Number
2172
191
461
2768
5592
Momentum
-0.004
-0.163
-0.097
0.047
-0.054
SPP
47.4
47.1
49.3
49.9
48.5



The number of Covers and Piercing Lines, Momentum in %, The share of profitable positions in %, in terms of holding positions, timeframes and types of financial instruments including the percentage of candlesticks overlap equal to more than 50


50 PP
Indicator
Stocks
Indices
Commodities
Forex
All
H1 / 5
Number
8873
1596
2624
19859
32952
Momentum
-0.076
-0.014
-0.029
-0.001
-0.030
SPP
48.4
47.2
46.1
49.0
48.4
H1 / 10
Number
8872
1596
2624
19857
32949
Momentum
-0.127
-0.020
-0.082
-0.003
-0.058
SPP
48.2
48.0
47.9
49.2
48.6
D1 / 5
Number
1311
130
314
1723
3478
Momentum
-0.174
0.233
0.028
-0.005
0.021
SPP
48.3
53.1
50.7
48.1
48.6
D1 / 10
Number
1311
130
314
1722
3477
Momentum
-0.108
0.014
-0.115
0.033
-0.044
SPP
45.3
51.9
49.7
49.7
47.6



The number of Covers and Piercing Lines, Momentum in %, The share of profitable positions in %, in terms of holding positions, timeframes and types of financial instruments including the percentage of candlesticks overlap equal to more than 70


70 PP
Indicator
Stocks
Indices
Commodities
Forex
All
H1 / 5
Number
4243
690
1206
9482
15621
Momentum
-0.060
0.001
-0.063
-0.002
-0.031
SPP
47.1
47.7
45.6
48.4
47.5
H1 / 10
Number
4243
690
1206
9481
15620
Momentum
-0.024
-0.007
-0.055
-0.003
-0.022
SPP
48.0
47.4
48.0
49.0
48.4
D1 / 5
Number
656
65
160
911
1792
Momentum
-0.242
0.317
-0.423
0.062
-0.072
SPP
43.5
58.0
49.5
48.9
46.5
D1 / 10
Number
656
65
160
910
1791
Momentum
0.067
0.206
-0.516
0.062
-0.045
SPP
45.3
55.2
48.0
49.1
47.3



Summing up all the results using diagrams:

Ominous Clouds. Will the Trend Change? - Photo 8Ominous Clouds. Will the Trend Change? - Photo 9

So, we can draw the following conclusions.


The highest momentum of 0.021 % belongs to the signals generated by the Dark Cloud Cover and Piercing Line patterns on the daily timeframe, with the following model parameter: the percentage of candlestick overlap is more than 50.


However, the momentum obtained from the considered patterns is very small, i.e. we can attribute them to profit-neutral patterns.

Conclusion

Overall, the signal of the Dark Cloud Cover and Piercing Line patterns yield no profit.


Thus, we haven’t been able to establish the impact of the Dark Cloud Cover and Piercing Line patterns on the market.

Detailed results are presented in the appendix:

XLSX (0.49 MB)Applicationa to the article 'Clouds are coming. Will the trend change' eng.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.