Candlestick patterns explained: how to read candles
By Oalgo · Last reviewed
A candlestick pattern is a named shape made by one, two or three candles, such as a doji, a hammer or a bullish engulfing candle. Each name describes where the candles opened, closed and reached. For a rule to use a pattern, the name has to be turned into exact comparisons of those prices.
What are the parts of a candle?
#- Open and close: the first and the last price of the period. If the close is above the open the candle is green, if it is below the open the candle is red.
- High and low: the highest and the lowest price reached in the period.
- Body: the distance between the open and the close. Range: the distance between the high and the low.
- Wicks: the thin lines above and below the body. Upper wick = high − the larger of open and close. Lower wick = the smaller of open and close − low.
| Made-up candle | Value |
|---|---|
| Open | 100 |
| High | 104 |
| Low | 96 |
| Close | 102 |
| Colour | Green, because the close is above the open |
| Body | 102 − 100 = 2 |
| Range | 104 − 96 = 8 |
| Upper wick | 104 − 102 = 2 |
| Lower wick | 100 − 96 = 4 |
What do the common patterns mean, and how can a rule define them?
#In everyday use the names are loose. A rule needs a definition with numbers in it. These are the definitions used on this page. Other people use other thresholds, and the same name can mean slightly different candles in different books.
| Pattern | One definition a rule could use | How people often read it |
|---|---|---|
| Doji | The body is smaller than 10% of the range. | Open and close almost equal, so neither side won the candle. Often read as indecision. |
| Hammer | The lower wick is more than twice the body, and the upper wick is smaller than the body. | Price fell during the candle and came back to close near the top. Often read as a fall that did not hold. |
| Inside bar | The high is below the previous high and the low is above the previous low. | A quieter candle inside the one before it. Often read as a pause. |
| Bullish engulfing | The previous candle is red, this one is green, its close is at or above the previous open and its open is at or below the previous close. | A green candle that covers the red candle before it. Often read as buyers taking over. |
| Three in a row | Three candles in a row with the same colour. | A steady push in one direction. |
What does a worked example look like?
#The first candle is red: open 102, high 103, low 99.5, close 100. The second is green: open 99, high 104, low 98.5, close 103. Its close, 103, is at or above 102, and its open, 99, is at or below 100, so it is a bullish engulfing candle by the definition above. The next table changes only the second candle and tests two versions of the definition.
| Second candle (the first is red: open 102, close 100) | At or above / at or below (the definition above) | Strictly above / strictly below |
|---|---|---|
| open 99, close 103 | Yes | Yes |
| open 100, close 102 | Yes | No |
| open 101, close 103 | No | No |
The middle row is a pattern under one definition and not under the other, with the same two candles. Check how a rule treats a tie before you trust a count of patterns.
When is a candlestick pattern known?
#A close is only known when its candle ends, so a pattern of two candles is known only when the second one has closed. A rule can act on it after that, not while the candle is still forming. Many people also wait for one more candle to confirm the pattern, for example a candle that closes above the pattern's high. Picking patterns out on a chart you already know uses that later information, and shows the patterns that were confirmed, not the ones that failed. This is lookahead bias.
How do people use candlestick patterns in rules?
#- A pattern at a level, for example a hammer whose low touches a support level.
- A pattern together with a trend condition, such as entering on a bullish pattern only while price is above a moving average.
- The same pattern tested on more than one timeframe, because the shape of a candle depends on its period.
- An exit when the opposite pattern appears.
What can candlestick patterns not tell you?
#A pattern describes what happened inside one to three candles. It does not say what the next candle will do. A loose definition finds many patterns, and many of them lead nowhere. Two people can disagree about whether a candle is a hammer, and the answer changes with the timeframe. Test the exact definition on past prices with a backtest before you rely on it.
In Oalgo you can tell Oalgo AI your candlestick rule, such as “enter after a bullish engulfing candle closes”, in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
Read next
- What are support and resistance levels?Support is a price level where a fall has stopped before, resistance one where a rise has. Learn how to define a level so a rule can use it, and its limits.
- Market structure: highs, lows and trend explainedMarket structure is the pattern of a chart's swing highs and swing lows. Learn higher highs, lower lows, break of structure and how a rule can define them.