Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:TA Lib Ta lib python Pattern Scanning

From Leeroopedia


Knowledge Sources
Domains Technical_Analysis, Pattern_Recognition
Last Updated 2026-02-09 22:00 GMT

Overview

A batch processing pattern for scanning price data against all 61 candlestick patterns simultaneously using the function group registry.

Description

Rather than calling each CDL function individually, the pattern scanning approach uses the function group registry to iterate over all 61 pattern recognition functions and apply them to the same OHLC data. This enables comprehensive pattern screening in a single pass.

The Pattern Recognition group in get_function_groups() contains all 61 CDL function names, which can be dynamically invoked via getattr or the Abstract API.

Usage

Use this principle when you need to screen price data for all possible candlestick patterns, build pattern dashboards, or create composite pattern-based trading signals.

Theoretical Basis

The scanning pattern follows a map-reduce approach:

# Abstract pattern scanning
patterns = get_function_groups()['Pattern Recognition']
results = {}
for pattern_name in patterns:
    signal = call_pattern(pattern_name, open, high, low, close)
    if any(signal != 0):
        results[pattern_name] = signal

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment