XXUANTIFYInvite a friend

Candlestick Structure Under the Microscope

Candlestick patterns turn up everywhere, so which ones are worth a look? LuxAlgo's answer in Candlestick Structure is to label a pattern only when it points the same way as the bigger trend. We measured that trend filter. On the daily charts it is calm and stays put for about two months at a time. On the hourly charts it is far busier, and on ETH hourly a fresh bullish turn did not help.

A row of glowing candlesticks climbing along a steady green trend line, with a few dip candles picked out by small markers while similar candles on the red side stay unmarked
The idea in one picture: the trend line decides which candles get a label.

Key takeaways

Reproduced 1:1 with the original on all four charts, with no repainting

Calm on daily: BTC switches trend about 5.2 times a year, median run 56 days

Daily bullish turns looked good (79% of 19 on BTC), but that is too few signals to call

ETH hourly: after a bullish turn, price was higher 10 hours later in 40% of 118 cases, against 52% for any hour

Scorecard

Faithful

Its plotted lines matched the original exactly on BTC and ETH, daily and hourly. The pattern labels were not compared.

Repainting

None found. It uses no data from other timeframes and does not look ahead.

Calm

Daily: 5.2 switches a year on BTC and 4.8 on ETH, with median runs of 56 and 62 days. Hourly: about 130 to 140 a year, with median runs of about 51 hours.

Edge

After its trend turns: no clear edge on three charts, and a clear lag on ETH hourly longs.

What the author built

LuxAlgo describes the script as a pattern finder with a filter. It spots sixteen classic candle shapes, eight bullish and eight bearish, such as hammers, engulfing candles, morning stars and tweezers. It then shows only the ones that agree with the major trend. The author's idea is that a bullish pattern during a dip in an uptrend can mark where a pullback ends. A dashboard counts how often each pattern lined up with the trend. The author says plainly that this is a raw count, not a confidence score.

Here is what the code does. By default it reads the major trend with a SuperTrend, a line that follows price at a set distance and only flips when price breaks through it. This one uses a factor of 4 over 20 bars. In an uptrend you see a green line under price; in a downtrend, a red line above it. A second, minor trend comes from a 10-bar Donchian channel: a new 10-bar high turns it up and a new 10-bar low turns it down. A bullish label appears only when the minor trend is down and the major trend is up, which is a dip inside a rise. Bearish labels work the other way round. You can swap the major trend for EMAs, a Donchian channel or a change of structure.

What we measured

We start with how it behaves. On BTC daily (September 2019 to October 2026) the major trend flipped about 5.2 times a year. The median run lasted 56 days and the longest 276 days. None of its runs were short flip-flops. ETH daily (November 2019 to October 2026) looks much the same: 4.8 switches a year and a median run of 62 days. On BTC daily the line agreed with the 200-day trend on 85% of days, where chance would give about 50%. On ETH daily that figure was 75%. On hourly charts (January 2025 to October 2026) the same settings switch about 140 times a year on BTC and 131 on ETH, with runs of about two days. There it agrees with the 200-day trend hardly more often than chance would.

Candlestick Structure on BTC daily over the past year, with a red trend line above price until a bullish switch in August 2026 and a green line below price after it
Look at how long each colour holds: the line changed side only twice in the latest months shown.

Next, reliability. The lines were reproduced exactly on all four charts and nothing repaints. The closest classic is a 55-day Donchian midline, with a correlation of 0.84 on BTC daily. That is a resemblance, not a copy, so the trend line is its own design.

Finally, what happened after its turns, which tells you how it performed. On BTC daily, price was higher ten days after a bullish turn in 79% of 19 cases. For any day the figure was 54%. On ETH daily it was 65% of 17 against 54%. Both look promising, but they rest on fewer than twenty signals each, and the measurement does not mark either gap as clear. On BTC hourly there was no clear difference: 48% of 126 against 51%. On ETH hourly the gap was clear but went the other way. Ten hours after a bullish turn, price was higher in only 40% of 118 cases, against 52% for any hour.

Where it shines, and where it is quieter

Where it shines

On daily charts it is a calm trend frame. It switches about five times a year on both coins, runs last about two months, and there are no flip-flops. On BTC daily it agreed with the 200-day trend 85% of the time, and the line drawn on the chart is exactly the line you would get trading live.

Where it is quieter

On hourly charts the default settings flip about 130 to 140 times a year and barely follow the bigger trend. On ETH hourly, a new bullish turn came before weaker-than-usual hours, with 40% of 118 rising against 52% for any hour. Use it on the daily chart for direction and treat hourly turns with patience.

The bottom line

LuxAlgo's Candlestick Structure gives candle patterns something they usually lack: context. On daily BTC and ETH the trend filter behind the labels is steady, reproducible and its own design. That makes it a sensible map for asking whether a hammer or an engulfing candle points with the trend or against it. Its turns are not entry signals with a proven edge. The daily results are promising but thin, and on hourly charts they were neutral to weak. One small point the author could tidy up: the code draws the bearish-engulfing label twice on the same bar, so counting labels by eye overstates that pattern. For another calm trend line from the same author, read our SuperTrend Oscillator review, or browse the latest measured scripts.

We measured this with LuxAlgo's default settings on BTC and ETH, on daily and hourly charts. Your own settings or market may behave differently.

This article is education, not investment advice.

Every test here counts trading costs, runs on many markets and compares the result with just holding the same market. A result is a starting point, not a verdict. How we test

Newsletter

New tests, now and then.

Only for this newsletter; we send a mail to confirm first, and every mail has a link to stop. Privacy