Skip to content

Add historical pattern similarity as a data source for the technical analyst agent #507

@grahammccain

Description

@grahammccain

Hey — love what you've built here. The multi-agent architecture with specialized analyst roles is a really clean design.

I built Chart Library, an API that returns historically similar chart patterns + their forward returns. Think of it as "what happened the last 10 times a stock looked like this." It could be a natural data source for the technical analyst agent — giving it historically-grounded pattern context instead of relying only on indicator calculations.

Quick integration example:

import requests
# One call returns 10 similar patterns + 1/3/5/10-day forward returns + regime context
resp = requests.get("https://chartlibrary.io/api/v1/intelligence/AAPL")
pattern_data = resp.json()
# e.g. "7 of 10 similar patterns were higher 5 days later, median +2.1%"

There's also an MCP server (pip install chartlibrary-mcp) if you want the LLM agents to call it directly as a tool.

Free tier is 200 calls/day, no API key needed. 24M pre-computed embeddings across 15K stocks and 10 years of data.

Happy to help with integration if there's interest. No pressure either way — just thought it was a natural fit for the technical analyst role.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions