AI Candlestick Pattern Detector: How It Works and Why It Matters
Learn how AI candlestick pattern detectors use computer vision to recognize doji, hammer, engulfing, and other formations. Compare AI vs rule-based pattern scanners.
Candlestick patterns are the oldest tool in technical analysis, and reading them by hand is still slow, subjective, and worse after three hours of screen time. An AI candlestick pattern detector takes a different route: it reads the chart image with computer vision, names the formations it has been built to recognize, and puts a confidence number on each one. The useful version of this is narrower than the marketing suggests, and that is the interesting part.
An AI candlestick pattern detector reads a chart screenshot with computer vision and names the candle formations it finds. SnapPChart works from a fixed catalog of eight: bullish engulfing, bearish engulfing, hammer or pinbar, shooting star, doji, morning star, evening star, and topping tail. Every pattern it names comes back with a confidence score from 0 to 100 and a sentence explaining what it saw on your chart. Candle behavior outside that catalog, an inside bar or a break and retest, shows up as plain-English description in the market structure read instead of a scored signal. The honest limits: it reads one snapshot at the moment you upload it. No live scanning, no next-candle prediction, no auto-trading, no alerts.
What Is AI Candlestick Pattern Recognition?
AI candlestick pattern recognition is the use of computer vision to identify candlestick formations on a chart image and then score how much each one matters. Instead of a trader eyeballing every chart and deciding whether that candle is a hammer or just a long wick, the model processes the image and returns named patterns with a number attached, at machine speed, and with the hundredth chart of the day getting the same treatment as the first.
The technology is multimodal AI, models that take images as input alongside text. When you upload a chart screenshot, the model does not receive raw price data. It receives the picture, exactly as you see it on your screen. It then reads the visual elements: the shape of each candle, the length of the wicks, the relative sizes of bodies, the spacing between candles, and the trend they sit in.
That is a different mechanism from a traditional pattern scanner working off numerical price data and fixed thresholds. Because the input is an image, it works on charts from any platform. TradingView, ThinkOrSwim, Webull, a screenshot someone pasted into a Discord. No data feed, no API key, no integration.
How Does AI Vision Read Individual Candles?
Understanding how the model reads a single candle explains how it gets to multi-candle patterns. It works in layers, roughly the way a trader's eye moves from one candle out to the shape it belongs to:
Color and Direction
The model identifies whether each candle is bullish (green or white) or bearish (red or black). That tells it whether the close was above or below the open for that period. Trivial for a human, and the first thing a vision model has to get right before anything else works.
Body-to-Wick Ratio
It measures the size of the body against the upper and lower wicks. A tiny body with a long lower wick is a hammer. A tiny body with a long upper wick is a shooting star. A tiny body with wicks both ways is a doji. These proportions are the fingerprint that separates one named pattern from another.
Relative Size and Position
It compares each candle to its neighbors. A green candle whose body fully covers the previous red body is a bullish engulfing. A small indecisive candle sandwiched between a large red one and a large green one is the middle of a morning star. Nothing here is readable from a single candle in isolation.
Trend Context
It evaluates where the pattern printed. A hammer after a sustained downtrend, at a level price has already respected, is worth something. The same candle shape floating in the middle of a range is noise. Location does most of the work, which is why a detector that only names shapes is close to useless.
Resolving Conflicting Reads
Some patterns are defined as mutually exclusive, because the same long-wick candle can honestly be read more than one way. A hammer and a shooting star cannot both fire on the same candle. Neither can a topping tail and a strong rejection off support. The model has to commit to one reading based on where the candle sits in the trend rather than returning every shape that technically fits.
Quality Assessment
Detection is not a yes or no flag. Each named pattern comes back with a confidence score from 0 to 100 and a line explaining what the model saw. A hammer with a lower wick three times the body, printed at a level that has already held twice, scores high. A hammer with a wick barely longer than its body, printed mid-range, scores low and tells you to leave it. That score applies to the named patterns specifically, and it is what feeds the overall grade.
What the Detector Reads: Body-to-Wick Ratio and Multi-Candle Context
Which Candlestick Patterns Can AI Actually Detect?
This is where tools in this category go vague, so here is the specific answer for ours. SnapPChart reads from a fixed catalog. Eight candlestick patterns are defined in it, each with a weight, a definition, and a conflict list, and that catalog is rendered into the prompt the model sees on every single analysis.
Eight is a short list next to the StockCharts candlestick dictionary, which runs to dozens. That is a design choice, not a gap we are apologizing for. A pattern that lives in the catalog has been defined, weighted, and tested against real charts, which is why it can come back with a confidence score you can act on. Forty more names would mean forty more things the model is guessing at, and a guess with a percentage next to it is worse than no answer.
Bullish (entry confirmations)
- • Bullish Engulfing
- • Hammer / Pinbar
- • Morning Star
Bearish (warning signs)
- • Bearish Engulfing
- • Shooting Star
- • Topping Tail
- • Doji
- • Evening Star
Three bullish, five bearish. That imbalance is deliberate. On a long setup the bearish candles function as warnings, so the catalog carries more ways to talk you out of a trade than into one.
One of those eight will look wrong if you know the textbook. A doji is normally taught as pure indecision, neutral by definition. In this catalog it carries a bearish weight, because on a long setup an indecision candle at resistance is a reason to slow down, not a coin flip. Opinionated, and we would rather tell you that than pretend the scoring is neutral.
Here is the whole picture in one table, including the parts the engine does not do. Three states show up: a scored signal comes back with a name and a confidence percentage, a narrative read appears as a sentence in the market structure field with no separate score, and not detected means exactly that.
| Pattern | Bias | What it looks like | How SnapPChart reads it |
|---|---|---|---|
| Bullish Engulfing | Bullish | Green body fully covers the previous red body | Scored signal. Name, confidence 0-100, written explanation |
| Bearish Engulfing | Bearish | Red body fully covers the previous green body | Scored signal. Name, confidence 0-100, written explanation |
| Hammer / Pinbar | Bullish | Small body near the top, long lower wick | Scored signal. Cannot fire alongside shooting star on the same candle |
| Shooting Star | Bearish | Small body near the bottom, long upper wick | Scored signal. Cannot fire alongside hammer on the same candle |
| Topping Tail | Bearish | Long upper wick rejecting a push higher | Scored signal. Carries the heaviest bearish weight of the eight |
| Doji | Bearish weighted | Tiny body, wicks on both sides | Scored signal. Treated as indecision at resistance, not as neutral |
| Morning Star | Bullish | Big red, small indecision candle, big green closing into the first body | Scored signal. Three-candle read |
| Evening Star | Bearish | Big green, small indecision candle, big red closing into the first body | Scored signal. Three-candle read |
| Inside bar | Context | A candle whose entire range sits inside the previous candle's range | Narrative only. Described in the market structure read, no separate score |
| Rejection wick at a level | Context | Wick pokes through a level and price snaps straight back | Narrative only. Named with the level price, no separate score |
| Break and retest | Context | A level breaks, price returns to it and holds | Narrative only. Described in the market structure read, no separate score |
| Harami, marubozu, piercing line, three white soldiers | Varies | Textbook formations outside the catalog | Not detected. The engine will not name one of these |
| Head and shoulders, double top, triangle | Varies | Multi-bar chart structure rather than candle-level shapes | Not a candlestick signal. Different family, read as structure |
The bottom two rows are the ones worth sitting with. If your setup rests on a harami or a piercing line, this engine will not name it, and no amount of prompting changes that, because the catalog is code rather than a suggestion. If it rests on a larger chart structure like a head and shoulders or a double top, that is a different family that gets read as structure over many bars, not as a candle. Knowing what a tool refuses to answer is more useful than a longer list of things it claims to see.
Every one of the eight lives or dies on context, so each is worth understanding on its own before you trust any detector to grade it. There is a full guide to reading and grading candlestick patterns that ties the family together, plus deep dives on the ones traders over-trade most: the doji and what its indecision actually signals, the hammer as a bottom-reversal read at support, its mirror image the shooting star at resistance, the two-candle engulfing pattern and why its location does all the work, and the three-candle morning star and evening star reversals. The detector recognizes the shape. Knowing what each one means is what lets you sanity-check the score it hands back.
AI vs Rule-Based Pattern Scanners
Traditional pattern scanners use fixed numerical rules. If the lower wick is at least twice the body length and the upper wick is under 10% of the range, it is a hammer. Those rules are exact on clean data, and they break in predictable ways on real charts.
AI Vision Detection
- •Works with any chart screenshot from any platform
- •Detects imperfect and still-forming patterns
- •Returns a confidence score and a written reason, not a flag
- •Reads the pattern against the trend and the indicators drawn on the chart
- •No data feed or API integration required
Rule-Based Scanners
- •Requires a direct price data feed or API
- •Misses patterns that fall a few percent outside fixed rules
- •Binary detection, the pattern exists or it does not
- •Usually ignores where in the trend the pattern printed
- •Locked to platforms with compatible data formats
Real charts are messy and candles are rarely textbook. An engulfing candle might have a one-tick wick that technically breaks a strict rule while being visually unmistakable to any trader who has been staring at charts for a year. Vision reads it the way you read it, rather than enforcing a threshold that was picked arbitrarily in the first place.
One point in the rule engine's favor, since nobody else will say it. Adding a pattern to a rule-based scanner is a few lines of math, so those tools can honestly advertise forty or fifty pattern names. A scored vision catalog needs each entry defined, weighted, and checked against real charts before it earns a confidence number, which is exactly why ours is eight and not fifty. Fewer names, every name backed by a score. Pick the trade-off you actually want.
Can AI Read Candlestick Patterns From a Screenshot?
Yes, and for SnapPChart a screenshot is the only input it takes. You capture the chart, upload the image, and the model reads pixels. There is no broker connection, no API key, and no data feed, which is why it works the same on a TradingView 5-minute chart, a ThinkOrSwim daily, or an image someone posted in a trading Discord.
What comes back for the candle read is two separate things. First, the named patterns. Each one arrives as a name, a confidence percentage, and a sentence describing what the model saw, sorted into a bullish column and a bearish column on the results page. So you read "Bullish Engulfing, 82%" with "green body closed above the prior two red bodies on rising volume" underneath it, rather than a bare label with no reasoning.
Second, the market structure read. That part is prose, and it covers what the last few candles are doing at the nearest key level: a rejection wick, an engulfing candle, an inside bar, or a clean break and retest, with the level price named. It is the sentence a price-action trader would write in their own notes. It does not carry its own confidence score, and it is not meant to.
Then the pattern read gets folded into everything else on the chart. A bullish engulfing on its own is a shape. A bullish engulfing at VWAP support with rising volume and a MACD crossover is a different animal, and the grade from A+ to F reflects that confluence rather than the candle alone. The output includes the entry, the stop, the targets, and the reasoning behind each. You can run it on charts from any trading platform without changing your workflow.
See which patterns the AI names on your chart
Upload a screenshot and get the named candlestick patterns with a confidence score on each, plus the grade and the levels. Your first analysis is free.
Detect Patterns NowIs AI Candlestick Analysis Free?
Partly, and it is worth spelling out because most tools are slippery about this. Free candlestick screeners are everywhere, and nearly all of them are rule-based: fixed math over a price feed, returning a list of tickers that matched a shape. That costs close to nothing to run, which is why it is free. It also tells you nothing about whether the shape mattered at that level, in that trend, on that volume.
Vision analysis is a different cost structure. Every chart is a real inference call, so nobody hands it out without a ceiling. SnapPChart gives a new account two free lifetime analyses and asks for no card. The first comes back complete: the named patterns with their confidence scores, the grade, the entry, the stop, the targets, the reasoning. The second shows the grade and the general read with the execution detail held back.
Two is enough to answer the only question that matters before money changes hands, which is whether this thing reads your charts the way you read them. What you pay for after that is not a bigger scan quota. It is a graded second read on every setup instead of only the ones you already had doubts about, which is the difference between a tool you open occasionally and a habit that keeps you out of C-grade trades.
Why Does Automated Pattern Detection Matter for Traders?
Speed and consistency. In momentum trading, setups develop and expire fast. A hammer printing at VWAP on a low-float runner might give you a two-minute window to read the candle, check the volume, confirm the level, and place the order. Doing all of that by hand while the price is moving is where most bad entries come from.
Automated detection compresses that into a few seconds. Screenshot, upload, read the pattern names and their scores, decide. The value is sharpest for traders watching several tickers at once who need to triage which chart deserves the next 30 seconds of attention.
Consistency matters just as much, and it is the part traders underrate. Three hours into a session your pattern recognition degrades. You start seeing hammers that are not there and missing the ones that are obvious in the replay. The model does not get tired at 1pm. The hundredth chart gets the same read as the first, which means the output is worth something precisely on the days you do not trust your own eyes.
The pattern read is one input, though, not the whole job. It is worth pairing with the levels the AI marks on the same chart and, once you have decided to take the trade, a written plan with the entry and stop spelled out. The candle tells you something happened. The level tells you where it happened, and the plan tells you what you are going to do about it. When your own read and the AI's land on the same pattern with the same bias, that agreement is the best filter either of you has.
Frequently Asked Questions
How does AI detect candlestick patterns from a chart image?
It runs computer vision over the image itself, not a price feed. The model reads each candle's color, the size of its body against its upper and lower wicks, how it sits relative to the candles either side of it, and where the whole thing sits in the trend. Those measurements get matched against a fixed catalog of named patterns. SnapPChart's catalog holds eight candlestick patterns, and every match comes back with a confidence score from 0 to 100 plus a sentence describing what the model actually saw on your chart.
Is AI pattern detection more accurate than rule-based scanners?
They fail in different places. Rule-based scanners are exact on clean numerical data and will never disagree with themselves, but they reject anything a few percent outside their thresholds and they ignore where the pattern printed. AI vision tolerates imperfect formations and reads trend context, which is what you want on a real chart with indicators drawn over it, but it works from a smaller catalog and it reads one static image rather than a live feed. For screenshot-based analysis of a chart you are already looking at, vision wins. For scanning a thousand tickers at once, a rule engine wins.
Which candlestick patterns can AI detect?
That depends on the tool, and most of them overstate it. SnapPChart names eight: bullish engulfing, bearish engulfing, hammer or pinbar, shooting star, doji, morning star, evening star, and topping tail. Each one comes back as a scored signal with a confidence percentage and a written explanation. Other candle behavior, such as an inside bar, a rejection wick, or a clean break and retest, shows up as plain-English description inside the market structure read rather than as a separate scored pattern. Textbook formations outside the catalog, including harami, marubozu, piercing line, and three white soldiers, are not returned as named signals.
Is there a free AI candlestick pattern scanner?
Free candlestick screeners are everywhere, but almost all of them are rule-based scanners running fixed math over a price feed. They hand you a list of tickers that matched a shape and stop there, with no read on whether the shape mattered at that level or in that trend. That costs close to nothing to run, which is why it is free. Vision-based analysis is a real inference call for every chart, so no tool gives it away without a ceiling. SnapPChart gives a new account two free lifetime analyses and asks for no card. The first comes back complete, with the named patterns, their confidence scores, the grade, and the levels. The second shows the grade and the general read with the execution detail held back. Be skeptical of anything advertising unlimited free AI chart reads.
Do I need to clean up my chart before AI can detect patterns?
No. Vision-based detectors read charts with multiple indicators, trendlines, and annotations already on them, and they are built to tell candles apart from overlay elements. Two things do hurt the read: candles too small to measure a body-to-wick ratio on, and a volume panel cropped out of the screenshot. Zoom in enough that individual candles are distinguishable and leave the volume bars in frame. That is the whole prep.
Disclaimer: AI chart analysis is for educational and informational purposes only. It does not constitute financial advice. Always do your own research, manage your risk appropriately, and never trade with money you cannot afford to lose. Past patterns do not guarantee future results.
Continue Learning
Writes about AI-assisted day trading, technical analysis, and the systems traders actually use to stay disciplined.
Stop guessing whether the setup is clean.
Screenshot any chart and SnapPChart grades it A+ to F in seconds, with the entry, the stop, and the reasons spelled out.