← Results index

Acquire Pine breadth tickers MAHX/MALX/MAHN/MALN/MAHQ/MALQ/NADC/MADP/MADC

2026-08-18T13:38:00Z Data pipeline completed Fetched 9 missing TradingView daily closes (MAHX/MALX/MAHN/MALN/MAHQ/MALQ/NADC/MADP/MADC) via research.tv_scrape.client, upserted 39179 rows to data/market.sqlite with parquet caches, verified offline repro and unlocked Pine cumu NHNL z50 audit for qm-kdnj.4.
tradingview breadth pine tv-scrape datastore parquet

Objective

Fetch 9 missing TradingView daily closes required for the Pine cumulative NH-NL breadth fidelity audit (qm-kdnj.4) and persist them to data/market.sqlite with provenance so offline repro succeeds. Acceptance: SELECT instruments shows 9 tickers with spans and n_rows; parquet caches present; pytest offline passes.

Approach

  1. Feasibility — Confirmed TradingView INDEX:* free WebSocket source via existing research.tv_scrape.client:fetch_tradingview_history, same class as already-tracked INDEX:HIGN/LOWN/S5FI, no credentials or license block, public redistribution via tracked market.sqlite (95MB soft limit), point-in-time provenance, idempotent upsert.
  2. Acquisition — Reused centralized client (fetch_tradingview_history + bars_to_ohlcv with Origin/User-Agent, pagination more_rounds=12). Verified live probe: MAHX/MALX 5440 rows 2005-01-03->2026-08-17, MAHN 5419, MALN 5376, MAHQ 5439, MALQ 5440, NADC 2530 2016-07-01->2026-08-17, MADP 2547, MADC 2548.
  3. Import — Transactional workflow with temp-DB pre-test: copied market.sqlite to /tmp/test_market_import.sqlite, upserted all 9 via backtest.datastore:upsert_ohlcv (DELETE+INSERT, source=tradingview), verified instruments+ohlcv counts, then repeated on real DB with backup rollback (104275968B, +3.4MB) and wrote 9 parquet caches via backtest.data:_cache_path (35-88KB each).
  4. Dependencies — No catalog/Meta regression (no published strategy listed these tickers); verified backtest.nhnl_breadth:cumu_nhnl_z50_components computes offline on nets (MAHX-MALX etc.) and singles with window=50 ddof0 sell=zs<0; 17 nhnl + 60 engine/datastore tests passed.
  5. Coverage — Rebuilt via canonical producer python3 -m research.reports coverage (139 strategies, 82 instruments, db_warm true, 139 patched) and fixed shared artifact drift via research.artifacts build --offline (11 artifacts).

Files changed

Validation

Results

9 Pine breadth tickers now fully materialized offline (2005-01-03 or 2016-07-01 -> 2026-08-17). Backtest.nhnl_breadth Pine fidelity no longer blocked — cumu z50 for all 6 Pine indexData branches (Total MAHX-MALX net, NYSE MAHN-MALN, NASDAQ MAHQ-MALQ, Russell MADC, S&P MADP, Nasdaq100 NADC) computes deterministically offline and matches TradingView-ta semantics. No catalog/Meta windows changed. Parent qm-kdnj.4 can resume full-span date-fidelity audit and qm-kdnj experiment republish. DB + parquet repro hashable and tracked.

Links

Source artifact: research/results/qm-spx0.md