This is a web app that recursively analyzes real stock market data (either individually or via batch processing) through one of several data source APIs for buy/sell/hold market indicators revealed by applying Elliot Wave Theory.

# Tidewatch — Changelog
All notable changes to the Tidewatch Elliott Wave Scanner are recorded here.
This project is a single self-contained HTML file. The in-app version pill (top-right of the
header) opens a changelog built from the same history, and the authoritative copy of that data
lives in the `CHANGELOG` array inside the file's second `<script>` block.
Versioning follows [Semantic Versioning](https://semver.org/): **MAJOR.MINOR.PATCH**.
- **MAJOR** — incompatible or sweeping changes to how the app works.
- **MINOR** — new functionality, backward-compatible.
- **PATCH** — bug fixes and small refinements.
## How to record a change
1. Bump `APP_VERSION` in the file (and the comment at the top of the HTML).
2. Prepend a new entry to the `CHANGELOG` array with `tag:'current'`, and remove `'current'` from the previous entry.
3. Add the same entry at the top of this file.
---
## [1.1.3] — 2026-06-19
- **Fixed unresponsive inputs on mobile.** The closed detail panel is a full-screen overlay that is normally slid off-screen; if that transform didn't take effect in a given mobile renderer, it sat on top and swallowed every tap (buttons, dropdowns, and tabs all appeared dead). The panel is now fully inert when closed (`pointer-events:none` + hidden), so controls always respond. Also removed the iOS web-app meta tags that can shift tap targets in standalone mode.
## [1.1.2] — 2026-06-19
- **Mobile tab fix.** With three tabs, the tab bar could overflow narrow screens, pushing "Scan a Universe" and "Explore a Stock" off-screen and out of reach. The bar is now a tighter, horizontally-scrollable, touch-optimized row so every tab is always tappable (all three fit without scrolling on ~360px-and-wider phones).
## [1.1.1] — 2026-06-19
- **Mobile background fix.** Declared a dark `color-scheme` and `theme-color` so the mobile browser canvas and chrome no longer show light behind the header; the header now also carries the dark background explicitly, and the body fills the full viewport height.
## [1.1.0] — 2026-06-19
- **New "Explore a Stock" tab.** Chart any single ticker in detail: daily candlesticks with a volume sub-panel, SMA 20 / SMA 50 overlays, and an optional log price scale.
- **Zoom & pan on the explorer chart** — fit / full / zoom buttons plus scroll-wheel, drag, and pinch; opens on the most recent ~120 sessions.
- **Quick stats strip** — last close, day and period change, period high/low, average and last volume, and session count.
- **OHLCV fetching** added for Twelve Data, FMP, and Alpha Vantage; the Demo source synthesizes deterministic candles and volume offline.
## [1.0.0] — 2026-06-19
First versioned release. Change tracking starts here; this entry summarizes the build to date.
- **Engine.** Recursive Elliott-Wave labeling — zigzag pivot detection, impulse 1–5 enforcing the three hard rules (wave 2 holds the origin, wave 3 not the shortest, wave 4 clear of wave 1), A–B–C corrections, and fractal sub-wave recursion — with confidence scoring.
- **Approaching wave 5.** Detects setups where waves 1–4 are confirmed and a fifth wave is likely ahead, with a projected target drawn on the chart.
- **Two scanners, one shared filter set.** Watchlist and Scan a Universe both filter by pattern stage (any / approaching / complete), signal (Buy / Sell / Hold), strength (strong / moderate / low), and an optional pattern-date window (wave-5 end for completed patterns, wave-4 end for approaching ones).
- **Data sources.** Twelve Data, Financial Modeling Prep, and Alpha Vantage free tiers, plus an offline Demo generator. Batched, rate-limit-aware scanning with a visible per-batch cooldown countdown, approximate daily-quota tracking, and resume-by-index.
- **Detail view.** Zoom/pan chart that opens framed to the labeled pattern (fit-to-pattern, full view, zoom in/out buttons, scroll-wheel, drag-to-pan, pinch), with vertical auto-fit so compact patterns are legible. Company name shown beside the ticker, plus Elliott rule checks and Fibonacci relationships.
- **API keys.** Opt-in per-source key caching in the browser — device-local and lightly obfuscated (not encryption); auto-fills when you select a source, with a "Forget saved key" control.
### Notes / caveats
- Not investment advice. Elliott Wave labeling is subjective and prone to hindsight-fitting; outputs are confidence-scored hypotheses, not predictions.
- The "approaching wave 5" and pattern-date filters are especially hindsight-prone.
- Free-tier rate limits make whole-universe scans slow by design.