Multimodal LLM Guide: Technical Analysis of Candlestick Charts
This guide explains how multimodal large language models can perform technical analysis on candlestick (K-line) charts. It covers why earlier AI chart-reading approaches fell short, breaks the capability into four layers (geometric pattern perception, indicator spatial reasoning, volume-price dynamics, and chip distribution mapping), and shows how to turn chart interpretation into a reproducible pipeline using a fixed four-part prompt. A practical case on volume-price-time-space resonance, engineering best practices, and compliance boundaries are also included.
1. Background: Why Earlier “AI Chart Reading” Was Superficial
For a long time, applying AI in finance focused on two task types: quantitative data mining, which relies on structured market data and factor engineering; and sentiment analysis of news and announcements, which relies on text classification. When developers handed a real candlestick chart screenshot to a general-purpose model, the output usually stayed at a shallow level such as “there are a few lines in the image” or “there are some numbers on the chart.” In essence, the model read axis values through optical character recognition and stitched together a few template-based conclusions.
The root cause is not that the model “cannot recognize colors,” but that the task was fragmented. When a human analyst reads a chart, they place price position, time span, volume changes, spatial relationships among moving averages, and chip distribution into the same image and reason about them jointly. Early solutions typically ran detection first, then recognition, then rule application. Errors accumulated across stages, and the final result lost the holistic judgment of “momentum” and “shape.”
The change brought by multimodal large language models is that visual encoding and language reasoning are performed within the same semantic space. Instead of running OCR first and judging later, the model reasons directly about the relative relationships between image regions. This makes conclusions that require cross-layer association possible, such as “shrinking volume on a pullback signals exhaustion of selling pressure.”
2. Capability Breakdown: A Four-Layer Structure for Technical Analysis with Multimodal Models
2.1 Geometric Pattern Perception
The model needs to identify structures such as triangles, boxes, flags, and rounded bottoms, and judge where the current price sits within the structure, for example “at the end of a triangle, near a direction decision.” The key is to output verifiable geometric evidence: which two edges form the convergence, how many times the boundaries have been touched, and whether the price is currently near a boundary.
2.2 Indicator Spatial Relationship Reasoning
The value of moving average analysis lies not in the numbers themselves but in the spatial relationships between the price body and the moving average group or trend lines. Typical descriptions include “pullback holds without breaking,” “pierces and rebounds,” and “the body stands above the moving average cluster with the averages in a bullish arrangement.” In engineering terms, the model should be required to distinguish “wick crossing” from “body crossing,” because the two carry completely different meanings.
2.3 Volume-Price Dynamic Correlation
By comparing the pulse-like volume spike bars on the left with the current shortened bars, the model can offer a qualitative judgment such as “healthy shakeout”: the visual feature is that the volume bars become shorter, and the mapped market meaning is that holders are reluctant to sell and selling pressure is fading. Such conclusions must include a time window; otherwise they cannot be verified.
2.4 Chip and Psychological Mapping
The lengths of the red and blue bars in the chip distribution chart can be translated into holding cost ranges and psychological resistance levels. If there is a valley between an upper dense peak and a lower dense peak, it means support in the middle price range is weak and price is likely to accelerate when crossing it; if the price falls right inside a dense peak, it is more likely to oscillate repeatedly.
3. Analysis Framework: Turning “Describing the Chart” into a Verifiable Process
It is recommended to organize the prompt into a fixed four-part structure to avoid the model improvising:
Role: A senior technical analyst who answers based only on information visible in the image.Input: A daily candlestick chart containing candles, a moving average group, volume, and chip distribution.Task:1) Structure: name the pattern, state the boundary evidence, and identify the current position;2) Relationships: the spatial relationship between price and moving averages/trend lines, distinguishing wicks from bodies;3) Volume-price: compare the two most recent volume expansion intervals and give a qualitative read on volume;4) Chips: describe peak and valley positions and their support/resistance implications for price.Constraints: annotate the in-chart evidence after each conclusion; mark invisible information as "cannot determine"; do not fabricate values.Output: conclusion + evidence + invalidation condition (what signal, if it appears, voids the judgment).
The “invalidation condition” is the most easily overlooked, yet it determines whether the output has engineering value: a judgment that cannot be falsified cannot be used for automated risk control.
4. Practical Case: Identifying Volume-Price-Time-Space Resonance
Taking a structural screenshot of a certain stock as an example, a mature multimodal analysis pipeline usually produces conclusions at three levels.
The first level is a qualitative read on volume. The model compares the pulse volume expansion on the left with the recent shrinking-volume decline and judges it to be a shakeout rather than distribution, based on the mismatch between the difference in bar height and the price decline.
The second level is support resonance. The model reads the numerical ranges of the upper and lower boundaries of the moving average channel and finds that the price pullback position overlaps with that range, while the trend line has not been broken by a body, so it gives a predictive conclusion of “dual support resonance.” It must be emphasized here that numerical reading has errors; a production system should validate visual readings against structured market data, with vision responsible only for positioning and relationship judgment.
The third level is chip structure. The model points out that the chip distribution shows an upper peak and a lower peak with a valley in between, meaning that resistance is small and acceleration is likely when price enters the valley, while oscillation and digestion dominate when price is within a peak.
When the three levels are combined, the output should be a “conditional judgment” rather than a “directional assertion,” for example: if the pullback range holds and volume stays low, the structure is bullish-leaning; if a body breaks below the lower edge of the range with rising volume, the previous judgment is void.
5. Engineering Implementation Essentials
- Dual channel of vision and data: the image handles patterns and relationships, while the market data API handles precise values; the two cross-validate to reduce reading errors.
- Structured output: carry results in fixed fields (pattern, position, volume, chips, invalidation condition, confidence) to make storage and backtesting easier.
- Observability and traceability: store the original images, prompt versions, and model outputs together in object storage, and track call quality through logging services and monitoring alerts.
- Evaluation-set-driven iteration: build a labeled screenshot evaluation set and measure pattern recognition accuracy and invalidation-condition hit rate, avoiding tuning prompts by feel.
- Compliance and boundaries: technical analysis output serves only as an auxiliary reference and does not constitute investment advice; the interface must clearly show risk warnings and retain a human review step.
6. Conclusion
Processing candlestick charts with multimodal models is essentially reorganizing scattered visual elements into a reasoning-ready whole. What developers should truly deliver is not a piece of commentary that “sounds like a veteran trader,” but an analysis pipeline that is evidence-based, verifiable, and falsifiable. Only by solidifying the four-layer structure of geometry, indicators, volume-price, and chips into the prompt and data validation steps can an intelligent chart-reading tool have engineering value that is stable and reusable.
