Do Candlesticks Pattern Work? Backtest Of 23 Candlesticks (Trading Strategy) - Quantified Strategies (2024)

Candlesticks are a popular charting tool and are frequently used by promoters using anecdotal evidence. We use candlesticks in our charts ourselves, but not as a predictive tool in our trading strategies. In this article, we ask: do candlesticks work?

Yes, candlesticks work. We test 23 different candlestick patterns quantitatively with strict buy and sell signals. Perhaps surprisingly, some of the candlestick patterns work pretty well. Some of the patterns can highly likely be improved by adding one more variable. We provide the code for a small fee.


Candlesticks are a popular way to display quotes on a chart, something we have done since we read Gregory Morris’Candlestick Charting Explainedback in 1998. However, we have never implemented candlesticks in any of our quantified strategies.

Why do we use candlesticks in our charts? We agree with Mr. Morris, who writes this in the introduction of the book:

However, once you become accustomed to seeing Japanese candlestick charts, you will prefer them because their clarity is superior and allows a quick and accurate interpretation of the data.

Mr. Morris is right. Candlesticks are easy to digest once you get used to them. But do candlesticks have any predictive value? After all, we operate in the markets to make money, not to make nice visual graphs. Candlesticks might be popular, but we like to quantify to check for value.

Table of contents:

Candlesticks explained:

If you have never seen a candlestick, it might be a little confusing to start with, but once you get used to candlesticks, you get a much better visual look at the charts – for example, where the stock opened and closed. This is the primary reason, in fact, the only reason, why we use candlesticks when we look at charts.

A black candlestick means the open was higher than the close, while a white candlestick means the close is higher than the open. The difference between the open and the close is called “the body”. The “tails” on both sides are the high and low readings that day (or whatever time frame you are using):

Candlesticks might have an appealing and/or easy interpretation, but does it add any value?

Are candlestick patterns reliable?

A quick search on the internet reveals many articles touting candlesticks’ importance and what formations to look for. Endless articles explain the formations, but as usual, without any empirical evidence about their predictive power. That’s a shame because it’s relatively easy to test candlesticks. Further down in the article, we reveal some quantitative results from 23 formations.

What is the best candlestick pattern?

In the 100% quantified test below there are surprisingly many candlestick patterns that look promising. There are at least 5 patterns that have a decent amount of trades and a high profit factor.

How many candlestick patterns are there?

Exotic names like Hanging Man, Bullish Engulfing Pattern, Shooting Star, Bullish Hikkake, One White Soldier, Bearish One Black Crowe, Piercing Line, and Hammer are just a few of the candlestick patterns that exist.

But how many candlestick patterns are there? We counted at least 64! We suspect that this is not all of the candlestick patterns, and there are probably around 100 patterns available somewhere on the internet.

We have no idea how many candlesticks patterns there are, but if you like to know more about candlesticks, we recommend this page.

We picked the 23 candlestick patterns because we more or less had the backtesting code at our disposal.

Do candlesticks work best in daily or intraday bars? (Best settings)

We recommend using different time frames in trading, but the best time frame for candlesticks seems to be daily bars. Daily bars seem to be much more reliable than intraday and weekly bars. Among many, the reasons are that there are many more transactions in daily bars than intraday ones, and daily bars, in general, attract more attention.

How to quantify and backtest candlesticks (Entry and Exits):

To backtest candlesticks quantitatively, we need to make rules based on strict criteria. Like most things that can be labeled technical analysis, no specific or mathematical definition of the candlesticks formations exists. However, most of the formations can be fairly easily defined and are already done by many on the internet.

A strategy is not complete until you have exit criteria. Candlestick formations only look at “bullish or bearish” setups without considering any exit criteria.

Thus we need to make our own criteria for when to close the position. If you want to know our exit criteria and have the quantified code for all the 23 formations, please click on the link further down in the article under the heading called “Amibroker code for candlesticks”.

The exit criteria are a vital part of any strategy and can, of course, change results dramatically. Even a strategy based on random entry can generate splendid results using the “correct” exit criteria. And, honestly, when backtesting the candlestick formations, it would probably be fairer if we had different exits based on the number of days since entry. But we leave that backtest to another day.

Results and Performance: Do candlesticks work? A 100% quantified backtest

Some of the formations are meant as bearish formations. Nevertheless, we backtest all formations by buying, not selling/shorting.

We backtested the 23 formations on the S&P 500 using the ETF SPY from its inception in 1993 until the end of November 2020. The results are summarized in this table (the candlestick patterns are not revealed on purpose) :

Some of the formations give many signals, while others produce few signals. Only one formation produces negative returns.

What happens if we trade only the strategies with a higher profit factor than 1.5 from the table above? That is 12 patterns in total.

The compounded result is good: 975 trades, CAGR is 12.89%, the average gain is 0.36% per trade, max drawdown is 25%, and the profit factor is 2.02. The only negative year was 1994 and the total time spent in the market is 47%. The best year was 2020, with almost 41% return from 40 trades (!). Buy and hold was 9.9% during these 25 years.

The equity curve looks like this (no commissions and slippage):

The chart is compounded, starting with 100 000 in 1993.

We backtest Candelstick Patterns on QQQ, TLT, XLP, GLD, EEM and GDX

