Forex Analytics
A pattern study across 11 markets and 20 years that reports its own null result honestly.
Overview
The tool downloads candles, detects a fixed set of price patterns, measures what price did afterwards, trains a model on the earlier history and tests it on the later part. A local language model writes the plain-English note. It never places a trade.
The problem
Trading content is full of patterns that "always work". I wanted to measure them properly: 20 years of daily bars, honest train/test splits, and a report that says so when there is no edge.
By the numbers
What I built
- A downloader with validation for duplicate timestamps, broken prices and gaps, and a manifest of exactly what was fetched
- Pattern detectors, follow-through statistics and a pattern model trained on early history and tested on the later 61,304 events
- A plain-language report with a model card, plus a note written by a local Llama 3.2 model that only restates the measured numbers
- A watcher that refreshes every 15 minutes, an iMessage alert for new tickets, and a hosted ticket sheet on Fly.io
Decisions
Publish the null result
On the held-out window the model scored 53.3% against a 53.2% baseline. The report says plainly that this is no edge, and the tool never sends an order.
Fix the data before the model
Yahoo's gold series is COMEX futures, so gold switched to spot XAUUSD from Dukascopy. Daily stamps were normalised to 00:00 UTC of the session date.
