Appearance

Personalize your experience

Mode
Accent Color
Direction
Candlestick

Candlestick

Candle

The most widely used chart type in financial markets, candlestick charts encode four-dimensional OHLC data into a visually rich body-and-wick format that reveals the balance of power between buyers and sellers in each period.

Origins & History

The candlestick chart has one of the richest and most fascinating origin stories in technical analysis. Its development spans centuries, continents, and cultures — from rice traders in 18th-century Japan to Wall Street quants in the 21st century.

The story begins with <Em >Munehisa Homma</Em > (1724-1803), a rice merchant from Sakata, Japan, who is widely credited as the father of candlestick charting. Homma traded rice on the <Em >Dojima Rice Exchange</Em > in Osaka, which was one of the world’s first organized exchanges, established in 1697. Homma developed a system for analyzing rice price movements that used patterns to represent the psychological state of the market. He documented his methods in a body of work known as the <Em >"Sakata Senho"</Em > or Sakata Strategies.

The Dojima Rice Exchange operated on a unique system. Rice was stored in warehouses and traders traded "rice tickets" — receipts for rice that had not yet been harvested. This created a market where prices were driven by supply expectations, weather patterns, and trader psychology. Homma observed that prices were influenced not just by supply and demand , but also by the emotions of the traders — fear, greed, hope, and regret. His candlestick patterns were designed to capture this emotional dimension.

Homma’s original system included patterns with evocative names like "Three Gaps," "Three Swords," "Three Rivers," and "Two Crows." Many of these patterns, while not all in common use today, established the vocabulary that modern candlestick analysis is built upon. The core insight — that the visual relationship between open, high, low, and close carries information about market psychology — has proven remarkably durable.

Candlestick charting remained largely unknown outside Japan until the late 20th century. The key figure in bringing candlesticks to Western markets was <Em ></Em >, who learned about the technique from a Japanese broker while working at Merrill Lynch in the 1980s. Nison recognized that candlestick charts provided a richer representation than the bar charts (also known as ) that were standard in Western charting. He published <Em >"Japanese Candlestick Charting Techniques"</Em > in 1991, which became the definitive reference work and introduced candlestick analysis to the global trading community.

Nison’s book was revolutionary because it translated centuries of Japanese market wisdom into terms that Western traders could understand and apply. He documented the major candlestick patterns, explained their psychological underpinnings, and provided evidence for their predictive . The book went through multiple editions and is still considered the essential reference for candlestick analysis.

The of candlestick charts accelerated rapidly through the 1990s and 2000s. Charting platforms like MetaStock, TradeStation, and later Thinkorswim and made candlesticks the default chart type. By the early 2000s, candlestick charts had become the most popular chart type in Western markets, a position they still hold today. Their clarity makes them the default choice for both retail and institutional traders.

In Quatick Charts, the candlestick implementation draws from both the traditional Japanese school and modern quantitative extensions, providing a rich set of tools for pattern recognition, analysis, and candlestick strategies.

Theory & Core Principles

The candlestick chart is built on a simple but powerful insight: the relationship between a ’s opening, closing, high, and low prices encodes information about the psychological battle between buyers and sellers that cannot be captured by a single closing price or a simple .

> The body as conviction.> The real body of a candlestick represents the area between the open and close prices. A body indicates strong conviction — buyers or sellers dominated throughout the . A small body indicates indecision — the battle was balanced, with neither side able to gain decisive control. The body is thus a of directional conviction, scaled by the magnitude of the price move.

> The wick as rejection.> The upper and lower shadows (wicks) represent prices that were reached but not sustained. A long upper wick on a bullish candle means that buyers pushed prices up, but sellers those levels and forced prices back down. A long lower wick on a bearish candle means that sellers pushed prices down, but buyers defended those levels. Wicks thus represent price rejection and indicate levels where the opposing side is active.

> Color as direction.> The color of the body provides immediate information. In Quatick Charts (Western convention), green candles are bullish (close above open) and red candles are bearish (close below open). This color encoding is processed by the brain faster than reading numeric values, allowing traders to assess market direction at a glance.

> Pattern recognition as probability.> Candlestick patterns are not deterministic predictions but probabilistic signals. A bullish engulfing pattern, for example, does not guarantee a price increase — it indicates that the odds favor an upward move based on historical observation. This probabilistic framework is essential for proper candlestick usage: patterns provide an edge, not a guarantee.

> Context is everything.> A candlestick pattern’s depends critically on the context in which it appears. A hammer pattern at a major support level on a daily chart during an uptrend is a much more reliable bullish signal than a hammer after a minor on a 15-minute chart. Candlestick analysis always requires consideration of the broader trend, support/resistance levels, volume confirmation, and market structure.

> Multi- confirmation.> While single-candle patterns (doji, hammer, marubozu) provide signals, the most reliable candlestick signals come from multi-candle patterns where the relationship between consecutive candles creates a narrative of shifting control. Two-candle patterns (engulfing, harami, piercing) and three-candle patterns (morning star, evening star, three soldiers) are generally more reliable than single-candle signals because they show the transition of control over multiple periods.

> The gap as .> Gaps between consecutive candles amplify the significance of pattern signals. A morning star pattern where the doji gaps down from the previous bearish candle and the final bullish candle gaps up from the doji is a much stronger signal than a morning star without gaps. Gaps represent unresolved that reinforces the psychological message of the pattern.

The Mathematics

The candlestick chart is built on four primary values per and a set of derived measures that quantify body-wick relationships.

> Body Size (BS) = |C − O|. The absolute difference between close and open prices. BS measures the magnitude of conviction. A BS relative to recent bars indicates strong conviction. BS is used for identifying marubozu (BS ≈ range) and doji (BS ≈ 0) patterns.

> Total Range (R) = H − L. The full of the . R includes both the body and the wicks. R represents the total price volatility for the period.

> Upper Wick (UW) = H − max(O, C). The length of the upper shadow. UW measures the extent of price rejection above the body. A UW relative to BS indicates that sellers higher prices.

> Lower Wick (LW) = min(O, C) − L. The length of the lower shadow. LW measures the extent of price rejection below the body. A LW relative to BS indicates that buyers defended lower prices.

> Body-to-Range Ratio (BRR) = BS / R. The proportion of the total range by the body. BRR ranges from 0 (doji, no body) to 1 (marubozu, full body). BRR> 0.7 indicates a strong bar. BRR < 0.3 indicates indecision.

> Wick Ratio (WR) = (UW + LW) / R. The proportion of the range by wicks. WR = 1 − BRR. WR> 0.7 indicates a wick-dominated bar with strong rejection patterns.

> Upper Wick Ratio (UWR) = UW / R. The upper wick as a proportion of total range. UWR> 0.5 indicates strong selling pressure at the high, even on a bullish candle.

> Lower Wick Ratio (LWR) = LW / R. The lower wick as a proportion of total range. LWR> 0.5 indicates strong buying support at the low, even on a bearish candle.

> Average Body Size (ABS) = SMA(BS, n) over n periods. The average conviction magnitude. Used as a for identifying unusually or small bodies.

> (GS) = |O_current − C_previous|. The gap between the current open and the previous close. GS> 0 indicates a gap. gaps amplify the significance of subsequent patterns.

Anatomy

Candlestick AnatomyOHLCUpper shadow (wick)CloseOpenReal topLower shadow (tail)HighLow
Detailed anatomy of a candlestick showing the real body, upper wick (shadow), lower wick (tail), open, high, low, and close.
Bullish vs Bearish CandlesBullishClose > OpenBearishOpen > CloseOpenCloseOpenClose
Bullish (green, close above open) vs Bearish (red, open above close) candle comparison.
Real Body
The rectangular area between the open and close prices. The body represents the 's conviction. A body = strong conviction; a small body = indecision.
Upper Shadow (Wick)
The extending from the top of the body to the high price. Represents the price reached and the of rejection from those levels.
Lower Shadow (Tail)
The extending from the bottom of the body to the low price. Represents the price reached and the of support at those levels.
Open
The first traded price of the . For bullish candles, the open is at the bottom of the body. For bearish candles, at the top.
Close
The last traded price of the . For bullish candles, the close is at the top of the body. For bearish candles, at the bottom.
High
The price traded during the . Marked by the top of the upper shadow.
Low
The price traded during the . Marked by the bottom of the lower shadow.
Bullish Candle (Green)
Close > Open. The body is typically with green in Western convention. Indicates net buying pressure during the .
Bearish Candle (Red)
Open > Close. The body is typically with red. Indicates net selling pressure during the .
Body To Range Ratio
The ratio of body size to total range. BRR > 0.7 = strong bar (marubozu-like). BRR < 0.3 = indecision (doji-like).

Construction Pipeline

The candlestick construction pipeline transforms raw into the familiar body-and-wick representation through a multi-stage process.

> Stage 1 — OHLC Aggregation:> The price engine collects all ticks for the (1-minute, 5-minute, daily, etc.) and computes the four essential values: the opening price (first ), the closing price (last tick), the high price (maximum tick), and the low price (minimum tick). These four values constitute the raw material for candlestick construction.

> Stage 2 — Body Computation:> The engine calculates the body boundaries. For a bullish candle (C> O): body_top = C, body_bottom = O, body_height = C − O. For a bearish candle (C < O): body_top = O, body_bottom = C, body_height = O − C. The body is drawn as a with optionally rounded corners. The body color is determined by the relationship between open and close.

> Stage 3 — Wick Computation:> The engine calculates the shadows. Upper shadow: from body_top to H. If H = body_top (no upper wick), the shadow has zero length. Lower shadow: from body_bottom to L. If L = body_bottom (no lower wick), the shadow has zero length. Shadows are drawn as thin lines (typically 1-2 pixels wide) centered horizontally on the body.

> Stage 4 — Styling & Rendering:> The engine applies the configured styling: body fill color, body border color, wick color and , body border radius, and . Candles are rendered in a single pass with GPU instancing, where each candle is rendered as two triangles (the body) and two lines (the wicks). The Quatick engine supports anti-aliased wick rendering for sharp, professional appearance.

Candlestick Patterns — Single Candle

Single-candle patterns provide immediate signals based on the relationship between body and wicks. While less reliable than multi-candle patterns, they are useful for quick market assessment and as components of larger pattern formations.

Doji VarietiesStandardO = CLong-leggedLong wicksDragonflyNo lower wickGravestoneNo upper wick
The four main types of doji — standard, long-legged, dragonfly, and gravestone — each conveying different market psychology.

> Doji:> A candle with a very or nonexistent body (O ≈ C). Doji represents indecision — after a of trading, the price ended almost exactly where it started. The meaning of a doji depends on its context and its wick structure. There are four primary doji :

> Standard Doji:> O = C with moderate wicks on both . Indicates general indecision. Significant after a sustained trend — suggests the trend is losing momentum. Alone, it is a , not a reversal signal.

