Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk7 min

Candlestick Patterns and AI: Why Signals Fail and How to Build a Python Confluence Scanner

A candlestick pattern is a price description, not a prediction. Learn how to build a transparent Python scanner and evaluate its signals without confusing classification accuracy with trading returns.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no verified universal finding that 90% of candlestick patterns fail. A candle pattern is a rule for describing past prices, not proof of what prices will do next. To test one responsibly, define what “fail” means, combine the pattern with explicit market context, and evaluate the resulting signals on future data after realistic trading costs. The Python example below builds a transparent research scanner; it is not a validated or profitable trading system.

What does “fail” mean for a candlestick pattern?

The number in the title is not established as a general statistic by the cited evidence. It would need a defined set of patterns, markets, timeframes, success criterion, sample period, and study date before “90% fail” could be tested. Change any of those choices and the result may change too.

As an Amazon Associate I earn from qualifying purchases.

A candlestick encodes open, high, low, and close prices over a chosen interval. A named formation—such as a hammer—is a rule applied to those prices. It does not, by itself, establish a reliable prediction. Before measuring a pattern, specify:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Identification: Which exact OHLC conditions count as the pattern?
  • Outcome: Does success mean the next bar closes higher, price reaches a target before a stop, or a strategy earns a positive net return?
  • Horizon and timing: When can a signal be acted on, and how long is it held?
  • Comparison: Does it outperform a simple baseline on the same instruments and dates?

These are different questions, not interchangeable meanings of “works.”

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Why accuracy is not the same as trading success

Measure What it answers What it does not establish
Pattern identification Whether a rule or model labels a bar as a particular formation. Whether the next move will be favorable.
Directional classification How often a model correctly labels a defined future direction in a chosen dataset. Whether trades can be executed profitably after costs.
Strategy performance How a specified entry, exit, sizing, and cost model performed over a test period. That the same result will persist in another market or regime.

A 2019 preprint, Using Deep Learning Neural Networks and Candlestick Chart Representation to Predict Stock Market, reports 92.2% accuracy for its Taiwan dataset and 92.1% for its Indonesian dataset. Those are the paper authors’ results for deep-learning classification experiments using chart-image representations and selected datasets and prediction labels. They are not a universal candlestick win rate, a test of every named candle rule, or evidence of net profitability after execution costs.

Separately, the 2024 Journal of Financial Economics article Charting by Machines reports that machine-learning forecasts built from historical performance predicted the cross-section of future stock returns in the authors’ study. That is evidence about learned chart/history signals in that study, not direct confirmation of a particular candle formation or the scanner below.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

What a confluence scanner should—and should not—do

A confluence scanner makes several defined observations visible together: for example, a candle formation, a trend condition, and unusual volume. It can help rank or flag bars for review. Unless its score has been fitted to a specified outcome and calibrated on suitable data, that score is a heuristic—not a probability of success.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Institutional” in a scanner’s label does not make it institutionally validated. A serious research workflow needs reproducible inputs, inspectable rules, time-ordered testing, cost assumptions, and controls for data and model failures. The score should explain why a bar was flagged rather than imply certainty.

Rank #3
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Build a transparent Python scanner

The example uses a deterministic hammer-like rule plus two context checks: an upward trend and volume above its recent average. These definitions are teaching choices, not universal definitions of a hammer or evidence that these features improve returns. It expects a pandas DataFrame with lowercase open, high, low, close, and volume columns, ordered by time. Use consistently adjusted OHLC data where appropriate and record the instrument, interval, timezone, source, and retrieval date.

import pandas as pd


def add_confluence_features(df: pd.DataFrame) -> pd.DataFrame:
    required = {"open", "high", "low", "close", "volume"}
    missing = required.difference(df.columns)
    if missing:
        raise ValueError(f"Missing columns: {sorted(missing)}")

    x = df.copy().sort_index()
    if x.index.has_duplicates:
        raise ValueError("Duplicate timestamps must be resolved first")
    if x[list(required)].isna().any().any():
        raise ValueError("Missing OHLCV values must be handled first")

    if (x["high"] < x[["open", "close", "low"]].max(axis=1)).any():
        raise ValueError("High is inconsistent with OHLC values")
    if (x["low"] > x[["open", "close", "high"]].min(axis=1)).any():
        raise ValueError("Low is inconsistent with OHLC values")
    if (x["volume"] < 0).any():
        raise ValueError("Volume cannot be negative")

    bar_range = x["high"] - x["low"]
    body = (x["close"] - x["open"]).abs()
    lower_wick = x[["open", "close"]].min(axis=1) - x["low"]
    upper_wick = x["high"] - x[["open", "close"]].max(axis=1)

    # Example rule only: a long lower wick, small upper wick, nonzero body,
    # and a close in the upper 40% of the bar's range.
    x["hammer_like"] = (
        (bar_range > 0)
        & (body > 0)
        & (lower_wick >= 2 * body)
        & (upper_wick <= body)
        & (x["close"] >= x["low"] + 0.6 * bar_range)
    )

    sma20 = x["close"].rolling(20, min_periods=20).mean()
    x["trend_up"] = (x["close"] > sma20) & (sma20 > sma20.shift(5))

    volume_mean20 = x["volume"].rolling(20, min_periods=20).mean()
    x["volume_above_average"] = x["volume"] > volume_mean20

    # A ranking heuristic, not a calibrated probability.
    x["score"] = (
        x["hammer_like"].astype(int)
        + x["trend_up"].astype(int)
        + x["volume_above_average"].astype(int)
    )
    x["candidate"] = x["hammer_like"] & (x["score"] >= 2)
    return x

