BULLBEAR LENS · EDUCATIONAL CHART ANALYSIS

Candlestick Pattern Detection Using Computer Vision

A screen image contains pixels, not exact market prices. Geometry extraction introduces a distinct source of uncertainty.

By BullBear Lens editorial team — educational product documentation; no independent financial qualification claimed.

Published · Updated

Reference for background: OpenCV: Contour features reference. Product-specific descriptions are based on the inspected implementation and published methodology.

Separate the chart from the interface

The desktop capture path begins with a region of interest. Menus, crosshairs, order markers and volume columns can all produce shapes that resemble candle components. Choose a clean price region and keep the output window outside it. Capturing the detector’s own overlay can create a feedback loop rather than a new market observation.

Convert colours into candidate geometry

The inspected pipeline uses configured HSV colour masks and contour extraction. Candidate regions are filtered, then body and wick measurements are inferred. This can work on a readable standard chart but is sensitive to colour settings, antialiasing and overlapping graphics. A pixel length is not automatically an exact price difference, even when ratios are useful for shape classification.

Apply explicit comparisons

After extracting geometry, rules compare body-to-range and wick-to-body ratios or adjacent candle boundaries. This is deterministic recognition given the same measurements and configuration. The label is not evidence that a neural network learned a profitable shape. Optional narration happens later and should be kept separate from the extraction and rule layers.

Diagnose a disagreement systematically

First compare the detected body and wick boundaries with the screenshot. Next inspect whether the entire candle is visible. Then compare the configured rule threshold and any confidence filter. Only after those checks should you compare narration. The manual OHLC tools bypass image extraction, so they are useful for a rule example but cannot validate screen-capture accuracy.

Educational software only. No financial advice or guaranteed outcomes. Content reviewed 2026-11-24.