> Long-Legged Doji (Rickshaw Man):> O = C with long wicks in both directions. Indicates extreme indecision with high volatility — the market explored both higher and lower prices but could not establish direction. This is the strongest doji variant for signaling potential reversals, especially when it appears after a prolonged trend.

> Dragonfly Doji:> O = C at the high of the , with a long lower wick. The opened, prices fell significantly, but then recovered to close at the high. This is a bullish reversal signal, especially in a downtrend — it suggests that buyers in to defend lower prices and pushed the market back to the day’s high.

> Gravestone Doji:> O = C at the low of the , with a long upper wick. The opened, prices rose significantly, but then fell back to close at the low. This is a bearish reversal signal, especially in an uptrend — it suggests that sellers higher prices and pushed the market back to the day’s low.

> Hammer:> A bullish reversal candle with a real body at the upper end of the range and a long lower wick (at least 2× the body length). The body can be either green or red, though a green hammer is more bullish. The hammer appears in downtrends, signaling that buying pressure has overcome selling pressure. The long lower wick shows that sellers pushed prices down but buyers aggressively in to reverse the decline.

> Shooting Star:> The bearish counterpart to the hammer. It has a real body at the lower end of the range and a long upper wick (at least 2× the body length). The shooting star appears in uptrends, signaling that selling pressure has overcome buying pressure. The long upper wick shows that buyers pushed prices up but sellers those levels and forced the price back down.

Hammer & Shooting StarHammerDown then up (bottom)Shooting StarUp then down (top)Long lower wickLong upper wick
Hammer (bullish reversal, lower wick at least 2× body) and Shooting Star (bearish reversal, upper wick at least 2× body).

> Spinning Top:> A candle with a real body (near the middle of the range) and wicks on both of roughly equal length. The spinning top indicates indecision — neither buyers nor sellers could establish control. When a spinning top appears after a sustained move, it suggests the trend is losing momentum. Spinning tops are patterns that caution against adding to positions in the current trend direction.

> Marubozu:> A candle with no wicks — the open equals the low (bullish) or the high (bearish), and the close equals the high (bullish) or the low (bearish). Marubozu means "close-cropped" or "bald head" in Japanese. A white marubozu (bullish, no wicks) indicates overwhelming buying pressure from open to close — buyers were in complete control throughout the . A black marubozu (bearish, no wicks) indicates overwhelming selling pressure. Marubozu are continuation signals — they the existing trend with extreme conviction.

Marubozu (No Wicks)White MarubozuOpen = Low, Close = HighBlack MarubozuOpen = High, Close = LowNo upper wickNo lower wick
White Marubozu (bullish, open = low, close = high, no wicks) and Black Marubozu (bearish, open = high, close = low, no wicks).

Candlestick Patterns — Two-Candle Patterns

Two-candle patterns reveal the transition of control from one to the next. They are generally more reliable than single-candle patterns because they show a change in the buyer-seller balance across consecutive periods.

Bullish EngulfingPrevious bearishNext bullishBullish body fullyengulfs previous bodyPrev bodyNew body (larger)Strong reversal signal at support
Bullish Engulfing — a green candle that completely engulfs the body of the preceding red candle.

> Bullish Engulfing:> A two-candle reversal pattern that appears in a downtrend. The first candle is a relatively bearish (red) candle. The second candle is a larger bullish (green) candle whose real body completely engulfs (covers) the real body of the first candle. The engulfing pattern shows that buying pressure has overwhelmed selling pressure. The larger the engulfing body relative to the first candle, the more significant the reversal signal. The upper wick of the second candle should ideally be small or absent, indicating that buyers maintained control through the close.

Bearish EngulfingPrevious bullishNext bearishBearish body fullyengulfs previous bodyPrev bodyNew body (larger)Strong reversal signal at resistance
Bearish Engulfing — a red candle that completely engulfs the body of the preceding green candle.

> Bearish Engulfing:> The bearish counterpart. The first candle is a relatively bullish (green) candle. The second candle is a larger bearish (red) candle whose real body completely engulfs the body of the first candle. This pattern appears in uptrends and indicates that selling pressure has overwhelmed buying pressure. As with the bullish variant, a larger engulfing body indicates a stronger signal. The lower wick should ideally be small or absent.

Harami (Bullish & Bearish)Bullish HaramiSmall bull inside big bearBearish HaramiSmall bear inside big bull
Bullish Harami (small green inside large red) and Bearish Harami (small red inside large green) — the opposite of engulfing.

> Bullish Harami:> A two-candle pattern that appears in a downtrend. The first candle is a bearish candle. The second candle is a smaller candle (bullish or bearish) whose real body is completely contained within the real body of the first candle. The name "harami" means "pregnant" in Japanese — the second candle is "inside" the first. Harami is the opposite of engulfing: instead of the second candle overpowering the first, it shows hesitation and potential exhaustion of the first candle’s momentum. The harami is a weaker reversal signal than the engulfing pattern and typically requires confirmation from a third candle.

> Bearish Harami:> The bearish counterpart. A bullish first candle is followed by a smaller candle (bullish or bearish) whose body is contained within the first candle’s body. This appears in uptrends and suggests that buying momentum is waning. Like the bullish variant, it requires confirmation.

> Piercing Line:> A bullish reversal pattern in a downtrend. The first candle is a bearish candle. The second candle opens below the first candle’s low (a gap down) but closes more than halfway up the body of the first candle. The piercing line shows that despite a lower open, buyers in aggressively and turned the bullish. The deeper the close penetrates into the first candle’s body, the more significant the reversal signal. A close above the midpoint of the first candle’s body is the minimum requirement.

> Dark Cloud Cover:> The bearish counterpart to the piercing line. The first candle is a bullish candle. The second candle opens above the first candle’s high (a gap up) but closes more than halfway down the body of the first candle. This shows that sellers higher prices and turned the bearish. The dark cloud cover pattern is one of the most reliable bearish reversal signals.

Piercing Line & Dark Cloud CoverPiercing LineBull closes > 50% of bear bodyDark Cloud CoverBear closes > 50% of bull body
Piercing Line (bullish, closes{'>'} 50% into prior bear body) and Dark Cloud Cover (bearish, closes{'>'} 50% into prior bull body).

> Bullish Harami :> A variant of the harami where the second candle is a doji. The doji inside the body of the first candle amplifies the indecision signal. This is a stronger reversal signal than a standard harami because the doji explicitly shows that the trend’s momentum has been neutralized. Bullish harami in a downtrend is a more reliable bottom signal. Bearish harami cross in an uptrend is a more reliable top signal.

Candlestick Patterns — Three-Candle Patterns

Three-candle patterns are among the most reliable in candlestick analysis because they show a complete narrative arc: the established trend, a transition , and the new direction.

Morning Star (Bullish Reversal)Three-candle bullish reversal:Bearish → Doji/Star → Bullish (gap closure)
Morning Star — a three-candle bullish reversal pattern formed by a bearish candle, a doji/small body, and a bullish candle that closes into the first candle’s body.

> Morning Star:> A powerful three-candle bullish reversal pattern that appears at the bottom of a downtrend. The first candle is a tall bearish candle (continuing the downtrend). The second candle is a -bodied candle (doji or spinning top) that gaps below the first candle’s close. This candle represents indecision — the downtrend has been paused. The third candle is a tall bullish candle that closes at least halfway up the body of the first candle. The morning star signals that selling pressure has been exhausted and buying pressure has taken control. The pattern is most reliable when there is a gap between the second and third candles as well (an "island" reversal structure).

Evening Star (Bearish Reversal)Three-candle bearish reversal:Bullish → Doji/Star → Bearish (gap closure)
Evening Star — a three-candle bearish reversal pattern formed by a bullish candle, a doji/small body, and a bearish candle that closes into the first candle’s body.

> Evening Star:> The bearish counterpart to the morning star. It appears at the top of an uptrend. The first candle is a tall bullish candle. The second candle is a -bodied candle that gaps above the first candle’s close. The third candle is a tall bearish candle that closes at least halfway down the body of the first candle. The evening star signals that buying momentum has exhausted and sellers are taking control.

Three White Soldiers & Three Black CrowsThree White SoldiersStrong sustained buyingThree Black CrowsStrong sustained selling
Three White Soldiers (three consecutive tall bullish candles with higher closes) and Three Black Crows (three consecutive tall bearish candles with lower closes).

> Three White Soldiers:> A /reversal pattern consisting of three consecutive long-bodied bullish candles. Each candle opens within the previous candle’s body and closes at or near its high, with each close higher than the previous close. The three soldiers show sustained, increasing buying pressure over three periods. When this pattern appears after a downtrend or consolidation, it is a strong bullish reversal signal. When it appears during an uptrend, it confirms . The pattern is most reliable when the candles have or no upper wicks (indicating that buyers maintained control through each close).

> Three Black Crows:> The bearish counterpart. Three consecutive long-bodied bearish candles, each opening within the previous candle’s body and closing at or near its low, with each close lower than the previous close. This pattern indicates sustained selling pressure. It is a strong bearish reversal signal after an uptrend. The pattern is most reliable when the candles have or no lower wicks.

> Morning Doji :> A variant of the morning star where the second candle is explicitly a doji. This is the most reliable form of the morning star pattern because the doji provides the clearest possible signal of trend exhaustion. The pattern requires the same structure: bearish, gapping doji, bullish that closes into the first candle’s body. Morning doji stars have higher win rates than standard morning stars in studies.

> Evening Doji :> The bearish counterpart. The second candle is a doji that gaps above the first bullish candle. The third candle is a bearish candle that closes into the first candle’s body. This is the most reliable form of the evening star pattern.

> Three Inside Up:> A bullish reversal pattern. The first candle is a long bearish candle. The second candle is a bullish candle that closes within the body of the first candle (the harami structure). The third candle is a bullish candle that closes above the close of the second candle. This pattern combines the harami’s hesitation signal with the third candle’s confirmation of the new bullish momentum.

> Three Inside Down:> The bearish counterpart. A long bullish candle, followed by a bearish candle within its body, followed by a bearish candle closing below the second candle’s close.

> Three Outside Up:> A bullish reversal pattern. The first candle is a bearish candle. The second candle is a bullish engulfing candle (its body engulfs the first candle’s body). The third candle is a bullish candle that closes above the second candle’s close. The engulfing on the second candle provides the initial reversal signal, and the third candle confirms the new trend.

> Three Outside Down:> The bearish counterpart. A bullish candle, a bearish engulfing candle, and a third bearish candle that closes below the second candle’s close.

Advanced Candlestick Patterns

Beyond the standard patterns, there are more complex formations that provide nuanced signals about market structure and impending moves.

> Tweezer Tops and Bottoms:> A two-candle pattern where the highs (tweezer top) or lows (tweezer bottom) of two consecutive candles are equal. In an uptrend, tweezer top suggests that a specific resistance level is holding. In a downtrend, tweezer bottom suggests that a specific support level is holding. The pattern is more significant when the bodies are of opposite colors (bullish then bearish for the top, bearish then bullish for the bottom).