The sample rejects missing values and duplicate timestamps, checks basic OHLC consistency, and avoids evaluating rolling features before their lookback is available. Those checks cannot establish that the feed is complete, correctly adjusted, or free of bad timestamps; validate those properties against the chosen data source as well. The rule’s thresholds and 20-bar context windows are explicit so they can be changed and tested rather than treated as market facts.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Run the function only on completed bars. A signal computed from a bar’s closing price is not available before that close; a backtest that enters at that same close without a defensible execution assumption may introduce look-ahead. For an alert, display the timestamp, raw pattern condition, trend and volume checks, and score components. Do not describe score as a success probability.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to evaluate the scanner without fooling yourself

  1. Freeze the question first. Define instruments, bar interval, timezone, pattern rule, prediction target, horizon, and signal timing before looking for a favorable result. Decide whether you are evaluating labels or an executable strategy.
  2. Split by time. Use earlier observations for development and later observations for validation; reserve a final, untouched chronological test period. Do not randomly mix future and past bars. Fit thresholds, weights, or other learned choices on training data only.
  3. Compare simple baselines. Test the candle alone, each context feature alone, and a basic reference such as the unconditional outcome rate or a simple trend rule. Keep the same dates, target, and assumptions across comparisons.
  4. Report the right measures. For classification, report the target definition, class balance, and suitable metrics rather than accuracy alone. For a strategy, report returns and risk measures under stated sizing and execution rules. Keep the two result types separate.
  5. Model execution costs. State when an order could be placed and include fees, spread, and slippage assumptions. Check whether a result survives plausible changes to those assumptions; a gross signal is not a net strategy result.
  6. Test stability. Where data permits, repeat the evaluation across instruments, periods, and market regimes. A result that depends on one asset, one narrow date range, or one threshold is not broad evidence.
  7. Keep the final test untouched. Repeatedly tuning choices against the test interval turns it into development data. If you change the rule after seeing test results, reserve a new future interval for a fresh evaluation.

For a simple directional label, one possible target is whether the close several bars after a signal exceeds the signal-bar close. That target must be aligned so every feature uses information available at signal time; it also does not model an entry price, stop, position size, or costs. A strategy evaluation needs those additional rules and assumptions, defined before results are interpreted.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

What controls belong around an AI-assisted scanner?

A model can make incorrect classifications or generate false positives. Make each flag auditable: preserve the input timestamp and data version, show the pattern and feature values that contributed, and log subsequent outcomes under the predeclared evaluation rule. Monitor data quality and behavior over time; a change in feed, instrument mix, or market regime can make old results less informative.

In a speech on machine learning and risk assessment, SEC staff speaker Scott W. Bauguess said, “good data is better than more data.” The speech discusses data quality and the limits of applying machine-learning methods to poor or unstructured inputs. It also describes experts critically examining model outputs and the possibility of false positives. That is a cautionary analogy from the SEC’s risk-assessment setting, not evidence about trading performance or a legal checklist for every research scanner. The SEC’s 2020 staff report on algorithmic trading, updated in 2023, provides an overview of algorithmic trading in U.S. capital markets; obligations depend on how a system is used, who operates it, the instruments involved, and the relevant jurisdiction.

A separate 2026 arXiv preprint evaluates LLM technical-market-analysis tasks. As a preprint with simulated findings, it should not be treated as established evidence that an LLM scanner is reliable in live deployment.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Conclusion

The useful question is not whether a fixed percentage of candlestick patterns fail. It is whether a precisely defined rule adds measurable value for a stated market, timeframe, and execution plan. A transparent Python scanner can organize candidates and make assumptions inspectable; only careful out-of-sample testing can show what the signals did under specified conditions, and no backtest guarantees future results.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.