Do these 12 candlesticks patterns work on other ETFs (those formations with a profit factor above 1.5)? Here is a list of random samples:

  • QQQ (Nasdaq100): 12.9% CAGR
  • TLT (Bonds): 5.5% CAGR
  • XLP (Consumer Staples): 9% CAGR
  • GLD (Gold): 0.3% CAGR
  • EEM (Emerging Markets): 16% CAGR
  • GDX (Goldminers): 12.2 CAGR

Amibroker code for candlestick patterns:

We have developed code in Amibroker to backtest the 23 candlestick formations below. We have put in a great deal of time and effort to do this, and think it’s fair that we charge a fee for it.

If you want to have the Amibroker code for all the 23 formations, you can order it for via this link (23 candlestick formations Strategy no. 6):

BUY NOW

When you have paid, please press the link below to access the code (PDF file):

Media File(opens in a new tab)

Download 23 candlestick formations strategy no.6 by clicking here (you need to pay for access)

We also would like to give you a humble reminder about our subscription service called Trading Edges, where you get a monthly trading idea that can be used as a stand-alone strategy.

Why use Amibroker and not, for example, Tradestation?

  • Thoughts on Amibroker

How to trade and use candlesticks?

To improve the results, you might want to add a variable. This variable could, for example, be:

Conclusion: Do candlesticks work?

Do candlesticks work? Some candlestick patterns show some promise, but most of the formations give few signals. However, the slightly data-mined backtest of using the 12 best formations beat buy and hold. This is promising considering that the time spent in the market is 47%, and the drawdown is just half of buy and hold.

Depending on the candlestick patterns, candlesticks do work.

FAQ:

Do candlesticks work as a predictive tool in trading strategies?

Yes, candlesticks can work as a predictive tool. The article mentions testing 23 different candlestick patterns quantitatively with strict buy and sell signals. Some patterns have shown effectiveness, and the article suggests that additional variables could further improve their performance.

How many candlestick patterns exist, and are they reliable?

Candlestick patterns can offer insights into potential price movements. There are numerous candlestick patterns, with at least 64 mentioned in the article. The reliability of each pattern varies, and the article emphasizes the importance of empirical evidence. It suggests that some patterns have shown promise in quantitative testing.

What is the best candlestick pattern for trading?

The Research Paper mentions that in a 100% quantified test, several candlestick patterns showed promise, with at least 5 patterns having a decent number of trades and a high profit factor. The “best” pattern may vary based on individual preferences and trading strategies.

Do Candlesticks Pattern Work? Backtest Of 23 Candlesticks (Trading Strategy) - Quantified Strategies (2024)

FAQs

Do candlestick patterns actually work? ›

Patterns are separated into two categories, bullish and bearish. Bullish patterns indicate that the price is likely to rise, while bearish patterns indicate that the price is likely to fall. No pattern works all the time, as candlestick patterns represent tendencies in price movement, not guarantees.

How much accurate is candlestick pattern? ›

The average success rate of some of the most accurate candlestick patterns comes out to at most, about 55% when used alone.

Is candlestick pattern enough for trading? ›

When using any candlestick pattern, it is important to remember that although they are great for quickly predicting trends, they should be used alongside other forms of technical analysis to confirm the overall trend. You can learn more about candlesticks and technical analysis with IG Academy's online courses.

What is the success percentage of candlestick patterns? ›

The success rate of candlestick patterns can vary depending on the pattern but generally hover around 54-60%. The most successful is the Inverted Hammer, which has a 60% success rate. It also has an average profit potential of 1.12% per trade.

What is the most trusted candlestick pattern? ›

Which Candlestick Pattern is Most Reliable? Many patterns are preferred and deemed the most reliable by different traders. Some of the most popular are: bullish/bearish engulfing lines; bullish/bearish long-legged doji; and bullish/bearish abandoned baby top and bottom.

What is the downside candle pattern? ›

The downside gap filled candlestick pattern is a rare, three candlestick formation that occurs during a bearish trend. It begins with two days of what appears to be a continuation of the downtrend, long black candlesticks. There is a sizeable down gap between the two candlesticks.

What time frame is best for candlestick patterns? ›

If we talk about the best candlestick time frame for day trading, the most commonly used time frame charts for intraday trading time are the 5-minute candlestick chart and the 15-minute candlestick chart. The candlesticks have four points that are commonly called OHLC (open high low close).

How do you predict candlestick patterns? ›

How to Analyse Candlestick Chart
  1. If the upper wick on a red candle is short, then it indicates that the stock opened near the high of the day.
  2. On the other hand, if the upper wick on a green candle is short, then it indicates that the stock closed near the high of the day.
Feb 25, 2024

What is the 3 candle rule? ›

It consists of three successive candlesticks – the first is long and bearish and is followed by a smaller bullish bar that is completely engulfed by the first one. The third candle is bullish and closes above the second candle's high, suggesting a potential shift from a downtrend to an uptrend.

Why do candlestick patterns fail? ›

The fact that chart patterns are dependent on historical price movements and that past performance is not always a reliable indicator of future performance is one reason why they can fail.

Which is better chart pattern or candlestick pattern? ›

They help in finding a trade direction and managing risks. Candlestick patterns have fewer candles, but they can often confirm a trader's thoughts. Chart patterns have more candles and can offer a more significant trend indication, but they require patience and experience to identify.

How reliable is shooting star candlestick? ›

It is considered to be one of the most useful candlestick patterns due to its effectiveness and reliability. The long wick extending upside signals the buyers' inability to follow up on the earlier move higher, which provides the sellers with an opportunity to initiate a change in the price direction.

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6309

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.