> Abandoned Baby:> A rare and highly reliable three-candle reversal pattern. It is essentially a morning star (bullish) or evening star (bearish) where the middle candle is a doji that gaps completely away from both adjacent candles — there is a gap on each side of the doji. The "abandonment" of the doji creates an island reversal structure. This pattern is very reliable but occurs infrequently.

> Belt Hold Lines:> A single-candle pattern. A bullish belt hold is a white marubozu that opens at the low and closes at or near the high, with no upper wick. It appears in downtrends and signals that buyers have taken control from the opening . A bearish belt hold is a black marubozu that opens at the high and closes at or near the low, with no lower wick. It appears in uptrends and signals seller control from the open.

> Stick Sandwich:> A four-candle pattern. Candle 1 is bearish (red). Candle 2 is bullish (green). Candle 3 is bullish (green). Candle 4 is bearish (red) that closes at or near the same level as candle 1’s close. The pattern shows that despite two up days, sellers pushed prices back to the same level, suggesting strong resistance.

> Rising and Falling Three Methods:> A five-candle continuation pattern. Rising Three Methods (): a long bullish candle, followed by three bearish candles that trade within the first candle’s range (a ), followed by a fifth bullish candle that closes above the first candle’s high. This pattern shows a brief consolidation within a strong uptrend before the trend resumes. Falling Three Methods is the bearish counterpart.

> Upside/Downside Gap Two Crows:> A three-candle bearish pattern. Candle 1 is a tall bullish candle. Candle 2 gaps up and is bearish ( body). Candle 3 gaps down from candle 2’s close but closes within candle 1’s body. The pattern suggests that despite the initial gap up, sellers are gaining control.

> Matching Low:> A two-candle bullish pattern. Candle 1 is bearish. Candle 2 is also bearish and closes at exactly the same low as candle 1. The matching lows suggest that support is forming. If the next candle is bullish, a double bottom is confirmed.

> Concealing Baby Swallow:> A rare four-candle bearish pattern. Three consecutive black marubozu candles, the third gapping lower. The fourth candle is also black but with an upper wick that protrudes into the third candle’s body. This suggests extreme bearish momentum that may be exhausting.

Visual Configuration

candle.upColor
Type: string (CSS color). Default: "#34d399". The body fill color for bullish (close > open) candles.
candle.downColor
Type: string. Default: "#f87171". The body fill color for bearish (open > close) candles.
candle.wickColor
Type: string. Default: "#787b86". The color of both upper and lower wicks.
candle.wickWidth
Type: number. Default: 1.5. of the wick lines in pixels. Thicker wicks are more visible on charts.
candle.borderUpColor
Type: string. Default: same as upColor. The body border color for bullish candles. Can be set to a darker shade for .
candle.borderDownColor
Type: string. Default: same as downColor. The body border color for bearish candles.
candle.borderRadius
Type: number. Default: 1. Radius in pixels for rounded body corners. A radius (1-2px) softens the appearance.
candle.bodyWidthPercent
Type: number (0-100). Default: 60. The of the body as a of the bar spacing. 100% = touching adjacent candles.
candle.wickVisible
Type: boolean. Default: true. Turn wicks on/off. Disabling wicks creates a "range-less" candle that shows only the body.
candle.barColorsOnDownside
Type: boolean. Default: false. When true, bearish candles use the same color as bullish but with reduced .
candle.priceSource
Type: enum. Values: "close", "hlc3", "hlcc4", "". Default: "close". The price used for the body top/bottom. "close" uses actual O and C. "ohlc4" = (O+H+L+C)/4 for -like smoothing.
candle.drawBorder
Type: boolean. Default: true. Draw a border around the body. Disabling creates a flat body appearance.
candle.upWickColor
Type: string. Default: same as wickColor. Separate color for bullish candle wicks.
candle.downWickColor
Type: string. Default: same as wickColor. Separate color for bearish candle wicks.
candle.dojiHighlight
Type: boolean. Default: false. Highlight doji candles with a distinct marker (e.g., a above the candle).
candle.dojiBodyThreshold
Type: number. Default: 0.1. Maximum body-to-range ratio for a candle to be classified as a doji. 0.1 = body must be less than 10% of total range.
★
Pro tip:For maximum clarity, set candle.bodyWidthPercent to 80-90% and candle.borderRadius to 2px. This produces the clean, modern candlestick appearance used in professional trading platforms. For dense timeframes (1-min charts), reduce bodyWidthPercent to 40-50% to prevent adjacent candle overlap.

Interpretation Guide

Candlestick reading combines three layers of analysis: individual candle structure, multi-candle pattern recognition, and context integration with the broader market structure.

> Layer 1 — Candle Structure:> Each candle tells a story. A candle with a body and small wicks indicates a of conviction — one side dominated. A candle with a small body and long wicks indicates a period of rejection and indecision — both pushed but neither could sustain control. A marubozu (no wicks) indicates complete control from open to close. A doji indicates that neither side gained ground, despite whatever happened intra-period.

> Layer 2 — Candle Sequences:> The relationship between consecutive candles reveals the evolving balance of power. A bearish candle followed by a larger bullish candle that engulfs it shows a shift from seller control to buyer control. A series of three tall bullish candles (three soldiers) shows sustained buying pressure. A bullish candle followed by a doji shows that the buying momentum has paused. These sequences form the narrative arc of the price action.

> Layer 3 — Context Integration:> Patterns must be evaluated within the broader market context. A hammer in a downtrend at a major support level with high volume is a high-probability reversal signal. The same hammer in the middle of a range on low volume is noise. Always consider: (a) the direction and strength of the prevailing trend, (b) nearby support and resistance levels, (c) volume confirmation or divergence, and (d) the timeframe being analyzed.

Candlestick vs OHLC Bar ComparisonOHLC BarCandlestickBar shows OHLC as ticksHarder to read directionLess visual impactCandle shows body + wickDirection clear instantlyPatterns visually obviousSame OHLC data, different visual encoding
Candlestick vs OHLC Bar comparison showing how the same data is rendered differently.

Trading Strategies

> 1 — Engulfing Reversal:> Identify a trend (price above 50-day SMA for uptrend, below for downtrend). Wait for an engulfing pattern in the counter-trend direction. For a bullish engulfing in an uptrend , enter long at the close of the engulfing candle, with a stop below the low of the engulfing candle. Target: the prior swing high or 2× the . For a bearish engulfing, enter short with a stop above the engulfing candle’s high. This works best on daily and 4-hour timeframes.

> 2 — Morning/Evening Star with Confirmation:> Wait for a morning star pattern at a rising 50- MA (bullish) or an evening star pattern at a falling 50-period MA (bearish). Enter when the third candle closes. Stop beyond the (morning star) or highest high (evening star) of the pattern. Target: 2× the or the next major support/resistance level. The MA significantly improves the signal-to-noise ratio by ensuring the pattern aligns with the broader trend.

> 3 — Three Soldiers Three Crows Continuation:> Use three soldiers as a confirmation of an existing uptrend. Enter long when the third soldier closes above the prior two highs. Place a stop below the third soldier’s low. Use three crows as confirmation of an existing downtrend. Enter short when the third crow closes. This relies on the pattern as a continuation signal within an established trend rather than a fresh reversal.

> 4 — Doji Reversal:> After a , sustained move (10+ consecutive bullish or bearish candles with increasing body sizes), the appearance of a doji marks a potential trend exhaustion . Wait for the next candle to the reversal direction. For a doji after a bullish run: enter short when the candle after the doji closes below the doji’s low. For a doji after a bearish run: enter long when the candle after the doji closes above the doji’s high. The confirmation candle is essential because doji alone have poor predictive .

> 5 — Harami Continuation Counter-Trend:> A harami in a strong trend can signal a brief before continuation rather than a reversal. In a strong uptrend, a bearish harami ( red inside big green) often precedes another push higher as the pause refreshes buying interest. Enter long on the candle after the harami if it closes above the harami’s second candle. This counter-intuitive works because in strong trends, periods of apparent weakness (harami) are quickly absorbed.

Strengths & Advantages

  • richness: Candlesticks encode all four OHLC values in a single, visually intuitive format. The body-wick encoding is processed by the brain’s cortex faster than reading four numeric values, enabling rapid pattern recognition.
  • Pattern diversity: Over 50 documented candlestick patterns provide a comprehensive vocabulary for describing market states — from trend exhaustion (doji) to extreme conviction (marubozu) to shifting control (engulfing, harami) to sustained momentum (three soldiers, three crows).
  • Historical depth: Candlestick patterns have been refined over 300 years of practical trading, from Japanese rice markets to modern electronic exchanges. This long history provides a rich empirical foundation that newer lack.
  • Universal : Candlestick charts are the default chart type across virtually all trading platforms. This universality means that candlestick analysis skills are transferable across platforms, and candlestick terminology is a shared language among traders worldwide.
  • Psychological insight: Candlestick patterns directly reflect trader psychology — the battle between fear and greed, hope and regret. A long upper wick shows sellers rejecting higher prices (fear of overvaluation). A long lower wick shows buyers defending lower prices (fear of missing out). Patterns capture this psychological dimension that purely mathematical approaches miss.
  • versatility: Candlestick patterns work across all timeframes, from charts to monthly charts. The same patterns that work on 1-minute charts also work on weekly charts, though the and optimal pattern parameters differ across timeframes.
  • Complementary with indicators: Candlestick patterns combine naturally with technical indicators. For example, engulfing patterns near oversold levels, doji at Fibonacci levels, or three soldiers with increasing volume all provide stronger confirmation than any candle pattern alone.

Limitations & Caveats

  • Pattern subjectivity: Candlestick patterns can be subjective to identify. What one trader sees as a doji, another might see as a -bodied spinning top. What one sees as an engulfing pattern, another might see as a near-engulfing pattern that does not meet strict . This subjectivity leads to inconsistent application and .
  • Low of single patterns: Most single-candle patterns have win rates only marginally above 50% when traded in isolation. A doji, for example, is followed by an up move approximately 52-55% of the time depending on context — barely above breakeven when transaction costs are included. Multi-candle patterns perform better but still require confirmation.
  • False signals in ranging markets: Candlestick patterns generate an abundance of false signals in choppy, sideways markets. Engulfing patterns, doji, and hammers occur frequently in ranges but have poor predictive because the lack of a trend means there is no trend to reverse. Pattern filtering by trend regime is essential.
  • Over-reliance without volume confirmation: Candlestick patterns analyze only price . A beautiful bullish engulfing pattern on low volume may be a trap — a temporary price spike in a thin market rather than genuine buying conviction. Volume confirmation is essential for reliable pattern signals.
  • sample sizes in pattern studies: Many candlestick pattern studies suffer from sample sizes and survivorship bias. A pattern that appears 20 times in a 5-year chart of a single stock does not provide statistically significant evidence. Large-sample studies across multiple instruments and time periods are needed for reliable pattern assessment.
  • Gap sensitivity: Candlesticks represent gaps poorly compared to bar charts. A gap up followed by a flat day looks like a bullish candle, but the entire move happened in the opening — traders who did not get the opening fill could not participate. Understanding gap context is critical for accurate candlestick interpretation.
  • Timeframe dependence: The same pattern has different on different timeframes. A doji on a 1-minute chart is noise; a doji on a weekly chart is a significant event. Pattern reliability generally increases with timeframe length, but the number of pattern occurrences decreases. Traders must calibrate their pattern expectations to the timeframe.

