Research report written by Geir Linløkken, 24 November 2014.
Published in English on 9 December 2014. Swedish original here >>
About the author
Geir Linløkken is the Head of Analysis and Research at Investtech, and is responsible for portfolios and money management. He founded Investtech in 1997, to provide independent technical analyses based on science and investor psychology. Mr. Linløkken has an MSc. in Computer Science, specializing in Mathematical Modeling, at the University of Oslo. He is the author of the book “Technical Stock Analysis”. His daily work includes analysing stocks and developing quantitative methods for stock market investments.
Keywords: Rectangle formations, buy signal, sell signal, Stockholm stock exchange, statistics, technical analysis.
Abstract:
Geometric price patterns, like rectangles, are used in technical analysis to predict future price development. Many investors use this as an important part of their decision making process when buying or selling stocks. We have looked at the price movements that followed buy and sell signals from rectangle formations on the Stockholm Stock Exchange in a period of 11 years, from 2003 to 2014. Stocks with buy signals have on average increased by 5.3 % after three months, while stocks with sell signals have increased 3.0 %. Compared to average stock exchange development in the same period, buy signals did 2.0 percentage points better and sell signals did 0.8 percentage points worse.
Identification of geometric price patterns in stock prices is an important area of technical analysis. The idea is that these patterns describe the investors’ mental state, i.e. whether they will want to sell or buy stocks in the time ahead, and they thereby indicate the future direction of the stock price. Rectangle formations are one type of such patterns.
The development of a rectangle formation indicates that the investors are unsure about the future direction of the stock. The price moves sideways between a support level and a resistance level. A break upwards mirrors the investors’ increasing optimism. According to technical analysis theory, the price will then rise by at least as much as the height of the rectangle, see figure 1.
In technical analysis terminology we say that a break upwards triggers a buy signal. Similarly a break downwards from a rectangle formation triggers a sell signal. We have investigated the price movements following buy and sell signals from rectangle formations on Sweden’s Stockholm Stock Exchange.
Identification of rectangle formations in stock prices is no simple task. The figure above shows that the price moves sideways between a clearly defined support level and a similar resistance level. However, stock prices are rarely as even as those in the illustration. Often there are rectangle-like figures where the support and resistance lines may be a little crooked or otherwise diverge.
Many investors identify rectangle formations by looking at price charts and drawing support and resistance lines by hand. This method has many weaknesses, most of all that it is subjective, allowing you to see the formations you want to see, and it is very time consuming. Therefore we need an automatic algorithm whereby computers identify the formations and the signals they trigger.
Investtech has studied technical and quantitative analysis since 1997. We have developed mathematical algorithms for automatic identification of rectangle formations in stock prices. The formations are entered into the technical analysis charts, shows in signal lists and presented updated daily to Investtech’s subscribers.
In this report we have looked at the price movements that follow buy and sell signals from rectangle formations on the Stockholm Stock Exchange. The statistics are based on rectangle formations automatically recognized by Investtech’s computer programs. No parameter optimization or changes to algorithms have been made during this study. This is an analysis based on the existing historical material.
We have used stock prices from 1 April 2003 to 10 October 2014 as the basis for the statistics. In this period, the benchmark reference index OMXS Benchmark GI rose from 157.6 to 666.4 points, which is 322 %, or approximately 13.3 % a year. Compared to the risk free interest rate in this period, this is a little higher than can normally be expected for similar periods of time.
In three of these 11 years, the exchange rose by over 30 %. In two of the years it fell by over 10 %. In six of the years the exchange ended from minus 10 % to plus 30 %. We have had both good and bad periods, and several sideways periods as well, and consider this representative for a normal period of time on the exchange.
All stocks that have been listed on OMXS, First North, Aktietorget or NGM Equity, hereafter called the Stockholm Stock Exchange, are included. However, we have data for these companies only for as long as they were listed. A company which went bankrupt will have a final trading price which is not zero, which is a weakness in this study. However, this is only the case for a small number of companies. Most companies also fall significantly before they are delisted, so the difference between the price fall from when they were listed and a price fall down to zero will be small.
It is also very rare that new buy signals are triggered from rectangle formations when a company’s stock price is falling. Therefore it matters very little to the statistics for buy signals. Return from sell signals would however have been a little weaker had we corrected for bankruptcies.It is our opinion that these conditions have minimal impact on the results of this study.
All prices are adjusted for splits, dividend payments, reverse splits, and other corporate capital changes, in order to reflect the actual value development of the stocks.
1,756 time series are included, of which 1,190 are stocks with at least 66 days of trading. At the end of the period, almost 600 stocks were listed.
The stock’s daily closing price is used. We have only used prices and turnover figures from the stock’s primary market place. Alternative markets like Chi-X, Bats and Burgundy are excluded.
We have used Investtech’s algorithms for automatic identification of rectangle formations. The algorithms were run on medium term charts made up of 395 price days, approximately 18 calendar months. We consider the algorithms good at identifying actual rectangle formations, and they do not classify indistinct rectangles as actual rectangles.
At identification of signals, only data up to the date the signal was triggered were used. The later data were hidden from the algorithm.
Basically all signals identified from rectangle formations are used. Normally each formation only triggers one signal. However, in rare cases they may trigger several signals. This happens if the price following the break reacts back into the formation, creates a modified formation and then breaks out again.
Sometimes one stock can also trigger several signals on the same day. This happens if the algorithms have recognized several formations of different length and height which are broken out from at the same time.
In order to have the data set as representative for the Stockholm Stock Exchange as possible, we remove certain signals from the data set:
Our data set now consists of 1,608 identified buy signals and 1,064 sell signals from rectangle formations in Swedish stocks in the period 2003 to 2014.
Figure 4: Price development following buy and sell signals from rectangle formations on the Stockholm Stock Exchange identified by Investtech’s automatic algorithms in medium term charts. Click the image for bigger version.
The chart shows average price development following buy and sell signals from rectangle formations. The signals are triggered on day 0. Only days when the exchange is open are included, so 66 days equal approximately three months. Buy signals are the blue line and sell signals are the red one. The shaded areas are the standard deviation of the calculations. The black line is the benchmark; OMXS Benchmark GI.
Buy signal | Day 1 | 10 | 22 | 66 |
Absolute | 100.28 | 101.40 | 102.43 | 105.83 |
Benchmark index | 100.06 | 100.60 | 101.28 | 103.79 |
Relative | 0.22 | 0.80 | 1.15 | 2.04 |
T-value | 2.80 | 4.42 | 4.11 | 3.88 |
Buy signals from rectangle formations identified in Investtech’s medium term charts have historically given increasing prices in the following months. On average, stocks that triggered buy signals have risen 5.8 % in the following three months. This is much better than index, which rose 3.8 % in the same period of time.
The increase is stronger the first few days following the signal, but the stocks keep rising both in absolute terms and relative to index during the whole period. In the first 22 days, equal to about the first month, the signal stocks rise by 0.10 % on average per day, estimated with least-squares method adapted to the yield curve. In the next 44 days, the stocks on average rise by 0.08 % per day.
The average figures are calculated based on 1,608 observations. This is a high number, which ensures that the estimates have quite good significance. The blue shaded area shows the standard deviation of the estimates. Assuming normal distribution, the average price development following buy signals from rectangle formations has a 68 % probability of falling within this interval.
After 66 days the return is t=3.88 standard deviations from the benchmark index. This high figure indicates that the results are significant. If we assume that conditions which influence stock market pricing, including the combined acts of investors, remain constant over time, the estimates indicate high probability that buy signals from rectangle formations identified in Investtec’s medium term charts will give better average return than index.
The average figures are significantly positive. However there is a great deal of variation from signal to signal. A count showed that 63.3 % of the signals gave return which was positive or zero after 66 days, while 36.7 % gave negative return. As such there is fairly high probability of losing money from one investment based on one buy signal from one rectangle formation. However, the statistics show that if this strategy is repeated many times, the probability is high that the combined return from all the trades will be markedly positive.
Sell signal | Day 1 | 10 | 22 | 66 |
Absolute | 100.01 | 99.99 | 101.01 | 103.00 |
Benchmark index | 100.06 | 100.60 | 101.28 | 103.79 |
Relative | -0.05 | -0.60 | -0.27 | -0.78 |
T-värde | -0.54 | -2.57 | -0.77 | -1.18 |
Sell signals from rectangle formations identified in Investtech’s medium term price charts have historically given a sideways development the following weeks, and weaker development than index. On average the stocks that triggered sell signals have risen 3.0 % the following three months, which is 0.8 percentage points lower than benchmark index.
The fact that stocks with sell signals show such strong development, even though they have underperformed compared to index, may be explained by the fact that the exchange in this period has shown stronger development than can be expected from a normal period of time. We must expect lower return from both buy and sell signals in periods where the exchange is generally weaker.
The average figures are calculated based on 1,064 observations and are considered to be significant. As is the case with buy signals, there is great variation from signal to signal. 43.1 % of sell signals gave return that was negative or zero after 66 days, while 56.9 % had positive return.
Figure 5: Price development at buy and sell signals from rectangle formations on the Stockholm Stock Exchange. The chart includes price development for 10 days before the signals were triggered to 66 days after. Click the image for bigger version.
The chart has the same content as the chart in figure 4, except that we have included price development for 10 days before the signals were triggered. Interestingly this shows that stocks with buy signals have risen a lot before the signal is triggered, whereas stocks with sell signals have fallen a lot.
The chart shows that stocks with buy signals from rectangle formations on average increased by some six per cent the last 10 days up to and including the day the signal was triggered. It can be psychologically difficult to buy a stock which has risen so much in such a short time. This may be part of the reason why the signals work as well as they do. In fact the stock ought to increase more, based on the news or other fundamental issues that may have triggered the signal, but due to investor psychology and human weakness it does not. Over time investors accept the basis for the price increase and become more positive, which gives a nice rise and good excess return relative to index in the following months.
The same is true for sell signals. The chart shows that stocks with sell signals from rectangle formations on average fall by some eight per cent in the ten days up to and including the day the signal was triggered. And they still continue to underperform relative to index in the following weeks and months. It can be psychologically difficult to sell a stock which has become so much “cheaper” in such a short time. It takes time before the actual conditions are understood, fundamental analyses are adjusted, and investors overcome their own psychological resistance to selling at lower prices. Thus the stock’s development is weaker than that of the index also in the period after the price fall which triggered the sell signal.
The results are based on average return figures. If any individual stock is extremely volatile, for example has a price increase of several hundred per cent, this may strongly impact the average figures. To investigate this, we have calculated how much each stock weighs in the calculation of the average figures.
In the calculations above we have included signals from stocks with an average daily turnover of at least half a million Swedish krone on the Stockholm Stock Exchange at the time the signal was triggered. Varying the liquidity parameters allows us to investigate if there is a difference in signal strength for smaller and bigger companies.
Drawing the line at five million krone splits the companies into two roughly similar groups. Signals from stocks with turnover below five million come to 1,288 signals, and those with turnover above five million come to 1,384 signals.
Compared to benchmark index, buy signals from the smaller companies have given an excess return of 2.8 percentage points, while the bigger ones have given 1.3 percentage points. Statistical measures of significance give T values of 3.0 and 2.6 respectively. Even if the bigger companies have given lower excess return, variation is smaller than for the smaller companies and the significance is almost the same.
Sell signals give significant negative excess return for smaller companies and neutral for the bigger ones.
This indicates that signals from rectangle formations are stronger for smaller companies. However, buy signals give significant excess return for both smaller and bigger companies.
We have studied return from stocks on the Stockholm Stock Exchange following breaks through rectangle formations in a period of 11 years, from 2003 to 2014. Investtech’s automatic algorithms identified a total of 1,608 buy signals and 1,064 sell signals from such formations. Buy signals gave an average return of 5.8 % in the following three months, while sell signals gave a return of 3.0 %. Relative to average benchmark index development, the buy signals gave an excess return of 2.0 percentage points, while the sell signals gave a negative excess return of 0.8 percentage points.
The time period for the study is fairly long, the quality of the data is considered to be good and the algorithms used are entirely automatic and deemed to identify only actual rectangle formations. Statistical measures suggest a high degree of significance.
That the observations come from a period where the exchange did better than can normally be expected means there is some uncertainty in these results. It would therefore be interesting to repeat the study later, covering a longer period of time.
Keywords: Buy signal,rectangle formation,Sell signal,statistics,Stockholm Stock Exchange,Technical analysis.
Die Anlageempfehlungen werden von Investtech.com AS ("Investtech") ausgearbeitet. Investtech übernimmt keine Haftung für die Vollständigkeit oder Richtigkeit der jeweiligen Analyse. Ein etwaiges Engagement aufgrund der aus den Analysen resultierenden Empfehlungen/Signale erfolgt zur Gänze für Rechnung und Risiko des Anlegers. Investtech haftet nicht für Verluste, die sich direkt oder indirekt infolge der Nutzung von Investtechs Analysen ergeben. Angaben zu etwaigen Interessenkonflikten gehen stets aus der Anlageempfehlung hervor. Weitere Informationen zu Investtechs Analysen finden Sie unter disclaimer.
Die Anlageempfehlungen werden von Investtech.com AS ("Investtech") ausgearbeitet. Investtech übernimmt keine Haftung für die Vollständigkeit oder Richtigkeit der jeweiligen Analyse. Ein etwaiges Engagement aufgrund der aus den Analysen resultierenden Empfehlungen/Signale erfolgt zur Gänze für Rechnung und Risiko des Anlegers. Investtech haftet nicht für Verluste, die sich direkt oder indirekt infolge der Nutzung von Investtechs Analysen ergeben. Angaben zu etwaigen Interessenkonflikten gehen stets aus der Anlageempfehlung hervor. Weitere Informationen zu Investtechs Analysen finden Sie unter disclaimer.