Return following signals from rectangle formations – the Stockholm Stock Exchange 2003-2014

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.

Rectangle formations

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.

Figure 1: A stock develops a rectangle formation when the price moves sideways between a support line and a resistance line. If the price breaks up from the rectangle, it triggers a buy signal, and according to technical analysis theory the stock price will rise at least as much as the height of the formation. If the price breaks downwards, it triggers a sell signal, and the stock price will fall accordingly.

Rectangle formation buy

Figure 2: Buy signal from rectangle formation.

Rectangle formation sell

Figure 3: Sell signal from rectangle formation.

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

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.

The Base Data

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.

The Data Set

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:

  • Duplicate signals are removed. This will be the case when there have been mergers and ticker changes, where Investtech has two editions of the same historical time series.
  • Signals that are very close in time to a previous signal are removed. It is a requirement that there have been at least seven calendar days since the previous signal from the same stock in order for a new signal to be counted.
  • Formations that are less than 2 % in height are discarded. These are small and considered to have low signal value.
  • Signals from stocks with poor liquidity are discarded. This is because it is difficult for investors to make actual trades in such stocks, and also because the price is often uneven and with big leaps, making pricing uncertain and subject to noise.
    We discard signals where daily average turnover on the Stockholm Exchange in the past ten days including the signal day was lower than half a million Swedish krone (SEK) or where the stock was traded on less than half the days. This also removed all signals from the exchange indices, leaving us with signals from stocks and a few traded funds. The actual turnover of stocks that gave signals may have been above this limit, as trade in other markets than the Stockholm Exchange, like Chi-X, Bats and Burgundy, are not included.
  • Signals with less than 66 days' price history following the signals are removed. This gives complete price history for the first 66 days following the signals.

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.

Results

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 signals

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 signals

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.

Price development before signals are triggered

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.

Robustness against extreme volatility in individual stocks

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.

Figure 6: Weight per stock in the calculation of average price development following buy signals. The 10 most highly weighted stocks are indicated in their own sectors of the pie chart.

Figure 7: Weight per stock in the calculation of average price development following sell signals.

In the case of buy signals, the ten most heavily weighted stocks make up 10 % of the total. The remaining 90 % consists of 405 different stocks. For the sell signals, the most heavily weighted stocks make up 11 % of the total. The remaining 89 % consists of 368 different stocks.This shows that the average return figures are based on a wide selection of signals, and thus that the results are likely not due to extreme volatility in individual stocks.

The importance of liquidity

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.

Figure 8: Signals from companies with daily turnover between one half and five million krone.

Figure 9: Signals from companies with daily turnover above five million krone.

Figures 8 and 9 show that buy signals from the group of smaller companies have done better than buy signals from the bigger companies. At the same time, sell signals from the bigger companies have been better, i.e. the price development has been weaker, than for the smaller companies. A closer look at the numbers shows that return 66 days after buy signal is 6.6 % for the smaller companies and 5.1 % for the bigger ones. Return after sell signals is 1.8 % for the smaller companies and 4.2 for the bigger ones.

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.

Summary

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.

Literature

  • Investtech, help pages. Price formations. Link
  • Investtech, help pages. Buy signal from rectangle formation. Link
  • Investtech, help pages. Sell signal from rectangle formation. Link
  • Geir Linløkken. Buy signals from rectangle formations - how often are they successful? Investtech.com, 2005. Link
  • Geir Linløkken and Steffen Frölich. Technical StockAnalysis - for reduced risks and increased returns. Investtech.com, 2001.
  • John J. Murphy. Technical Analysis of the Financial Markets. New York Institute of Finance, 1999.

 

Keywords: Buy signal,rectangle formation,Sell signal,statistics,Stockholm Stock Exchange,Technical analysis.

Written by

Geir Linløkken
Head of Research and Analysis
at Investtech

"Investtech analyses the psychology of the market and gives concrete trading suggestions every day."

Espen Grønstad
Partner & Senior Advisor - Investtech
 


Investtech guarantees neither the entirety nor accuracy of the analyses. Any consequent exposure related to the advice / signals which emerge in the analyses is completely and entirely at the investors own expense and risk. Investtech is not responsible for any loss, either directly or indirectly, which arises as a result of the use of Investtechs analyses. Details of any arising conflicts of interest will always appear in the investment recommendations. Further information about Investtechs analyses can be found here disclaimer. The content provided by Investtech.com is NOT SEC or FSA regulated and is therefore not intended for US or UK consumers.


Investtech guarantees neither the entirety nor accuracy of the analyses. Any consequent exposure related to the advice / signals which emerge in the analyses is completely and entirely at the investors own expense and risk. Investtech is not responsible for any loss, either directly or indirectly, which arises as a result of the use of Investtechs analyses. Details of any arising conflicts of interest will always appear in the investment recommendations. Further information about Investtechs analyses can be found here disclaimer. The content provided by Investtech.com is NOT SEC or FSA regulated and is therefore not intended for US or UK consumers.

Titlex

OK
+

Cookie consent

We use cookies to give you a better user experience. If you continue to use the website, you accept this. For further details click here.

Our use of cookies

When you use our website, we store a cookie on your device. The cookie is used to recognize your device so that your settings work when you use our websites. The information that is stored is completely anonymised. Cookies are automatically deleted after a certain time.

Necessary cookies

Investtech uses cookies to ensure basic functions such as page navigation and language selection. Without such cookies, the website does not function as it should. You cannot therefore make a reservation against these. If you still want to disable such cookies you can do so in your browser settings. In the Cookies section add this website to the list of sites which are not allowed to save cookies on your device.

Cookies from Google

We use services from Google Analytics and Google AdWords. These register cookies on your device when you visit our website. Google registers your IP address in order to keep statistics on user activity on the website. The IP address is anonymised, so that we have no opportunity to link the activities to a specific person. We use these statistics to be able to offer more interesting content on the website and to constantly improve ourselves. Google AdWords collects data so that our advertising on other websites gives better results. We cannot trace the data of individuals.

Allow cookies from Google