Comparison With Related Types

> Candlestick vs :> Both encode the same four values, but candlesticks use the body-wick format while use a with left/ ticks. Candlesticks are generally preferred because the body provides an immediate sense of conviction that the OHLC bar lacks. Studies suggest that candlestick chart readers make faster and more accurate directional assessments than bar chart readers. OHLC bars remain useful for their simplicity in very dense charts and for traders who find the body distracting.

> Candlestick vs :> Hollow candles modify the body fill rule: a candle is hollow (unfilled) when close> previous close, regardless of the open-close relationship. This provides a different perspective — hollow candles focus on continuation vs reversal relative to the prior , while standard candles focus on intra-period conviction. Hollow candles are better for trend identification but lose the simple bullish/bearish binary of standard candles.

> Candlestick vs :> candles use modified OHLC values that price action. The HA formulas (HA_Close = (O+H+L+C)/4, HA_Open = (prev HA_Open + prev HA_Close)/2) produce candles with less noise and clearer trends. Heikin-Ashi is better for trend identification and avoiding whipsaws, but the smoothed values mean that HA candles do not represent actual traded prices. Standard candles are essential for precise price level analysis.

> Candlestick vs Line:> Line charts show only closing prices, discarding open, high, and low entirely. Candlesticks provide 3 additional dimensions per . Line charts are best for macro trend identification and long-term investment analysis. Candlesticks are essential for short-term trading where intra-period price action carries critical information about market structure.

Multi-Timeframe Analysis

candlestick analysis is the practice of examining candle patterns across multiple timeframes simultaneously to build a complete of market structure from macro trend to micro entry.

> Weekly → Daily — Macro Structure:> The weekly chart defines the primary trend direction and key support/resistance levels formed by weekly candle . A weekly doji after a 5-week rally is a major signal. A weekly engulfing pattern defines a structural turning . Daily candles are then analyzed within the weekly context. If the weekly trend is bullish, daily bearish patterns are viewed as opportunities rather than reversal signals.

> Daily → 4-Hour — Structure:> The daily chart provides the intermediate trend and meaningful candle patterns. A daily morning star at a weekly support level is a high-conviction setup. The 4-hour chart is used for timing entries and managing risk within the daily structure. For a bullish daily setup, look for a 4-hour ( bearish candle or doji) followed by a bullish 4-hour engulfing pattern as the entry .

> 4-Hour → 15-Minute — Fine Entry:> The 4-hour chart shows the -term pattern and provides the stop placement reference (e.g., below the 4-hour engulfing low). The 15-minute chart is used for entries. Wait for confirmation patterns on the 15-minute scale: a hammer at the 4-hour support level, or a bullish engulfing after a 15-minute . This approach transforms a daily candle pattern from a vague signal into a precisely actionable setup.

Advanced Techniques

> 1. Volume-Weighted Candlestick Patterns:> Standard candlestick patterns consider only price. Volume-weighted patterns add volume confirmation: a bullish engulfing with volume> 1.5× the 20- average is a much stronger signal than a low-volume engulfing. Volume weighting can be applied to any candle pattern. The Quatick engine supports volume-weighted pattern scanning, which filters out low-volume false signals and focuses on institutional-grade setups.

> 2. Candle Pattern Clustering:> Rather than trading isolated patterns, identify clusters of patterns that occur within 3-5 bars of each other. For example, a doji followed by a hammer followed by a bullish engulfing is a much stronger reversal signal than any of these patterns alone because the cluster shows repeated, reinforcing evidence of a shift in control. Pattern clustering increases win rates by 10-15% in studies.

> 3. Gap-Fill Candlestick Analysis:> Gaps create price inefficiencies that markets tend to fill. A gap-down open that produces a bullish engulfing pattern has strong predictive — the market is not only filling the gap but doing so with conviction. Track gap status alongside candle patterns: a pattern that a prior gap is more significant than one that does not. The Quatick engine can automatically label gaps and incorporate their status into pattern signals.

> 4. Exhaustion vs Continuation Candle Distinction:> A candle with an extremely body at the end of a trend may be an exhaustion move (climax) or a continuation move (). The distinction depends on the wick structure. If the large body candle also has a long wick in the opposite direction (e.g., a huge bullish body with a long upper wick), it is likely exhaustion — buyers pushed hard but got at the high. If the large body has a short or absent wick in the opposite direction, it is likely continuation. Use the wick-to-body ratio to quantify this distinction.

Common Mistakes

!
Caution:> Trading patterns without trend context.> The most common candlestick mistake is taking a reversal signal without checking the prevailing trend. A hammer in a strong downtrend is much more likely to be a temporary than a trend reversal. Always check the broader trend (50/200- MA, trend lines, higher timeframe) before acting on a pattern. Reversal patterns in the direction of the larger trend (e.g., bullish engulfing during an uptrend ) are more reliable than counter-trend patterns.
!
Caution:> Ignoring volume confirmation.> Candlestick patterns describe price structure but not . A textbook bullish engulfing on 50% of normal volume is a suspicious signal. It could be a low-liquidity event, algorithmic noise, or a deliberate price . Always check volume when evaluating candle patterns. Require volume at or above the 20- average for pattern confirmation. Patterns with volume confirmation have approximately 15-20% higher win rates.
!
Caution:> Forcing patterns on ambiguous candles.> Not every candle is a pattern. A red candle after a small red candle is not necessarily a "continuation pattern" — it could be random noise in a directionless market. Do not force candles into pattern categories when the are not clearly met. A candle that is "almost" a doji is not a doji. A candle that "nearly" engulfs the previous candle is not an engulfing pattern. Strict pattern criteria reduce false signals.
!
Caution:> Overtrading low-timeframe patterns.> Candlestick patterns on 5-minute and shorter timeframes have poor due to noise, spread, and random variation. A "hammer" on a 1-minute chart may be an artifact of a single trade rather than a meaningful reversal signal. Restrict pattern-based trading to timeframes of 15 minutes and above for consistent . Below 15 minutes, use patterns only as supplementary context, not as primary signals.

Indicator Compatibility with Candlestick Patterns

RSI + Engulfing
Bullish engulfing at < 30 (oversold) = high-probability long setup. Bearish engulfing at RSI > 70 (overbought) = high-probability short. RSI confirmation adds 15-20% to .
Moving Average + Three Soldiers
Three soldiers pulling back to a rising 50- MA = high-confidence continuation entry. The MA provides trend context for the continuation pattern.
Bollinger Bands + Hammer
Hammer at lower Bollinger Band with wide bands = statistically significant . Bands quantify the "extreme" context needed for reversal patterns.
MACD + Morning Star
Morning star at or below the zero line with MACD crossing up = strong bullish confluence. The MACD zero line acts as a momentum .
Fibonacci + Harami
Bearish harami at 61.8% Fibonacci in an uptrend = potential trend continuation rather than reversal. The Fib level provides context for harami interpretation.
Volume Profile + Engulfing
Engulfing at the Value Area Low (VAL) or High (VAH) with high volume = institutional rejection at a key level. Most reliable when confirmed by volume at the VP level.
ATR + Doji
Doji with at a 20- low = . Followed by expansion. This identifies the doji as a volatility squeeze signal rather than pure indecision.
OBV + Three Soldiers
Three soldiers with OBV making new highs = volume confirming the price move. Strong continuation. OBV making lower highs during three soldiers = bearish divergence, potential trap.

Timeframe-Specific Candlestick Behavior

1-Minute
Very noisy. Candle patterns have low (50-55% ). Best used for: -level entry refinement within a higher-timeframe setup. Only marubozu and massive engulfing patterns are actionable.
5-Minute
Moderate noise. Short patterns (doji, hammer) unreliable. Engulfing and three-candle patterns have 55-60% win rates with volume confirmation. Best for: intraday with volume .
15-Minute
Good balance of frequency and . Most patterns become viable. Morning/evening stars have 60-65% win rates. Best for: intraday swing trading.
1-Hour
Popular timeframe for candlestick analysis. Patterns have 60-70% win rates. Very low false signal rate. Best for: primary analysis and entry timing for multi-day .
4-Hour
Institutional timeframe. Patterns are highly reliable (65-75% win rates). Body sizes are and meaningful. Best for: swing trading and position trading.
Daily
Most analyzed timeframe. All patterns perform well (65-80% win rates depending on pattern and market). Daily doji are significant events. Best for: primary analysis and long-term trading.
Weekly
Low frequency, high . A weekly doji or engulfing is a major market event. Very few false signals. Best for: macro trading and investment timing. Weekly patterns define multi-month moves.

Instrument-Specific Candlestick Considerations

Equities (Large Cap)
Pattern : high. Volume is accurate and meaningful. Gaps are common and often fill. Best for: all patterns with volume confirmation. Weekday-only sessions create distinctive opening patterns.
Equities (Small Cap)
Pattern : moderate-low. Lower liquidity creates more wicks and noise. gaps common. Engulfing patterns are less reliable. Focus on large-body candles and ignore small patterns.
Index ETFs (SPY, QQQ)
Pattern : very high. Most liquid instruments in the world. Candlestick patterns work as well as textbooks suggest. Best for: pattern testing and learning candle analysis. Daily patterns are highly predictive.
Forex Major Pairs
Pattern : moderate. 24-hour market means open/close are less significant (determined by starts, not market opens). Gaps are rare (except weekend opens). Best for: long-wick patterns (rejection) and multi-session analysis.
Forex Minor/Exotic Pairs
Pattern : low. Wide spreads create noise. Low liquidity creates false wicks. Only -bodied patterns are actionable. Ignore doji and small-body patterns.
Cryptocurrencies
Pattern : moderate. 24/7 market. High volatility creates bodies and wicks. Patterns are present but more extreme. Gap analysis is less relevant. Best for: large-body engulfing and three-candle patterns. Very wide stops required.
Commodity Futures
Pattern : high. Regular hours. Volume is meaningful. Gaps at session opens are significant. Best for: gap-fill analysis combined with candle patterns. Seasonality effects add another dimension.
Bond Futures
Pattern : very high. Low volatility environment. Candle bodies are relatively compared to equities. Small body changes are meaningful. Engulfing patterns are rare but very significant.

Statistical Properties of Candlestick Patterns

