Project system brief

An audit-ready, batch-oriented quantitative market analysis pipeline for the Indonesian Stock Market (IDX LQ45). Ingests daily OHLCV data through a prioritized multi-provider fallback registry, executes automated data-quality validation, evaluates benchmark IHSG macro regimes, and computes Wyckoff VPA and Chaikin Money Flow indicators to produce verifiable watchlist analytics without fabricated price signals.

Product Context

Product Context

An audit-ready, batch-oriented quantitative market analysis pipeline for the Indonesian Stock Market (IDX LQ45). Ingests daily OHLCV data through a prioritized multi-provider fallback registry, executes automated data-quality validation, evaluates benchmark IHSG macro regimes, and computes Wyckoff VPA and Chaikin Money Flow indicators to produce verifiable watchlist analytics without fabricated price signals.

System Problem & Scope

System Problem & Scope

Indonesian stock market analysis tools frequently rely on unverified retail indicators and fragile single-provider scrapers that fail silently on data anomalies like zero-volume sessions, split anomalies, or missing candles. Furthermore, retail tools often generate speculative trade signals without evaluating overarching IHSG benchmark regimes or validating multi-source news corroboration.

Engineering Constraints

Engineering Constraints

Architecting a deterministic, offline-capable data pipeline that enforces strict data-quality thresholds before technical processing, integrates external quantitative indicator engines (Fincept) with seamless native fallbacks, and establishes an auditable macro circuit breaker using the IHSG (^JKSE) index to halt speculative setups during volatile market conditions.

System Architecture Flow

System Architecture Flow

Modular batch pipeline composed of four primary layers: (1) ProviderRegistry resolving licensed file drops, EODHD, and Yahoo Finance with exponential backoff and stale-cache fallback; (2) Data Quality Gate flagging data anomalies and enforcing bar thresholds; (3) Dual Technical Analytics Engine utilizing pinned Fincept modules alongside native CMF and Wyckoff VPA calculations; and (4) Context Compiler outputting standardized trade plans, market breadth metrics, and LLM-ready AI market contexts in CSV and JSON.

5 System Stages
Active Stage: 01
01OBSERVABILITY

Multi-Provider Ingestion

Active Stage
02OBSERVABILITY

Data Quality & Validation Gate

03OBSERVABILITY

IHSG Market Regime Filter

04OBSERVABILITY

Dual Technical Analytics Engine

05OBSERVABILITY

Auditable Reporting & AI Context

STAGE 01

Multi-Provider Ingestion

Fetches daily OHLCV from licensed vendor drops, EODHD, or Yahoo Finance with retry and stale-cache fallback.

STAGE 02

Data Quality & Validation Gate

Validates candle anomalies, zero-volume sessions, and date gaps, rejecting corrupted data prior to analysis.

STAGE 03

IHSG Market Regime Filter

Evaluates benchmark IHSG index trend structure and Chaikin Money Flow to grant or restrict macro trading permissions.

STAGE 04

Dual Technical Analytics Engine

Computes Fincept technicals (RSI, MACD, ADX, ATR) with automatic fallback to native CMF and Wyckoff VPA indicators.

STAGE 05

Auditable Reporting & AI Context

Generates structured watchlist CSVs, trade plans with risk-reward ratios, and standardized AI market context JSONs.

Execution & Failure-Mode Explorer

How the architecture behaves under real faults

Primary stage: Multi-Provider Ingestion

The provider registry ingests daily OHLCV bars in priority order, passes them through the validation gate, and computes indicators.

Key Engineering Contributions

Key Engineering Contributions

Engineered ProviderRegistry abstraction supporting prioritized data fallback, exponential retry logic, and stale cache persistence across IDX tickers. Developed automated data quality evaluator detecting zero volume, invalid price candles, and missing date sequences without fabricating replacement data. Implemented IHSG market regime screener and composite trend scoring to act as a strict macro gate before individual stock evaluation. Integrated pinned Fincept technical analysis engine via Git submodule with seamless in-process fallback to native quantitative indicators. Constructed selected-universe LQ45 market breadth indicators and multi-source financial RSS sentiment scoring.

Reliability & Integrity Guarantees

Reliability & Integrity Guarantees

Strict zero-hallucination data policy: data fetch failures produce explicit error flags (DATA_MISSING, DATA_INSUFFICIENT, DATA_ANOMALY, STALE_DATA, FETCH_ERROR) rather than synthetic price estimation. Tested via comprehensive pytest test suite covering CMF calculations, data-quality bounds, engine fallback behavior, market regime scoring, news parser resilience, and trade plan confidence formulas.