Doji (generic, all contexts)
: 51-54%. Average reward:risk: 1.1:1. Frequency: moderate. Reliable only with trend context + volume .
Doji at trend extreme
: 58-62%. Average R:R: 1.5:1. Frequency: low. A doji after 5+ consecutive same-direction candles has predictive .
Hammer in downtrend
: 60-65%. Average R:R: 1.8:1. Frequency: low-moderate. Most reliable with high volume. Green hammer more bullish than red.
Shooting Star in uptrend
: 60-65%. Similar to hammer for the bearish side.
Bullish Engulfing
: 62-68%. Average R:R: 2.0:1. Frequency: moderate. Most reliable three-candle reversal pattern. Requires volume for best .
Bearish Engulfing
: 60-66%. Slightly less reliable than bullish variant in some studies, possibly due to bull market bias in historical .
Bullish Harami
: 55-60%. Average R:R: 1.5:1. Frequency: moderate. Weaker than engulfing. Requires confirmation from third candle.
Bearish Harami
: 55-60%. Similar to bullish variant. Requires confirmation.
Morning Star
: 65-72%. Average R:R: 2.2:1. Frequency: low. One of the most reliable patterns. Morning doji variant: 68-75% win rate.
Evening Star
: 63-70%. Average R:R: 2.0:1. Evening doji : 66-72%. Very reliable bearish reversal.
Three White Soldiers
: 65-70%. Average R:R: 1.8:1. Frequency: low. Strong /reversal. Most reliable in uptrend pullbacks.
Three Black Crows
: 63-68%. Average R:R: 1.8:1. Strong bearish signal.
Piercing Line
: 60-65%. Average R:R: 1.7:1. Close > 75% penetration is significantly more reliable than 50% minimum.
Dark Cloud Cover
: 58-63%. Slightly less reliable than piercing line in some studies.
Marubozu (continuation)
: 65-70%. Average R:R: 1.5:1. Frequency: moderate. Very reliable for continuation. Poor at reversals.
Rising Three Methods
: 60-65%. Average R:R: 1.6:1. Continuation pattern in strong trends.
Tweezer Top
: 55-60%. Average R:R: 1.4:1. Requires strict high equality. Often works better as a resistance signal than a reversal .
Abandoned Baby
: 70-80%. Average R:R: 2.5:1. Frequency: very rare. Most reliable pattern when it occurs, but may occur only 1-2 times per year per .
ℹ
Note: synthesized from multiple studies including Nison (1991), Morris (2006), Bigalow (2012), and the StockChart.com pattern database. vary by time , market, and timeframe. The data should be viewed as approximate guidelines rather than precise predictions.

Candlestick Pattern Recognition Algorithms

The Quatick Charts engine implements automated candlestick pattern recognition using a multi-stage detection pipeline. Patterns are detected in real-time as new candles form and are flagged with markers on the chart.

> Detection stage 1 — Classification:> Each completed candle is classified into a "" category based on its geometric properties: body size relative to range, wick lengths relative to body, and body position within the range. The classification feeds into a state machine that tracks the last 5-10 candles and their classifications.

> Detection stage 2 — Pattern matching:> The state machine compares the current candle sequence against pattern . Each pattern is defined by a sequence of candle classifications with geometric constraints. For example, a bullish engulfing pattern requires: candle N is bearish with body> 30% of range, candle N+1 is bullish with body fully enclosing candle N’s body, and both candles are within a single timeframe. Pattern matching runs at O(1) per new candle, making it suitable for real-time detection.

> Detection stage 3 — Scoring:> Each detected pattern receives a score based on: (1) pattern quality — how closely the candles match the ideal pattern geometry, (2) trend context — whether the pattern aligns with or against the prevailing trend, (3) volume confirmation — whether volume supports the pattern signal, (4) timeframe — higher timeframes receive higher scores. Patterns with scores above a configurable threshold are displayed on the chart.

Candlestick Chart API Configuration

candle.patternDetection
Type: boolean. Default: true. Enable automatic candlestick pattern detection and visualization.
candle.patternDisplayMode
Type: enum. Values: "markers", "", "both". Default: "markers". How detected patterns are shown.
candle.patternMinScore
Type: number. Default: 0.6. Minimum pattern quality score for display. Range: 0-1.
candle.detectPatterns
Type: string array. Default: all patterns. Specific patterns to detect. Example: ["engulfing", "morning-", "evening-star", "hammer", "doji"].
candle.patternColors
Type: object. Default: { bullish: "#34d399", bearish: "#f87171", : "#9598a1" }. Colors for pattern markers by direction.
candle.patternLabelFontSize
Type: number. Default: 8. Font size in pixels for pattern labels on the chart.
candle.dojiBodyThreshold
Type: number. Default: 0.1. Maximum body-to-range ratio for a candle to be classified as doji.
candle.hammerWickRatio
Type: number. Default: 2. Minimum wick-to-body ratio for hammer/shooting star classification.
candle.engulfingRequireFullBody
Type: boolean. Default: true. Require the engulfing body to fully enclose the prior body (not just the range).
candle.starGapRequired
Type: boolean. Default: true. Require a gap between the first and second candles for patterns.
candle.patternSoundAlert
Type: boolean. Default: false. Play a sound when a high-scoring pattern is detected.
candle.patternAlertScore
Type: number. Default: 0.85. Minimum score for sound alerts.

Behavioral Finance & Candlestick Psychology

Candlestick patterns are powerful because they capture universal psychological patterns that drive market behavior. The same emotions that Homma observed in 18th-century rice traders — hope, fear, greed, regret — drive modern markets.

> The psychology of the doji:> When a doji forms after a sustained trend, it represents a moment of collective indecision. Traders who were confidently buying suddenly . The doji says: "Nobody knows what to do now." This uncertainty is the seed of a potential reversal because conviction has evaporated. The market needs new information to decide direction. The first strong candle after the doji reveals where that conviction has shifted.

> The psychology of the long wick:> Long wicks represent failed price exploration. An upper wick in an uptrend shows that buyers pushed prices up but ran out of conviction (or found sellers) at the high. This failure creates "air" at that price level — traders who bought near the high are now underwater, increasing the supply of sellers near that level. Lower wicks in a downtrend create a "" — traders who sold near the low are now regretting it, reducing supply at that level.

> The psychology of the engulfing pattern:> An engulfing pattern represents a complete reversal of control. In a bullish engulfing, the first day’s sellers are trapped — they sold into weakness but the market reversed and traded through their selling price. The second day’s buyers are , pushing price above the entire prior day’s range. The trapped sellers create fuel for further upside as they are forced to cover. This structural gives engulfing patterns their predictive power.

> The psychology of the three soldiers:> Three white soldiers represent sustained greed with increasing conviction. Each day, buyers are willing to pay more than the previous day. There is no , no doubt, no hesitation. This relentless buying pressure is self-reinforcing — each higher close attracts more buyers. The pattern ends when a candle with a significant upper wick or body appears, signaling that the buying enthusiasm is finally meeting resistance.

Candlestick FAQ

Q: What is the best candlestick pattern?
A: The morning star (and evening star) have the best performance across most studies, with win rates of 65-72%. The abandoned baby variant has the (70-80%) but occurs very rarely. For frequency + balance, engulfing patterns (62-68%) are the most practical.
Q: Can I trade candlestick patterns alone?
A: Yes, but your will be 55-65% at best. Adding volume confirmation, trend filters, and support/resistance context improves win rates to 65-75%. Pattern trading without context is gambling, not analysis.
Q: What timeframe is best for candlestick analysis?
A: Daily and 4-hour charts provide the best balance of pattern frequency and . 1-hour is acceptable for active traders. Below 15 minutes, pattern reliability degrades significantly due to noise.
Q: Should I use Japanese or Western color conventions?
A: Both are valid. Quatick Charts to Western (green bullish, red bearish). Japanese convention (red bullish, green bearish) is available as a option. Choose based on your cultural context.
Q: How many candles do I need to confirm a pattern?
A: Single-candle patterns need 1 confirming candle in the expected direction. Two-candle patterns need 1 confirming candle. Three-candle patterns are self-confirming (the third candle provides confirmation). In all cases, volume confirmation on the signal candle is recommended.
Q: Why did my textbook pattern fail?
A: Common reasons: (1) no volume confirmation, (2) counter-trend pattern in a strong trend, (3) pattern appeared in a range/consolidation zone where patterns are unreliable, (4) low timeframe (below 15-min), (5) pattern was not textbook quality (ambiguous body/wick ratios), (6) -specific behavior (crypto patterns have different characteristics).
Q: Are candlestick patterns equally valid in all markets?
A: No. Index ETFs and -cap equities have the pattern . Forex and crypto have lower reliability due to 24/7 trading and gap behavior. Small-cap stocks and exotic pairs have the lowest reliability due to liquidity issues.

Combining Candlestick Patterns with Drawing Tools

Candlestick patterns become significantly more powerful when combined with Quatick Charts tools. The following combinations are particularly effective:

Candles + Trend Lines
Draw trend lines connecting candle wick highs/lows. A candle pattern that breaks through a with conviction (engulfing, morning star) provides a powerful combination of pattern + structure breakout.
Candles + Horizontal Lines
support and resistance at prior candle wick highs/lows. A doji at a support level is a more significant signal than a doji in isolation.
Candles + Fibonacci
Use Fibonacci retracements from swing candle highs/lows. A hammer at the 61.8% level in an uptrend is a high-conviction entry. The Fib level provides the " zone" context for the candle pattern.
Candles + Pitchfork
Draw Andrews Pitchfork from three key candle swing . Candle patterns that occur at the median line or at pitchfork channel boundaries are statistically significant reversal .
Candles + Measure Tool
Use the tool to quantify pattern targets. After a morning star, the typical target is the full range of the first candle (the bearish candle's high to low) to the entry. The measure tool provides profit targets for pattern-based .

Candlestick Educational Curriculum

A structured 8-week curriculum for mastering candlestick analysis, designed to build from basic candle reading to advanced pattern trading.

> Week 1 — Candle :> Learn to read individual candles. Identify body, wick, open, close, high, low on any candle in under 2 seconds. Classify candles as -body, small-body, doji, marubozu, hammer, and spinning top. Practice: review 100 historical candles and correctly identify each component.

> Week 2 — Single-Candle Patterns:> Deep dive into doji (all 4 variants), hammer, shooting star, spinning top, and marubozu. Learn each pattern’s psychological meaning, optimal context, and confirmation requirements. Practice: identify 50 single-candle patterns on historical charts, noting the context and subsequent price action.

> Week 3 — Two-Candle Patterns:> Study engulfing (bullish/bearish), harami (bullish/bearish), piercing line, dark cloud cover, tweezer tops/bottoms. Learn the relationship between consecutive candles and what it reveals about shifting control. Practice: identify 50 two-candle patterns and track their outcomes with and without volume confirmation.

> Week 4 — Three-Candle Patterns:> Morning star, evening star, three soldiers, three crows, three inside up/down, three outside up/down, rising/falling three methods. Learn the narrative arc of three-candle patterns. Practice: identify 30 three-candle patterns and win rates with and without trend context.

> Week 5 — Context Integration:> Learn to integrate trend analysis, volume, support/resistance, and timeframe context into pattern evaluation. Create a pattern scoring system that weights these factors. Practice: evaluate 50 patterns using a multi-factor scoring system and scores with actual outcomes.

> Week 6 — Analysis:> Practice analyzing patterns across weekly, daily, 4-hour, and 1-hour timeframes. Learn to cascade patterns: a daily morning star creates a bias; a 4-hour engulfing provides the entry; a 1-hour hammer fine-tunes the entry. Practice: 20 using pattern analysis.

> Week 7 — Pattern-Based Trading Strategies:> Develop and backtest 3 pattern-based strategies (e.g., engulfing reversal, doji exhaustion, three soldiers continuation). Test each on 2 years of historical for 3 different instruments. Record , R:R, , and frequency.

> Week 8 — Application & Journaling:> Apply patterns in a or account. Maintain a detailed trading journal that records: the pattern, context factors (trend, volume, support/resistance), entry/exit prices, and outcome. Review weekly to identify patterns in your own -making.

Candlestick Chart Historical Performance Notes

The performance of candlestick patterns varies across different market regimes and historical periods. Understanding how patterns perform in different environments is essential for realistic performance expectations.

> Bull market performance (2009-2021):> In secular bull markets, bullish patterns outperformed their historical averages while bearish patterns underperformed. Bullish engulfing had win rates of 65-72% in this . Bearish engulfing dropped to 55-60%. The strong upward trend meant that many bearish signals were quickly reversed. Bearish patterns near major support levels performed better than bearish patterns at resistance.

> Bear market performance (2000-2002, 2008):> In bear markets, bearish patterns outperformed (bearish engulfing: 65-70%) while bullish patterns underperformed (bullish engulfing: 55-60%). Three black crows were especially reliable, with win rates above 70%. Bullish patterns during bear markets were most reliable when accompanied by significant volume (capitulation signals).

> Sideways/range-bound performance:> In sideways markets, most candlestick patterns had win rates within 2-3% of 50% — essentially random. Engulfing patterns in ranges are particularly dangerous because they create the illusion of a reversal in a market that has no direction. The best approach in range-bound markets is to ignore candle patterns entirely and rely on range-based strategies (buy at support, sell at resistance).

> Volatile regime performance (2020, 2022):> During high-volatility regimes (COVID crash, 2022 inflation shock), pattern win rates decreased by 5-10% across all patterns. Wicks became longer and less reliable (more "noise wicks"). Body sizes increased but so did false breakouts. Volume-weighted patterns up better than pure price patterns during volatile periods.

Candlestick Chart Accessibility

Quatick Charts provides comprehensive accessibility features for candlestick charts to ensure they are usable by traders with impairments or color vision deficiencies.

> Color-blind :> When enabled, bullish candles use upward-pointing chevrons (^) pattern and bearish candles use downward-pointing chevrons (v) pattern within the body fill. The pattern is superimposed at 40% so it is visible but does not obscure the body color. This pattern-based encoding ensures direction is identifiable regardless of color perception. Additional texture patterns (hatching for bullish, -hatching for bearish) provide redundant encoding.

> High-contrast :> Candle bodies are outlined with a 3px black or white border (depending on ) for maximum contrast. Wicks are rendered at 2.5px . Doji candles are marked with a symbol above the candle. The open and close levels are labeled with small markers on the left side of each candle for precise reading.

> Screen reader support:> Each candle exposes all four OHLC values, body size, wick sizes, and detected patterns as accessible . Screen reader output example: "Candle at 10:00 AM. Open 150.25, High 152.50, Low 149.80, Close 151.75. Bullish. Body 1.50, Upper wick 0.75, Lower wick 0.45. Detected pattern: bullish engulfing."

> Keyboard navigation:> Use left/ arrow keys to move between candles. Each selected candle is highlighted with a thicker border and its OHLC values are displayed in a floating . Press P to enable pattern detection , which highlights all detected patterns on the visible chart range.

Performance Optimization for Candlestick Charts

Under 10,000 candles
Canvas2D. Full quality rendering with anti-aliased wicks, rounded body corners, gradient , and pattern detection enabled.
10,000-100,000 candles
Canvas2D with reduced wick anti-aliasing. Gradient disabled. Pattern detection limited to visible range.
100,000-1,000,000 candles
required. Wicks rendered as single-pixel lines. Body border effects disabled. Pattern detection: single-candle patterns only (doji, hammer, marubozu).
Over 1,000,000 candles
with downsampling. Display every Nth candle. No pattern detection. No border effects. Wicks at 1px solid color.
Real-time rendering
Only the forming (current) candle is updated on each . Completed candles are cached as pre-rendered textures. 60fps rendering guaranteed up to 500,000 candles.

Candlestick Chart Troubleshooting

Candles not showing
Cause: OHLC source not providing valid values. Solution: verify data feed is providing O, H, L, C values. Check for NaN or zero values. Candles require all four values to render.
All candles same color
Cause: upColor and downColor set to the same , or priceSource set to a value where O and C are always equal. Solution: check upColor/downColor . Verify priceSource is not set to a function that eliminates open-close differences.
Wicks not visible
Cause: wickWidth set to 0, wickColor same as , or wickVisible set to false. Solution: set wickWidth to 1.5+, check wickColor contrast, ensure wickVisible is true.
Candles too thin or too wide
Cause: bodyWidthPercent set too low (<30%) or too high (>90%). Solution: adjust bodyWidthPercent. 60-70% is standard. In dense charts, reduce to 40-50% to prevent overlap.
Pattern markers not appearing
Cause: patternDetection disabled, patternMinScore too high, or pattern not in detectPatterns list. Solution: enable patternDetection, lower minScore to 0.5, ensure desired patterns are in the detection list.
Gaps not shown
Cause: This is expected for candlestick charts — gaps are between candles, not shown visually. Solution: enable gap markers via candle.gapMarkers setting. Gaps will be shown as arrows between candles.
Body border not visible
Cause: drawBorder set to false, or borderUpColor/borderDownColor matching the body fill. Solution: enable drawBorder, set border colors to a darker shade of the body color.

Candlestick Pattern Reference Table

The following comprehensive catalogs every major candlestick pattern, its structure, psychological meaning, and recommended response. Patterns are organized by structure (single-candle, two-candle, three-candle, and complex).

Doji
Single candle. O ≈ C. or absent body. Indecision. Action: wait for next candle to direction. Doji alone is not a trading signal.
Long-Legged Doji
Single candle. O ≈ C with long wicks both . Extreme indecision with high volatility. Action: strongest doji variant — prepare for a potential reversal in the direction of the next strong candle.
Dragonfly Doji
Single candle. O = C = H, long lower wick. Bullish reversal. Action: if in downtrend, enter long on next candle close above doji high.
Gravestone Doji
Single candle. O = C = L, long upper wick. Bearish reversal. Action: if in uptrend, enter short on next candle close below doji low.
Hammer
Single candle. body at top, long lower wick (2×+ body). Bullish reversal in downtrend. Action: enter long when next candle confirms with higher close.
Shooting Star
Single candle. body at bottom, long upper wick (2×+ body). Bearish reversal in uptrend. Action: enter short when next candle confirms with lower close.
Spinning Top
Single candle. body centered, wicks both . Indecision. Action: reduce positions. Wait for clearer signal.
White Marubozu
Single candle. Open = Low, Close = High, no wicks. Overwhelming buying. Action: add to longs, or enter long if at breakout level.
Black Marubozu
Single candle. Open = High, Close = Low, no wicks. Overwhelming selling. Action: add to shorts, or enter short if at breakdown level.
Bullish Belt Hold
Single candle. White marubozu opening at the low. Buyers from the first . Action: strong bullish signal entering an uptrend.
Bearish Belt Hold
Single candle. Black marubozu opening at the high. Sellers from the first . Action: strong bearish signal entering a downtrend.
Bullish Engulfing
Two candles. bullish body fully contains prior bearish body. Complete shift to buyer control. Action: enter long at close of second candle. Stop below engulfing low.
Bearish Engulfing
Two candles. bearish body fully contains prior bullish body. Complete shift to seller control. Action: enter short at close of second candle. Stop above engulfing high.
Bullish Harami
Two candles. body (bull or bear) inside prior large bear body. Hesitation in downtrend. Action: wait for third candle confirmation. Enter long if third candle is bullish and closes above harami high.
Bearish Harami
Two candles. body (bull or bear) inside prior large bull body. Hesitation in uptrend. Action: wait for third candle confirmation. Enter short if third candle is bearish.
Bullish Harami Cross
Two candles. Doji inside prior bear body. Stronger hesitation. Action: more reliable than standard harami. Enter long on third candle bullish close.
Bearish Harami Cross
Two candles. Doji inside prior bull body. Action: reliable bearish signal. Enter short on third candle bearish close.
Piercing Line
Two candles. Bearish candle, then bullish opens below prior low and closes > 50% into bear body. Bullish reversal. Action: enter long at close of second candle.
Dark Cloud Cover
Two candles. Bullish candle, then bearish opens above prior high and closes > 50% into bull body. Bearish reversal. Action: enter short at close of second candle.
Tweezer Bottom
Two candles. Equal lows, opposite bodies. Support level tested twice. Action: if in downtrend, bullish reversal signal. Enter on third candle confirmation.
Tweezer Top
Two candles. Equal highs, opposite bodies. Resistance level tested twice. Action: if in uptrend, bearish reversal signal. Enter on third candle confirmation.
Morning Star
Three candles. Bearish, doji/ (gapped down), bullish closing > 50% into first. Action: highly reliable bullish reversal. Enter long at close of third candle.
Evening Star
Three candles. Bullish, doji/ (gapped up), bearish closing > 50% into first. Action: highly reliable bearish reversal. Enter short at close of third candle.
Morning Doji Star
Three candles. Bearish, doji (gapped down), bullish closing > 50% into first. Most reliable morning star variant. Action: strong long .
Evening Doji Star
Three candles. Bullish, doji (gapped up), bearish closing > 50% into first. Most reliable evening star variant. Action: strong short .
Three White Soldiers
Three candles. Three consecutive tall bullish candles with higher closes. Sustained buying. Action: enter long, add to longs. Trend is strong.
Three Black Crows
Three candles. Three consecutive tall bearish candles with lower closes. Sustained selling. Action: enter short, add to shorts. Trend is strong.
Three Inside Up
Three candles. Harami (bull inside bear) followed by bullish close above harami high. Bullish reversal. Action: enter long at third candle close.
Three Inside Down
Three candles. Harami (bear inside bull) followed by bearish close below harami low. Bearish reversal. Action: enter short at third candle close.
Three Outside Up
Three candles. Bullish engulfing of bear, followed by higher close. Strong bullish reversal. Action: enter long with confidence.
Three Outside Down
Three candles. Bearish engulfing of bull, followed by lower close. Strong bearish reversal. Action: enter short with confidence.
Rising Three Methods
Five candles. Tall bull, three bears within its range, tall bull above. . Action: hold longs, add on fourth or fifth candle.
Falling Three Methods
Five candles. Tall bear, three bulls within its range, tall bear below. . Action: hold shorts, add on fourth or fifth candle.
Stick Sandwich
Four candles. Bear, bull, bull, bear with same close as first. Strong resistance. Action: enter short at fourth candle close.
Abandoned Baby
Three candles. Bear, doji gap away (both ), bull gap away. Island reversal. Action: pattern. Enter on third candle close.
Upside Gap Two Crows
Three candles. Bull, bear gap up, bear gap down into first body. Bearish. Action: short entry on third candle close.
Downside Gap Two Crows
Three candles. Bear, bull gap down, bull gap up into first body. Bullish. Action: long entry on third candle close.
Concealing Baby Swallow
Four candles. Three black marubozu (third gapping down), fourth black with upper wick. Bearish exhaustion. Action: prepare for bullish reversal.
Matching Low
Two candles. Two bears with equal closes. Support forming. Action: bullish if next candle is bullish. Double bottom potential.
Matching High
Two candles. Two bulls with equal closes. Resistance forming. Action: bearish if next candle is bearish. Double top potential.

Candlestick Pattern Combinations & Strategy Cascading

The most sophisticated candlestick approach involves combining multiple patterns across different timeframes into a cohesive trading thesis. A single pattern is a signal; a combination of patterns across timeframes is a conviction.

> Bullish Confluence Example:> The daily chart shows a doji after a 7-day (trend exhaustion). The 4-hour chart shows a bullish engulfing pattern at the doji\'s low ( buying at the indecision ). The 1-hour chart shows three white soldiers confirming the move (sustained intraday buying). This three-timeframe confluence of three different patterns — exhaustion doji, engulfing reversal, and continuation soldiers — provides a high-conviction bullish signal. Enter long with a stop below the daily doji low.

> Bearish Confluence Example:> The daily chart shows a shooting star at a prior resistance level. The 4-hour chart shows a dark cloud cover pattern at the shooting star\'s high. The 1-hour chart shows a bearish harami (doji inside bear) confirming the move. This combination of resistance rejection, trend reversal, and hesitation at the micro level creates a strong bearish case. Enter short with a stop above the daily shooting star\'s high.

> Pattern Cascade Rule:> A pattern on a higher timeframe (daily) establishes the bias. A pattern on the intermediate timeframe (4-hour) provides the . A pattern on the lower timeframe (1-hour) fine-tunes the . The patterns do not need to be the same type — they need to agree on direction. A daily doji + 4-hour engulfing + 1-hour soldiers is a valid cascade because all three indicate bullish intent.

Candlestick Chart Data Export

CSV export
Timestamp, Open, High, Low, Close, Body, UpperWick, LowerWick, BodyRangeRatio, PatternDetected. Full candle for external analysis.
JSON export
Structured format with per-candle OHLC, derived values (body, wick ratios), and detected patterns. Ideal for algorithmic consumption.
Parquet export
format for -scale candle analysis. 40× vs CSV. Perfect for pattern strategies across thousands of instruments.
Pattern-only export
Export only the candles where patterns were detected, with pattern type, score, and context . Lightweight feed for signal integration.
Image export (PNG/SVG)
Chart with detected pattern . Useful for trade journals, signal sharing, and educational materials.

Keyboard Shortcuts for Candlestick Charts

P
Toggle pattern detection markers on/off. Shows detected candlestick patterns with labels.
N
Cycle pattern detection : all patterns, reversal only, continuation only, single-candle only.
C
Toggle candle color scheme: standard (green/red), Japanese (red/green), monochrome, or color-blind optimized.
B
Toggle body border on/off. Borders add definition to candle bodies on low-contrast displays.
W
Toggle wick . Hiding wicks creates a simplified "range-less" candle view.
Arrow keys
Navigate between candles. Selected candle shows detailed OHLC values and detected patterns in the .
Hover
over any candle to see: O, H, L, C, body size, wick sizes, BRR, and any detected patterns.
Shift + Click
Select a range of candles. The shows summary : average body size, wick ratio, number of bullish/bearish candles, and detected patterns in the range.
Z
Zoom to selection. After selecting a candle range with Shift+Click, press Z to zoom the chart to that range.
G
Toggle grid lines. Grid lines at major price levels help with candle reading and pattern assessment.

Candlestick Glossary

Real Body
The or hollow between open and close prices. Encodes conviction.
Upper Shadow (Upper Wick)
The line from body top to high. Represents price rejection at higher levels.
Lower Shadow (Lower Wick)
The line from body bottom to low. Represents price rejection at lower levels.
Doji
A candle with O ≈ C (very body). Indicates market indecision.
Dragonfly Doji
Doji with a long lower wick and no upper wick. Bullish reversal signal.
Gravestone Doji
Doji with a long upper wick and no lower wick. Bearish reversal signal.
Long-Legged Doji
Doji with long wicks on both . Extreme indecision.
Marubozu
Candle with no wicks (Open = Low and Close = High for bullish, or Open = High and Close = Low for bearish). Indicates complete control.
Hammer
body at the upper end of the range with a long lower wick. Bullish reversal in downtrend.
Shooting Star
body at the lower end of the range with a long upper wick. Bearish reversal in uptrend.
Spinning Top
body centered in the range with wicks on both . Indecision.
Engulfing
Two-candle pattern where the second candle's body fully contains the first candle's body. Powerful reversal signal.
Harami
Two-candle pattern where the second candle's body is fully inside the first candle's body. Trend hesitation signal.
Morning Star
Three-candle bullish reversal: bearish, doji/ body (gapped down), bullish closing into first body.
Evening Star
Three-candle bearish reversal: bullish, doji/ body (gapped up), bearish closing into first body.
Three White Soldiers
Three consecutive long bullish candles with rising closes. Strong buying momentum.
Three Black Crows
Three consecutive long bearish candles with falling closes. Strong selling momentum.
Piercing Line
Two-candle bullish: bearish candle followed by bullish candle closing > 50% into the bearish body.
Dark Cloud Cover
Two-candle bearish: bullish candle followed by bearish candle closing > 50% into the bullish body.
Body-to-Range Ratio (BRR)
BS / R. Proportion of range by the body. BRR > 0.7 = strong . BRR < 0.3 = indecision.
Sakata Senho
The original set of candlestick strategies developed by Munehisa Homma in the 1700s.
Gap
A price discontinuity between consecutive candles where the current open is above the prior high (gap up) or below the prior low (gap down).
Island Reversal
A pattern where price gaps in one direction, for 1-5 periods, then gaps in the opposite direction, leaving the isolated candles as an "island."
Window
Japanese term for a gap. A rising (gap up) is bullish; a falling window (gap down) is bearish.
Yorikiri
Japanese term for a candle that closes at the high, indicating overwhelming buying from open to close.
Hikkake
A false breakout pattern — price moves beyond a prior candle's high/low but immediately reverses, trapping traders who chased the breakout.

Real-Time Pattern Detection & Alerts

Quatick Charts provides a comprehensive real-time candlestick pattern detection engine that analyzes each new candle as it forms. The engine runs at candle close (when all four OHLC values are finalized) and compares the completed candle against the pattern database.

> severity levels:> Patterns are classified into three severity levels. Level 1 (Informational): single-candle patterns like doji, spinning top, and standard hammers. These patterns a marker but do not generate alerts. (): two-candle patterns like engulfing, harami, piercing line, and dark cloud cover. These patterns generate a chart annotation and an optional desktop notification. Level 3 (Critical): three-candle and complex patterns like morning star, evening star, three soldiers, three crows, and abandoned baby. These patterns generate a full with sound, desktop notification, and optional email/SMS.

> configuration:> Traders can configure which patterns alerts, the minimum pattern quality score, and the notification method. Configuration supports pattern whitelisting (only on selected patterns) and blacklisting (ignore selected patterns). The alert system also supports confirmation: only trigger an alert when a pattern on the primary timeframe is confirmed by a pattern on a higher timeframe.

> Pattern history:> All detected patterns are stored in a searchable history log. For each pattern, the history records: timestamp, , timeframe, pattern type, quality score, OHLC values of the constituent candles, and the subsequent price outcome (if available). This history enables traders to evaluate the effectiveness of specific patterns in their trading context and refine their pattern selection over time.

Machine Learning & Candlestick Pattern Analysis

The intersection of machine learning and candlestick pattern analysis represents the cutting edge of pattern-based trading. While traditional candlestick analysis uses human-defined pattern , ML approaches can discover new patterns that humans have not documented.

> Supervised learning approaches:> Train a classifier (random forest, XGBoost, neural network) on labeled candle sequences where the label is whether the subsequent n- return was positive or negative. Features include: body size, wick ratios, body position, BRR, gap status, and sequential features from the last 5-10 candles. Research shows that ML classifiers achieve 55-65% accuracy on prediction using only candle features — marginally better than individual human-defined patterns but with better generalization across instruments.

> Unsupervised pattern discovery:> Use clustering algorithms (DBSCAN, k-means with DTW distance) to discover groupings of candle sequences. These clusters often correspond to known patterns but may also reveal subtle variants that human analysts have not defined. For example, clustering might discover that a "nearly doji" with a specific wick ratio has predictive even though it does not meet the strict doji definition.

> Deep learning with raw candle images:> Convolutional neural networks (CNNs) applied to raw candlestick chart images can detect patterns without explicit feature engineering. This approach captures the Gestalt that experienced human candle readers use — the overall "look and feel" of a pattern that is difficult to quantify with geometric rules. CNN-based pattern detection has shown promising but requires substantial training and is computationally expensive for real-time application.

> Transfer learning across instruments:> A pattern detection model trained on S&P 500 can be fine-tuned for forex or crypto with additional data. The candle shapes are universal — only the pattern-to-outcome mapping varies across markets. Quatick Charts provides an ML pattern detection API that supports pre-trained models for major classes with optional fine-tuning using the user\'s own historical data.

Candlestick Pattern Backtesting Framework

candlestick pattern strategies requires careful attention to several methodological issues that can significantly impact .

> :> The most common error in candlestick . A pattern is only known at the close of the last candle in the pattern. For a morning star, the pattern is confirmed at the close of the third candle. Any entry before this close uses information not yet available. Backtests must use the close of the pattern\'s final candle as the (or the next open). Using intra-candle for pattern detection introduces and inflates win rates.

> Pattern frequency and :> Many candle patterns occur infrequently on higher timeframes. A pattern that occurs 20 times on a daily chart over 5 years does not provide a statistically significant sample. Minimum sample sizes should be 100+ occurrences for reliable . This often requires testing across multiple instruments or using lower timeframes for pattern development.

> Survivorship bias:> Testing patterns only on instruments that still exist (survived) biases upward. Failed companies and delisted instruments are excluded, removing the worst outcomes. Pattern backtests should include a survivor-bias-free dataset for realistic results. Quatick Charts includes survivorship-bias-free historical for major indices and ETFs.

> Transaction costs and slippage:> Candle pattern strategies often generate frequent signals. A that enters on every bullish engulfing pattern with a 62% may still be unprofitable after transaction costs. Include realistic costs: $0.005/share for equities, 0.5 pip for forex, 0.1% for crypto. Test costs at 1× and 2× the current level to ensure strategy robustness.

> Out-of-sample testing:> Develop pattern strategies on 70% of historical (training set) and test on the remaining 30% (test set). If the performs significantly worse on the test set, it is overfit to the training data — the patterns are not generalizing. True pattern requires consistent performance across both training and test periods. Quatick Charts includes an automated train/test split tool for pattern .

Candlestick Chart Rendering: Advanced Topics

The Quatick Charts candlestick rendering engine employs several advanced techniques to deliver high-quality visuals across different display environments.

> Anti-aliased wick rendering:> Wicks are rendered using sub-pixel rendering with blending. The wick line is drawn as a 1.5px wide line with 50% on the outer 0.5px and 100% opacity on the inner 1px. This produces a , sharp-looking wick without the jagged appearance of standard 1px lines. The wick cap (the at the end of the wick) is rendered with the same anti-aliasing for a consistent look.

> Body rendering with GPU instancing:> Each candle body is a rendered via . The instance includes: position, body height, , body color, border color, and border radius. The vertex shader computes the rectangle geometry from the instance data. The fragment shader handles border rendering and rounded corners. This approach renders 10,000+ candles in a single draw call.

> resolution adaptation:> On high-DPI (Retina) displays, candles render at 2× resolution for crisp appearance. On standard displays, 1× rendering with FXAA (Fast Approximate Anti-Aliasing) provides a look at lower performance cost. The engine automatically detects the display DPI and selects the appropriate rendering .

> Candle pre-caching for scrolling:> Completed candles are cached as off-screen textures. When scrolling, the engine blits the cached textures rather than re-rendering each candle. Only the forming (current) candle is rendered in real-time. This pre-caching enables 60fps scrolling even with 100,000+ candles loaded. Pre-cache invalidation occurs only when chart settings (colors, , border radius) change.

Volume-Weighted Candlestick Analysis

Volume is the essential companion to candlestick analysis. A candlestick pattern tells you what happened to price; volume tells you how many market participants participated in that price move. Patterns without volume confirmation are incomplete signals.

> Volume confirmation thresholds:> For a candlestick pattern to be considered volume-confirmed, the average volume across the pattern\'s constituent candles should exceed the 20- average volume by at least 20%. For engulfing patterns, the second candle\'s volume should be at least 1.5× the first candle\'s volume. For three-candle patterns, the volume trend should align with the pattern direction: increasing volume for bullish patterns (each candle more volume than the last), decreasing volume for bearish patterns in some cases (exhaustion).

> Volume-weighted candle classification:> Each candle\'s classification can be modified by volume. A "high-volume doji" is more significant than a standard doji — it indicates that despite heavy , neither side could move the market, which is a stronger indecision signal. A "low-volume marubozu" is suspicious — the overwhelming buying or selling occurred with participation, suggesting it may be a low-liquidity event rather than genuine conviction.

> Volume divergence in candle patterns:> When price forms a bullish pattern (morning star, bullish engulfing) but volume is declining across the pattern\'s candles, it is a volume divergence — the bullish signal is not supported by increasing . These divergences have poor outcomes. Conversely, a bearish pattern with declining volume may indicate selling exhaustion rather than the start of a new downtrend. Always check the volume trajectory across pattern candles.

References & Further Reading

Candlestick Chart Seasonal & Cyclical Patterns

Candlestick patterns can exhibit and cyclical variations that affect their . Understanding these temporal effects can improve pattern-based trading decisions.

> Day-of-week effects:> Monday candles tend to have smaller bodies and more gaps due to the weekend information accumulation. Friday candles often exhibit larger bodies and position-squaring behavior before the weekend. Engulfing patterns on Mondays are less reliable than on Wednesdays or Thursdays. Doji on Fridays are more significant than doji on other days because they represent indecision despite the week’s accumulated information.

> Month-end and quarter-end effects:> The last trading day of the month and quarter often exhibit institutional portfolio rebalancing flows. Candle patterns on these days have a higher false signal rate because the price action is driven by mechanical rebalancing rather than fundamental conviction. Ignore reversal patterns on month-end dates unless confirmed by strong volume. Continuation patterns (three soldiers, marubozu) are more reliable on these dates.

> Earnings season effects:> During earnings season, individual stock candle patterns are dominated by earnings gap reactions. A doji pattern that appears two days before earnings is noise — the market is simply waiting for the earnings release. Engulfing patterns on earnings days are often exhausted in a single move (gap + engulfing = one-day reversal that does not sustain). out candle patterns within 3 days before and 1 day after earnings events for more reliable signals.

> Holiday effects:> Holiday-shortened trading weeks (e.g., US Thanksgiving week, Christmas week) exhibit lower volume and more random candle patterns. Pattern decreases by 10-15% during holiday weeks. Doji and spinning tops are more common due to reduced . Avoid trading candle patterns during holiday weeks unless the patterns are exceptionally and volume-confirmed.

Candlestick Chart Internationalization

Candlestick color conventions vary across global markets. Quatick Charts supports locale-specific configurations to match regional expectations.

> Western convention (default):> Green candles for bullish (close> open), red candles for bearish (open> close). This convention is used in the United States, Europe, and most Western markets. The green/red pairing aligns with the "green means go, red means stop" cultural association.

> Japanese convention:> Red candles for bullish (陽線, "yoshen" or "positive line"), green candles for bearish (陰線, "insen" or "negative line"). This is the original Japanese convention and is still used in Japan and parts of Asia. The red/green pairing in Japan reflects the cultural association of red with positive energy and good fortune. Quatick Charts provides a locale option to switch to the Japanese convention.

> Chinese convention:> Red for bullish, green for bearish (same as Japanese). The color scheme reverses the Western convention. White candles with red borders are also used in some Chinese charting platforms for bullish candles. Quatick Charts supports the Chinese convention as part of the Asia-Pacific locale package.

> Monochrome convention:> For accessibility and print-friendly display, a monochrome uses empty (white/transparent) bodies for bullish candles and (solid) bodies for bearish candles. This is the original printing convention used in Nison\'s first books, where color printing was not available. The monochrome mode is essential for color-blind traders and for printing charts in black and white.

Native Quatick implementation and live demos

The charts below are the real Quatick engine (@quatick/quatick-charts), the same code the trading terminal runs, fed by a deterministic simulated market. Switch between demos, press Run market to stream ticks, to pan and use the wheel to zoom. Show code exactly the calls each makes.

Live demo
Candles on a steady uptrend. Run the market live to watch the forming bar update tick by tick.
Loading the Quatick chart engine…
candlestick · 0 bars · last — · drag to pan, wheel to zoom

How the engine draws Candles

Candles: native Quatick pipelineDATA INENGINE COMPUTESRENDERERDRAWN ON TOPOHLCV barsLive tick →chart.update()1. Visible index range(binary search)2. Price → y, time → x3. Up / down classification4. Body / wick geometryCanvas 2D (WebGLwhen enabled)VolumeLast-price lineCrosshair & tooltipsLive update cost: O(1) per tick: only the forming bar is recomputed
Inputs, computation, renderer and overlay layers of the Candles chart type in the native engine.
StageWhat happens
in bars
→ chart.update()
Visible index range (binary search)
Price → y, time → x
Up / down classification
Step 4Body / wick geometry
Canvas 2D ( when enabled)
LayersVolume · Last- · & tooltips
updatesO(1) per : only the forming bar is recomputed

How data reaches the screen

How data reaches the screenYour app / broker feedChart APIEngine stores & cachesScreen (rAF)new Chart({ container, chartType })setData(series, bars)bars → data managerindex + boundssetChartTypeOptions(type, {...})sanitise against schemaclamp rangesupdate(series, formingBar) — every tickrecompute forming barO(1)request redrawone framerender price action + overlays
The calls your code makes, what the engine stores, and when it draws. Redraws are coalesced into one animation frame.

Minimal implementation

The first above, as standalone code:

typescript
import { Chart } from '@quatick/quatick-charts';

const chart = new Chart({
  container: document.getElementById('chart')!,
  chartType: 'candlestick',
  theme: 'dark',
  renderer: 'canvas',
  showVolume: true,
});
const series = chart.addSeries({ type: 'candlestick' });
chart.setData(series.id, bars); // [{ time, open, high, low, close, volume }] — time in seconds

// Live: every tick updates the forming bar (a new time opens a new bar)
feed.onTick(bar => chart.update(series.id, bar));

Quatick settings reference

Loading the settings list…

Related articles

  • Heikin-Ashi

    Charts / Chart Types / Candle Charts

    A Japanese smoothing technique that modifies standard candlesticks using a running average formula to filter market noise and reveal clearer trend…

  • Hollow Candle

    Charts / Chart Types / Candle Charts

    A modern variant of the candlestick chart that modifies the body fill rule: a candle is hollow when the close exceeds the prior close, regardless of the…

  • OHLC Bars

    Charts / Chart Types / Bar Charts

    The original Western bar chart type — four essential data points (Open, High, Low, Close) encoded into a single vertical bar with left and right ticks. OHLC…

  • Smoothed Heikin-Ashi

    Charts / Chart Types / Candle Charts

    Heikin-Ashi calculated on averaged prices and averaged again, for trend-following with very few false colour changes.

  • Volume Candle

    Charts / Chart Types / Candle Charts

    A hybrid chart type that scales the width of each candle body proportionally to the period’s trading volume, combining price action and participation in a…

  • Candle Tooltip

    Charts / Drawing Tools / Cursors

    Hover-activated data readout showing OHLC(IV) values for any bar, with cross-pane sync and multi-timeframe alignment.

  • Chart Types Overview

    Charts / Chart Types

    A comprehensive reference to every chart type available in Quatick Charts — from the foundational candlestick to advanced orderflow and speciality…

  • Absorption & Iceberg Map

    Charts / Chart Types / Volume Charts

    Hidden liquidity made visible: levels where more traded than the book showed, and levels that absorbed heavy flow without breaking.

  • Area Chart

    Charts / Chart Types / Area Charts

    An extension of the line chart that fills the region between the price line and a baseline with a gradient or solid color, providing visual weight to price…

Browse all knowledge base articles →